ai2cm / fv3net

explore the FV3 data for parameterization
MIT License
16 stars 3 forks source link

Fix use of ReloadableTransformer in reservior model module #2264

Closed frodre closed 1 year ago

frodre commented 1 year ago

The definition of ReloadableTransformer was duplicated in reservoir.model to conform with some mypy type constraints. This PR uses cast on the loaded fv3fit.load call because the only saved model for the autoencoder argument must be of that type by construction. This removed the need for that small duplication.