Skip to content

Commit

Permalink
Merge pull request #236 from LSSTDESC/u/jchiang/disable_ckpt_tracking
Browse files Browse the repository at this point in the history
disable checkpoint summary by default
  • Loading branch information
jchiang87 committed Dec 16, 2019
2 parents 2fe87a2 + 74aec66 commit 683baf1
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions data/default_imsim_configs
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ catalog = default
[checkpointing]
nobj = 500
cleanup = True
do_summary = False

[wl_params]
gamma2_sign = -1
Expand Down
4 changes: 3 additions & 1 deletion python/desc/imsim/ImageSimulator.py
Original file line number Diff line number Diff line change
Expand Up @@ -253,8 +253,10 @@ def run(self, processes=1, wait_time=None, node_id=0):
# Set the CHECKPOINT_SUMMARY variable so that the summary info
# from the subprocesses can be persisted.
global CHECKPOINT_SUMMARY
do_checkpoint_summary = self.config['checkpointing']['do_summary']

if (self.file_id is not None and processes > 1 and
CHECKPOINT_SUMMARY is None):
CHECKPOINT_SUMMARY is None and do_checkpoint_summary):
db_file = 'ckpt_{}_{}.sqlite3'.format(self.file_id, node_id)
CHECKPOINT_SUMMARY = CheckpointSummary(db_file=db_file)

Expand Down
1 change: 1 addition & 0 deletions travis_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ pip install coveralls
pip install pylint
git clone https://github.com/lsst/obs_lsst.git
cd obs_lsst
git checkout dc2/run2.1
setup -r . -j

# Build the obs_lsst package, but avoid the time consuming and lengthy
Expand Down

0 comments on commit 683baf1

Please sign in to comment.