-
- Downloads
Add field_names and field_types methods to Model
There are several situations where we only need to retrieve the name of each field; in particular, before the simulation parameters have been fully constructed. And since a field's type may depend on the simulation parameters, we need a separate method that takes the simulation context as an argument and returns the type and shape of each field.
Showing
- src/pypfilt/config.py 2 additions, 3 deletionssrc/pypfilt/config.py
- src/pypfilt/examples/predation.py 6 additions, 5 deletionssrc/pypfilt/examples/predation.py
- src/pypfilt/model.py 12 additions, 1 deletionsrc/pypfilt/model.py
- src/pypfilt/resample.py 1 addition, 1 deletionsrc/pypfilt/resample.py
- src/pypfilt/state.py 1 addition, 1 deletionsrc/pypfilt/state.py
- src/pypfilt/summary.py 2 additions, 3 deletionssrc/pypfilt/summary.py
Loading
Please register or sign in to comment