# This will be handled in future versions by inspecting available memory
logger.warning("The argument --slice was not provided. This might result in insufficient memory errors.")
subregion=(rec_opts["start_z"],rec_opts["end_z"])
#
else:
subregion=get_subregion(
args["slice"],
process_config.dataset_infos.radio_dims[-1]
)
delta_z=subregion[-1]-subregion[-2]
# This will be handled in future versions by inspecting available memory
ifdelta_z==n_z:
logger.warning("It seems that all the volume will be reconstructed. This will probably result in insufficient memory errors. To avoid this, please provide --slice argument or start_z and end_z in parameters file")
steps=process_config.processing_steps
if"phase"instepsor"unsharp_mask"insteps:
subregion=check_margin(subregion,n_z,logger)
#
returnsubregion
defmain():
args=parse_params_values(
ReconstructConfig,
...
...
@@ -45,29 +90,20 @@ def main():
logfile=args["log_file"]
)
# For now we need the --slice argument
ifargs["slice"].strip()=="":
msg="Need to provide the --slice argument (ex. --slice 1024 or --slice 0-1024)"