Conversation
|
I think the method |
|
renaming the test datasets is a very good idea! However - I'd prefer to do it in another PR. This one doesn't touch the names, only the way to get to the data. And it gets rid of the superfluous The main reason for not delaying this is the version check, that allows to update test datasets in the data api without having to touch the code too. |
| Directory for writing (and subsequent reading) of temporary files created during tests. | ||
| """ | ||
| HAZ_TEST_MAT :Path = Path(hazard_test.__file__).parent.joinpath('data', 'atl_prob_no_name.mat') | ||
| HAZ_TEST_MAT :Path = get_test_file('atl_prob_no_name', file_format='matlab') |
There was a problem hiding this comment.
Any reason to sometimes use the HAZ_TEST_MAT :Path = style and sometimes HAZ_TEST_MAT = ?
There was a problem hiding this comment.
No reason, except that no type annotation has been changed in this PR.
|
Can we also add a note in the developers guide to refer to this way of getting test data? Then over time it will harmonize. |
|
I've added the note in the Developer Guide PR: a8c6716 |
Excellent! |
|
Please feel free to merge after updating the changelog. |
Changes proposed in this PR:
climada.test.get_testfilefunction where applicablePR Author Checklist
develop)PR Reviewer Checklist