Skip to content

Commit

Permalink
fix name and output folder
Browse files Browse the repository at this point in the history
  • Loading branch information
cfuselli committed Oct 23, 2024
1 parent e1aee4a commit ed6dc12
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion amstrax/auto_processing_new/offline_processing.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,9 @@ def main(args):
arguments = []
arguments.append(f"--run_id {run_id}")
arguments.append(f"--targets {' '.join(args.targets)}")
arguments.append(f"--output_folder {args.output_folder}")
if args.output_folder:
# as in production mode we don't allow to specify the output folder
arguments.append(f"--output_folder {args.output_folder}")
if args.corrections_version:
arguments.append(f"--corrections_version {args.corrections_version}")
if args.amstrax_path:
Expand Down
4 changes: 2 additions & 2 deletions amstrax/auto_processing_new/process.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def setup_production(self):
log.info("Setting up production configurations.")

# Set the output folder to the production folder
if self.output_folder is not None:
if self.output_folder:
raise ValueError("Output folder should not be set when processing production data.")

self.output_folder = self.amstrax.get_xams_config("xams_processed")
Expand Down Expand Up @@ -215,7 +215,7 @@ def parse_args():
parser = argparse.ArgumentParser(description="Process a single run using amstrax.")
parser.add_argument("--run_id", type=str, help="Run ID to process.")
parser.add_argument("--targets", nargs="+", help="List of data types to process (e.g., 'raw_records', 'peaks').")
parser.add_argument("--output_folder", type=str, help="Path to save the processed data.")
parser.add_argument("--output_folder", type=str, help="Path to save the processed data.", default=None)
parser.add_argument("--allow_raw_records", action="store_true", help="Explicitly allow raw_records processing.")
parser.add_argument("--corrections_version", type=str, default=None, help="Version of corrections to apply.")
parser.add_argument("--amstrax_path", type=str, default=None, help="Version of amstrax to use.")
Expand Down

0 comments on commit ed6dc12

Please sign in to comment.