Skip to content

Commit

Permalink
pass kwargs in testing_utils (#169)
Browse files Browse the repository at this point in the history
  • Loading branch information
eacharles authored Dec 2, 2024
1 parent 820e3ea commit 454c32e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/rail/utils/testing_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,11 +108,11 @@ def check_stage_params(stage_class):
return None


def build_and_read_pipeline(pipeline_class):
def build_and_read_pipeline(pipeline_class, **kwargs):
short_name = pipeline_class.split('.')[-1]
yaml_file = f"{short_name}.yml"
config_yaml_file = f"{short_name}_config.yml"
build_pipeline(pipeline_class, yaml_file, 'rubin')
build_pipeline(pipeline_class, yaml_file, 'rubin', **kwargs)
pr = ceci.Pipeline.read(yaml_file)
os.unlink(yaml_file)
os.unlink(config_yaml_file)
Expand Down

0 comments on commit 454c32e

Please sign in to comment.