[pspec] remove depende,cy to olivier's utils

This commit is contained in:
Noe Brucy
2022-11-03 16:48:31 +01:00
parent f0f7395fb6
commit 0d117132d3
+8 -9
View File
@@ -11,7 +11,6 @@ import numpy as np
import pymses
import pymses.utils.misc
import tables as T
from i_utils import args
from numpy.fft import fftn, ifft
from pymses.analysis import Camera, ScalarOperator, cube3d
@@ -458,13 +457,13 @@ parser.add_argument(
default="=",
choices=["<", ">", "="],
)
parser.add_argument(
"-c",
"--center",
help="coordinates of the center",
type=args.center,
default=[0.5, 0.5, 0.5],
)
# parser.add_argument(
# "-c",
# "--center",
# help="coordinates of the center",
# type=center,
# default=[0.5, 0.5, 0.5],
# )
parser.add_argument("-s", "--size", help="cube size", type=float, default=1.0)
parser.add_argument(
"-l", "--level", help="cube level (default: levelMIN)", type=int, default=0
@@ -571,7 +570,7 @@ def main(arg):
]
cam = Camera(
center=arg.center,
center=[O.5, 0.5, 0.5], #arg.center,
line_of_sight_axis="z",
region_size=[arg.size, arg.size],
distance=arg.size / 2.0,