-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improving readability/consistency of errors/exceptions in gempyor (se…
…cond batch) (#387) * Improving errors in another set of `gempyor` files Includes model_info.py, outcomes.py, seeding.py, seir.py, and simulation_component.py (this last one didn't require any edits). * Applied `black` linting to this branch * Updating a RegEx in `test_model_info.py` * `black` linting and RegEx alteration * Update flepimop/gempyor_pkg/src/gempyor/seir.py Co-authored-by: Timothy Willard <[email protected]> * Update flepimop/gempyor_pkg/src/gempyor/seir.py Co-authored-by: Timothy Willard <[email protected]> * Implementing Tim's suggestions! * Regex adjustment * Regex update * Implementing Tim's suggestions * Regex update in test_statistic_class.py * Regex update in `test_statistic_class.py` * Regex adjusment in `test_random_distribution_sampler.py` * Fixing typo in `utils.py` * Regex update in `test_random_distribution_sampler.py` * Regex update in `test_random_distribution_sampler.py` * Update utils.py the function `test_raises_not_implemented_error()` in test file `test_read_df.py` on account that it was receiving a `ValueError` when it expected a `NotImplementedError`. I switched the error within `utils.py:read_df()` to be an expected `NotImplementedError`. * Regex update in `test_read_df.py` * Regex update in `test_read_df.py` * Regex update in `test_read_df.py` * Updating a unit test in `test_utils.py` * Regex update in `test_utils.py` and error type agreement with `utils.py` * Regex update in `test_write_df.py` * Regex update in `test-write_df.py` * Removing deprecated style of `\` to escape colons * linting with `black` * Updating `steps_source.py` and `utils.py` There were not that many changes in the final batch of error improvements, so I went ahead and lumped them in with batch two. * Implementing Carl's suggestions Awaiting regex error kickback to adjust the test files. * Regex update in `test_model_info.py` * Regex update in `test_model_info.py` * Regex update in `test_model_info.py` * Typo in `model_info.py` * Using `re.escape()` to escape non-alphanumeric characters in the regex * Regex update in `test_seir.py` Updating a regex to match on a specific value rather than arbitrary wording of error message. * Syntax update in `test_seir.py` * Update test_seir.py * Regex update in `test_statistic_class.py` * Regex update in `test_statistic_class.py` * Regex update in `test_statistic_class.py` * Syntax change in `test_statistic_class.py` * Regex update in `test_statistic_class.py` * Testing a regex in `test_statistic_class.py` * Using re.escape() to escape non-alphanumeric characters in the regex * Regex update in `test_random_distribution_sampler.py` * Regex update in `test_random_distribution_sampler.py` * Update test_random_distribution_sampler.py * Update test_random_distribution_sampler.py * Using `re.escape()` in regexs * Regex update in `test_read_df.py` * Update utils.py * Regex update in `test_utils.py` * Regex update in `test_utils.py` * Update test_utils.py * Regex update in `test_write_df.py` * Update utils.py * Update test_utils.py --------- Co-authored-by: Timothy Willard <[email protected]>
- Loading branch information
1 parent
0ebb08d
commit 0aca24f
Showing
16 changed files
with
95 additions
and
87 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.