Skip to content

Commit

Permalink
documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
elbeejay committed Jun 1, 2022
1 parent f951ad9 commit c53d037
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 9 deletions.
2 changes: 2 additions & 0 deletions docs/source/reference/model/model_hooks.rst
Original file line number Diff line number Diff line change
Expand Up @@ -57,4 +57,6 @@ A complete list of behavior-modifying arrays in the model follows:
:widths: 20, 50, 10

`mod_water_weight`, modifies the neighbor-weighting of water parcels during routing according to ``(depth * mod_water_weight)**theta_water``, 1
`mod_sed_weight`, modifies the neighbor-weighting of the sediment parcel routing according to ``(depth * mod_sed_weight)**theta_sed``, 1
`mod_erosion`, linearly modifies the "erodibility" of cells according to ``mod_erosion * Vp_sed * (U_loc**beta - U_ero**beta) / U_ero**beta``, 1

8 changes: 4 additions & 4 deletions pyDeltaRCM/init_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ def create_other_variables(self) -> None:
Creates variables for model implementation, from specified boundary
condition variables. This method is run during initial model
instantition. Internally, this method calls :obj:`set_constants` and
instantiation. Internally, this method calls :obj:`set_constants` and
:obj:`create_boundary_conditions`.
.. note::
Expand Down Expand Up @@ -452,7 +452,7 @@ def create_domain(self) -> None:
If you need to modify the model domain after it has been created,
it is probably safe to modify attributes directly, but take care
to ensure any dependent fields are also approrpriately changed.
to ensure any dependent fields are also appropriately changed.
"""
_msg = 'Creating model domain'
self.log_info(_msg, verbosity=1)
Expand Down Expand Up @@ -781,7 +781,7 @@ def load_checkpoint(self, defer_output: bool = False) -> None:
As a standard user, you should not need to worry about any of these
pathways or options. However, if you are developing pyDeltaRCM or
customizing the model in any way that involves loadind from
customizing the model in any way that involves loading from
checkpoints, you should be aware of these pathways.
For example, loading from checkpoint will succeed if no netCDF4 file
Expand All @@ -791,7 +791,7 @@ def load_checkpoint(self, defer_output: bool = False) -> None:
.. important::
If you are customing the model and intend to use checkpointing and
If you are customizing the model and intend to use checkpointing and
the :obj:`Preprocessor` parallel infrastructure, be sure that
parameter :obj:`defer_output` is `True` until the
:obj:`load_checkpoint` method can be called from the thread the
Expand Down
4 changes: 2 additions & 2 deletions pyDeltaRCM/iteration_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -235,8 +235,8 @@ def compute_sand_frac(self) -> None:
def save_grids_and_figs(self) -> None:
"""Save grids and figures.
Save grids and/or plots of specified variables (``eta``, `discharge``,
``velocity``, ``depth``, and ``stage``, depending on configuration of
Save grids and/or plots of specified variables (``eta``, ``discharge``,
``velocity``, ``depth``, and ``stage``), depending on configuration of
the relevant flags in the YAML configuration file.
.. note:
Expand Down
4 changes: 2 additions & 2 deletions pyDeltaRCM/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def __init__(self, input_file=None, defer_output: bool = False, **kwargs: Any) -
Whether to create the output netCDF file during initialization. In
most cases, this can be ignored and left to default value `False`.
However, for parallel simulations it may be necessary to defer the
NetCDF file creation unitl the simualtion is assigned to the core
NetCDF file creation until the simulation is assigned to the core
it will compute on, so that the DeltaModel object remains
pickle-able. Note, you will need to manually trigger the
:obj:`init_output_file`, :obj:`output_data`, and
Expand All @@ -59,7 +59,7 @@ def __init__(self, input_file=None, defer_output: bool = False, **kwargs: Any) -
be passed as a keyword argument to the instantiation of the
DeltaModel. Keywords will override the specification of any value
in the YAML file. This functionality is intended for advanced use
cases, and should not be preffered to specifying all inputs in a
cases, and should not be preferred to specifying all inputs in a
YAML configuration file.
Returns
Expand Down
2 changes: 1 addition & 1 deletion pyDeltaRCM/preprocessor.py
Original file line number Diff line number Diff line change
Expand Up @@ -1127,7 +1127,7 @@ def preprocessor_wrapper() -> None:
def _write_yaml_config_to_file(_config, _path) -> None:
"""Write a config to file in output folder.
Write the entire yaml configuation for the configured job out to a
Write the entire yaml configuration for the configured job out to a
file in the job output foler.
.. note::
Expand Down

0 comments on commit c53d037

Please sign in to comment.