Skip to content

Commit

Permalink
add SoilMoistureProfile model; WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
aaraney committed Nov 21, 2023
1 parent 5747b97 commit 516d478
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions python/ngen_conf/src/ngen/config/soil_moisture_profile.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
from typing import Literal, Optional, Mapping
from pydantic import Field

from .bmi_formulation import BMICxx


class SoilMoistureProfile(BMICxx):
"""A BMICXX implementation for the Soil Moisture Profile ngen module"""

model_params: Optional[Mapping[str, str]]
# FIXME this isn't required for CXX bmi in ngen?
registration_function: str = "none"
# NOTE aliases don't propagate to subclasses, so we have to repeat the alias
model_name: Literal["SoilMoistureProfile"] = Field(
"SoilMoistureProfile", const=True, alias="model_type_name"
)

0 comments on commit 516d478

Please sign in to comment.