Closed ashiklom closed 3 weeks ago
- Write some tests that check these capabilities in isolation (or maybe just start running the existing
missing_obs_test.py
that @asewnath already wrote as part of ourcode_tests
suite).
@ashiklom I'm not following what you mean by this
- Write some tests that check these capabilities in isolation (or maybe just start running the existing
missing_obs_test.py
that @asewnath already wrote as part of ourcode_tests
suite).@ashiklom I'm not following what you mean by this
Yeah, that wasn't very clear, sorry!
Basically, I would like to see a more thorough unit test of the JediConfigRendering
class. For example:
JediConfigRendering
, and test the various methods to make sure that everything works as expected.The hardest part of this is to write the unit tests in such a way that we can test just the JediConfigRendering
class quickly and efficiently (in a few seconds), without having to spend minutes and many compute resources on running full Swell workflows as we do currently with the Tier 1 tests.
Got it, thanks for the clarification! I have actually worked on some testing that bypasses any jedi rendering and directly calls get_channels
. It's called get_active_channels_test.py
. I don't think it was every officially added to the code tests so I can expand it to test for GEOS_mksi
clones and add it.
When running Tier 1 tests, I frequently hit an error like this:
Here's the relevant source:
https://github.com/GEOS-ESM/swell/blob/develop/src/swell/utilities/get_channels.py#L24-L33
This is because one or more entries in
channel_list
isNone
. But the underlying issue here is missing observations/channel files (which might be caused by issues in GEOSmksi). (For reference, the root cause of this particular error was that I was using themain
branch of GEOSmksirather than the
develop` branch.)I think we need to:
"Missing channels for variable X. Confirm that you are using the right version of GEOSmksi"
).missing_obs_test.py
that @asewnath already wrote as part of ourcode_tests
suite).