-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add soil moisture and freeze thaw init config models #96
feat: add soil moisture and freeze thaw init config models #96
Conversation
0db58c1
to
820b789
Compare
820b789
to
4949d14
Compare
a0e9735
to
a10b1f9
Compare
Were these TODO's ever addressed?
And can you rebase the conflict? Active development on lgar BMI may require some iterative changes to the lgar init config, but I think we can put these in place and track updates/issues as they are used |
a10b1f9
to
edc67cc
Compare
Nope and looking back I don't think there was enough information in the source code of the bmi modules for me to gather that information. So, the TODOs were more long term, "hey, im thinking about this long term." IMO, I don't think they need to be addressed in this PR. |
@hellkite500, just rebased and looked through things again. This should be good to merge now! |
Wrapper around a List[V] that coerces a comma separated string of Vs (e.g. "1,2,3") into a List[V] (e.g. [1, 2, 3]). The `dict` method is overridden to return the inner list of Vs instead of {"__root__": [Vs...]}. As a result, using a CSList[V] as a field type in anther pydantic model behaves as if it were a List[V] with the added functionality of coercing a comma separated string into a list of Vs. The features this model provides could easily be achieved using a field level validator, so in some ways this is provided as a convenience. This model is most useful when a field can be multiple types (union type). It alleviates the need to implement a complex field level validator that handles all possible union type members.
edc67cc
to
03779d2
Compare
time_unit = Literal["s", "sec", "", "h", "hr", "d", "day"] | ||
|
||
|
||
class IceFractionScheme(str, Enum): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I thought these were rainfall runoff partitioning schemes, not Ice Fraction schemes 🤯
Additions
SoilFreezeThaw
,SoilMoistureProfile
andLGAR-C
configuration filesNotes
value_unit_pair
module #95