Correct vel/Q lbox factor, add interactive mode
This commit is contained in:
+24
-8
@@ -20,6 +20,8 @@ parser.add_argument("-s", "--step", help="step between two output", type=int, de
|
||||
parser.add_argument(
|
||||
"-d", "--disk", help="do specific disk radial analysis", action="store_true"
|
||||
)
|
||||
parser.add_argument("-m", "--maps", help="do generic maps", action="store_true")
|
||||
|
||||
parser.add_argument("-p", "--project", help="specify project name", default="disk")
|
||||
|
||||
parser.add_argument(
|
||||
@@ -45,6 +47,16 @@ parser.add_argument(
|
||||
help="number of allowed failures when waiting",
|
||||
default=30,
|
||||
)
|
||||
parser.add_argument("--cpuamr", help="plot levels and cpu", action="store_true")
|
||||
parser.add_argument(
|
||||
"-x", help="x position of the central point", type=float, default=1.0
|
||||
)
|
||||
parser.add_argument(
|
||||
"-y", help="y position of the central point", type=float, default=1.0
|
||||
)
|
||||
parser.add_argument(
|
||||
"-z", help="z position of the central point", type=float, default=1.0
|
||||
)
|
||||
|
||||
|
||||
args = parser.parse_args()
|
||||
@@ -76,14 +88,17 @@ for run in runs:
|
||||
|
||||
while not success:
|
||||
try:
|
||||
dp.make_image_disk(
|
||||
path_in,
|
||||
i,
|
||||
path_out=path_out,
|
||||
tag=run,
|
||||
map_size=1024,
|
||||
force=args.force_redo,
|
||||
)
|
||||
if args.maps:
|
||||
dp.make_image_disk(
|
||||
path_in,
|
||||
i,
|
||||
path_out=path_out,
|
||||
tag=run,
|
||||
map_size=1024,
|
||||
force=args.force_redo,
|
||||
cpuamr=args.cpuamr,
|
||||
pos_star=np.array([args.x, args.y, args.z]),
|
||||
)
|
||||
if args.disk:
|
||||
dp.disk_prop(
|
||||
path_in,
|
||||
@@ -92,6 +107,7 @@ for run in runs:
|
||||
rad_ext=1,
|
||||
nb_bin=50,
|
||||
force=args.force_redo,
|
||||
pos_star=np.array([args.x, args.y, args.z]),
|
||||
)
|
||||
dp.plot_disk_prop(path_out, i, tag=run, force=args.force_redo)
|
||||
success = True
|
||||
|
||||
Reference in New Issue
Block a user