Skip to content

Conversation

@sbelsk
Copy link
Member

@sbelsk sbelsk commented Jul 28, 2021

Please check if the PR fulfills these requirements:

  • Tests for the changes have been added/updated (if possible)
  • Documentation has been updated/added if relevant

What is the current behavior?

Error checking is currently done in many different places throughout Lichen and is typically only done on parameters just before they are used. This means that it is possible to fail a basic assertion after completing an expensive operation.

What is the new behavior?

The relevant error checks that are not affected by the progress of the Lichen processes and can be done ahead of time are done immediately in concatenate_all.py instead of waiting until just before each parameter is used.

This change is also relevant for a future refactor discussed with @bmcutler involving sending zipped Lichen config directories to worker machines.

Other information?

No breaking changes. Everything should still work as before.

@bmcutler bmcutler merged commit 4c0070a into main Jul 30, 2021
@bmcutler bmcutler deleted the move-assertions-to-concat branch July 30, 2021 14: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.

4 participants