Allow multiple static inputs #822
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This refactors the downscaling code to use the full
StaticInputsclass ingeneratecalls.DiffusionModel._get_input_from_coarseconcats allStaticInputs.fields.dataas additional input channelsTrainConfighas a new fieldstatic_inputswhich should be a mapping of{var_name: path_to_dataset}. This should be used to provide the static inputs fields- they will no longer be loaded automatically from the fine dataset. In the future,use_fine_topographyin the config should be deprecated since thestatic_inputsfield is the source of this information.GriddedData, PairedGriddedDataare updated to have aStaticInputsattribute instead of the singleTopographytopographyare updated to the more generalstatic_inputtrain, predict, inference, evaluatorentrypoint code and their tests are updated to pass theStaticInputsto generate calls(Exact diff of v1 branch but used cursor to organize the commits to be more reviewable)