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

DM-26397: Add explicit DAG export from ctrl_bps #31

Merged
merged 13 commits into from Jun 10, 2021
Merged

Conversation

mxk62
Copy link
Contributor

@mxk62 mxk62 commented Jun 7, 2021

No description provided.

mxk62 added 9 commits June 8, 2021 10:44
Added a new command which effectively allows for exporting DAG, i.e., it
will halt the submission preparation after writing the generic workflow
to a file.
All modules were using the same, root, logger so the name of the module
which emitted a given log message was not being included in the message.
Modified the modules to use their own loggers instead.
The driver function for pre-trasnform activities was slightly confusing
as it also was responsible for clustering quanta -- an activity which
happens _after_ pre-transform steps encapsulated by the corresponding
API function.  To separate these concerns I created a dedicated driver
for clustering quanta.
The distinction between a high-level API function and a driver was
rather blurred for the driver function responsible for printing out the
run summary.  Hence, I moved out the content of the driver to a separate
function, report(), and made the driver call it instead.
Copy link
Collaborator

@MichelleGower MichelleGower left a comment

Choose a reason for hiding this comment

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

Thanks for fixing the setup of the logger across all the code. A couple minor naming or comment change suggestions to make it easier to find/read code later. Changes are approved for merging.

python/lsst/ctrl/bps/drivers.py Outdated Show resolved Hide resolved
python/lsst/ctrl/bps/drivers.py Outdated Show resolved Hide resolved
python/lsst/ctrl/bps/drivers.py Outdated Show resolved Hide resolved
python/lsst/ctrl/bps/drivers.py Outdated Show resolved Hide resolved
python/lsst/ctrl/bps/drivers.py Show resolved Hide resolved
python/lsst/ctrl/bps/drivers.py Outdated Show resolved Hide resolved
mxk62 added 4 commits June 9, 2021 10:46
Added new commands: 'acquire' and 'cluster' which halt the submission
process after acquiring (and persisting) the quantum graph and creating
a clustered quantum graph, respectively.
Some of the doctrings were inaccurate.  Fixed them.
Common argument in report() function and its driver were ordered
differently than in cancel(). I reordered them to match the order in
cancel().
Added a brief note to ``bps --help`` to help users distinguished between
"basic" and "advanced" commands.
@mxk62 mxk62 merged commit ed3ea53 into master Jun 10, 2021
@mxk62 mxk62 deleted the tickets/DM-26397 branch June 10, 2021 13:50
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.

None yet

2 participants