ai2cm / fv3config

Manipulate FV3GFS run directories
Apache License 2.0
1 stars 0 forks source link

Allow using an asset for diag_table entry #97

Closed oliverwm1 closed 3 years ago

oliverwm1 commented 4 years ago

Only being able to specify the diag_table as a path (either local or GCS url) makes it challenging to get the diag_table into a kubernetes pod. This PR allows the user to use an asset dict (including a "bytes" asset dict) for the diag_table object. This means a literal representation of the diag_table can exist within the fv3config object, which will ease running the model with various diag tables on the cloud.

This implementation raises a ConfigError if the user specifies the wrong target name/location for the diag_table. Another perhaps more user-friendly option would just be to overwrite whatever the user provides for these parameters with the correct name/location.