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-29398: Use new .qgraph file format and API when exporting from ci_hsc_gen3 #11

Merged
merged 1 commit into from
Mar 24, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 2 additions & 4 deletions bin.src/exportGraphInputs.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.

import os
import pickle
import argparse
from lsst.daf.butler import Butler
from lsst.pipe.base import QuantumGraph


if __name__ == "__main__":
Expand All @@ -35,9 +35,7 @@
args = parser.parse_args()

butler = Butler(args.butler)

with(open(args.graph, "rb")) as f:
graph = pickle.load(f)
graph = QuantumGraph.loadUri(args.graph, universe=butler.registry.dimensions)

# dataset_types_to_save = ("brightObjectMask", "ps1_pv3_3pi_20170110",
# "jointcal_photoCalib", "jointcal_wcs", "bias",
Expand Down
4 changes: 2 additions & 2 deletions bin/rebuild_demo.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ butler="${CI_HSC_GEN3_DIR}/DATA"
pipetask qgraph -p "${PIPE_TASKS_DIR}/pipelines/DRP.yaml#processCcd" \
--instrument lsst.obs.subaru.HyperSuprimeCam -b "${butler}" \
-i HSC/calib,HSC/raw/all,HSC/masks,refcats,skymaps \
-d "visit=903342 AND detector=10" --output make_graph -q single_ccd_graph.pkl
-d "visit=903342 AND detector=10" --output make_graph -q single_ccd_graph.qgraph

# This should specify paths so that export.py can be generic
python bin.src/exportGraphInputs.py "${butler}" single_ccd_graph.pkl
python bin.src/exportGraphInputs.py "${butler}" single_ccd_graph.qgraph