Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Write .hist files to --outdir directory #42

Merged
merged 2 commits into from
Oct 22, 2021
Merged

Conversation

Gregg140
Copy link
Contributor

Description

Modification to write the assembled history into the model --outdir directory.

This is in addition to the changes included in the #41
and acisops/backstop_history#20 PR's in that as of the creation of this PR the others
have not yet been put into production.

Testing

  • [ x] Passes unit tests on MacOS, linux, Windows (at least one required)
  • Functional testing

Fixes #

def __init__(self, interrupt=False,
backstop_file=None,
nlet_file=None,
outdir = None,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
outdir = None,
outdir=None,

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changed

proc = self._setup_proc_and_logger(args)

# Record the selected state builder in the class attributes
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did it not work if you didn't move this after _setup_proc_and_logger?

Copy link
Contributor Author

@Gregg140 Gregg140 Oct 21, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I moved it because I wanted to be sure that the output directory was created before Backstop History was instantiated. All regression tests passed.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, good

@@ -428,6 +428,7 @@ def make_state_builder(name, args):
state_builder = builder_class(interrupt=args.interrupt,
backstop_file=args.backstop_file,
nlet_file=args.nlet_file,
outdir = args.outdir,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
outdir = args.outdir,
outdir=args.outdir,

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants