Skip to content

Commit

Permalink
Fix casing.
Browse files Browse the repository at this point in the history
  • Loading branch information
evetion committed May 6, 2024
1 parent 68363df commit 40807de
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions core/src/schema.jl
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
@schema "ribasim.basin.profile" BasinProfile
@schema "ribasim.basin.state" BasinState
@schema "ribasim.basin.subgrid" BasinSubgrid
@schema "ribasim.basin.boundaryconcentration" BasinBoundaryconcentration
@schema "ribasim.basin.boundaryconcentration" BasinBoundaryConcentration
@schema "ribasim.basin.concentration" BasinConcentration
@schema "ribasim.terminal.static" TerminalStatic
@schema "ribasim.fractionalflow.static" FractionalFlowStatic
Expand Down Expand Up @@ -103,7 +103,7 @@ end
urban_runoff::Union{Missing, Float64}
end

@version BasinBoundaryconcentrationV1 begin
@version BasinBoundaryConcentrationV1 begin
node_id::Int32
time::DateTime
substance::String
Expand Down
6 changes: 3 additions & 3 deletions python/ribasim/ribasim/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

# These schemas are autogenerated
from ribasim.schemas import (
BasinBoundaryconcentrationSchema,
BasinBoundaryConcentrationSchema,
BasinConcentrationSchema,
BasinProfileSchema,
BasinStateSchema,
Expand Down Expand Up @@ -294,8 +294,8 @@ class Basin(MultiNodeModel):
default_factory=TableModel[BasinConcentrationSchema],
json_schema_extra={"sort_keys": ["node_id", "substance", "time"]},
)
boundary_concentration: TableModel[BasinBoundaryconcentrationSchema] = Field(
default_factory=TableModel[BasinBoundaryconcentrationSchema],
boundary_concentration: TableModel[BasinBoundaryConcentrationSchema] = Field(
default_factory=TableModel[BasinBoundaryConcentrationSchema],
json_schema_extra={"sort_keys": ["node_id", "substance", "time"]},
)

Expand Down
4 changes: 2 additions & 2 deletions python/ribasim/ribasim/nodes/basin.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from ribasim.geometry.area import BasinAreaSchema
from ribasim.input_base import TableModel
from ribasim.schemas import (
BasinBoundaryconcentrationSchema,
BasinBoundaryConcentrationSchema,
BasinConcentrationSchema,
BasinProfileSchema,
BasinStateSchema,
Expand Down Expand Up @@ -60,6 +60,6 @@ def __init__(self, **kwargs):
super().__init__(df=GeoDataFrame(dict(**kwargs)))


class BoundaryConcentration(TableModel[BasinBoundaryconcentrationSchema]):
class BoundaryConcentration(TableModel[BasinBoundaryConcentrationSchema]):
def __init__(self, **kwargs):
super().__init__(df=GeoDataFrame(dict(**kwargs)))
2 changes: 1 addition & 1 deletion python/ribasim/ribasim/schemas.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class Config:
coerce = True


class BasinBoundaryconcentrationSchema(_BaseSchema):
class BasinBoundaryConcentrationSchema(_BaseSchema):
node_id: Series[Int32] = pa.Field(nullable=False, default=0)
time: Series[Timestamp] = pa.Field(nullable=False)
substance: Series[str] = pa.Field(nullable=False)
Expand Down

0 comments on commit 40807de

Please sign in to comment.