call BatchSample method instead of repeating content#2348
Conversation
grassesi
left a comment
There was a problem hiding this comment.
This does exactly what it says. I also noticed this function is not used throughout the entire codebase. Instead downstream code in the weathergen.model subpackage directly uses BatchSamples.get_num_steps. Maybe this method should be entirely removed. What do you think @clessig ?
|
The underlying problem is that the function should read: That is, it should be @TillHae : could you take care of this? |
|
What I did with commit d79f737:
|
Description
In
get_num_source_steps-ModelBatcheverything fromget_num_steps-BatchSampleis just repeated. Instead we can also just call the method on the parametertarget_samples, which is aBacthSampleobject.CC @clessig
Issue Number
Closes #1791
Is this PR a draft? Mark it as draft.
Checklist before asking for review
./scripts/actions.sh lint./scripts/actions.sh unit-test./scripts/actions.sh integration-testlaunch-slurm.py --time 60