Skip to content

Only use products that exist on disk when figuring inputs - #90

Merged
dnadeau-lanl merged 1 commit into
spacepy:masterfrom
jtniehof:getRequired_exists
Nov 3, 2021
Merged

dnadeau-lanl merged 1 commit into
spacepy:masterfrom
jtniehof:getRequired_exists

Conversation

@jtniehof

Copy link
Copy Markdown
Member

This PR changes _getRequiredProducts to only consider files that are recorded in the database as existing on disk, and thus won't try to use nonexistent files as inputs to processing. Closes #47.

I think I had speculated somewhere that the runMe checks of the command line build would catch trying to build with a nonexistent file. Turns out that's not the case, and I haven't chased that down.

#89 captures additional possible behavior changes that were incidentally mentioned in #47.

PR Checklist

  • Pull request has descriptive title
  • Pull request gives overview of changes
  • New code has inline comments where necessary (N/A)
  • Any new modules, functions or classes have docstrings consistent with dbprocessing style (N/A)
  • Major new functionality has appropriate Sphinx documentation
  • Added an entry to release notes if fixing a major bug or providing a major new feature
  • New features and bug fixes should have unit tests
  • Relevant issues are linked in the description (use Closes # if this PR closes the issue, or some other reference, such as See # if it is related in some other way)

@jtniehof

Copy link
Copy Markdown
Member Author

I've reprocessed several days of PSP data which were affected by this bug (we had a problem where our L0 files were not split on the appropriate day boundaries, so obsolete versions of the L0 were across the wrong day.) All worked fine.

@dnadeau-lanl
dnadeau-lanl merged commit 0bae771 into spacepy:master Nov 3, 2021
@jtniehof
jtniehof deleted the getRequired_exists branch November 4, 2021 16:14
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.

_getRequiredProducts should require input files to exist on disc

2 participants