Skip to content

Commit

Permalink
ENH: add implcit neural ode solver for gr4 model (#358)
Browse files Browse the repository at this point in the history
* ENH: add implcit neural ode solver for gr4 model

* FIX: fix line format Fortran
  • Loading branch information
nghi-truyen authored Dec 13, 2024
1 parent cf5b731 commit bf88195
Show file tree
Hide file tree
Showing 10 changed files with 2,907 additions and 1,270 deletions.
2 changes: 1 addition & 1 deletion environment-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: smash-dev
channels:
- conda-forge
dependencies:
- python=3.11
- python=3.12
- pip

# required dependencies
Expand Down
1 change: 0 additions & 1 deletion smash/_constant.py
Original file line number Diff line number Diff line change
Expand Up @@ -446,7 +446,6 @@ def get_neurons_from_hydrological_module(hydrological_module: str, hidden_neuron
#################################

# % Following RR_PARAMETERS order

DEFAULT_BOUNDS_RR_PARAMETERS = dict(
zip(
RR_PARAMETERS,
Expand Down
1 change: 1 addition & 0 deletions smash/core/model/_standardize.py
Original file line number Diff line number Diff line change
Expand Up @@ -447,6 +447,7 @@ def _standardize_model_setup_imperviousness_file(
) -> str:
return _standardize_model_setup_file(read_imperviousness, "imperviousness_file", imperviousness_file)


def _standardize_model_setup_hidden_neuron(hidden_neuron: Numeric | ListLike, **kwargs) -> np.ndarray:
standardized_hidden_neuron = np.zeros(int(len(NN_PARAMETERS_KEYS) / 2) - 1, dtype=np.int32)

Expand Down
Loading

0 comments on commit bf88195

Please sign in to comment.