As suggested by @manishvenu , we should make methods start with verbs. I'd also like to add more properties, so that experiments can be easier tested and organised from python rather than NCVIEW. /
For example, after running initial_condition, it would be nice to be able to call expt.initial_condition to get a dataarray containing the initial condition. In this case, I'd suggest that the method be renamed to setup_initial_condition, and then initial_condition be changed to a property that returns a dataarray by reading the IC from disk, and prints "No initial condition yet, please run setup_initial_condition first" if the IC isn't found on disk.
Ideally, all of the data in the input directory (hgrid,vgrid,forcing segments, ic, topo) should be readable directly via a python wrapper. So far this is true of hgrid, topo and vgrid only.
As suggested by @manishvenu , we should make methods start with verbs. I'd also like to add more properties, so that experiments can be easier tested and organised from python rather than NCVIEW. /
For example, after running
initial_condition
, it would be nice to be able to callexpt.initial_condition
to get a dataarray containing the initial condition. In this case, I'd suggest that the method be renamed tosetup_initial_condition
, and theninitial_condition
be changed to a property that returns a dataarray by reading the IC from disk, and prints "No initial condition yet, please runsetup_initial_condition
first" if the IC isn't found on disk.Ideally, all of the data in the input directory (hgrid,vgrid,forcing segments, ic, topo) should be readable directly via a python wrapper. So far this is true of hgrid, topo and vgrid only.