Skip to content

Commit

Permalink
Priority is optional
Browse files Browse the repository at this point in the history
  • Loading branch information
visr committed Sep 26, 2024
1 parent fd6908d commit cbc936b
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
12 changes: 6 additions & 6 deletions core/src/schema.jl
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ end
demand::Union{Missing, Float64}
return_factor::Float64
min_level::Float64
priority::Int32
priority::Union{Missing, Int32}
end

@version UserDemandTimeV1 begin
Expand All @@ -295,33 +295,33 @@ end
demand::Float64
return_factor::Float64
min_level::Float64
priority::Int32
priority::Union{Missing, Int32}
end

@version LevelDemandStaticV1 begin
node_id::Int32
min_level::Union{Missing, Float64}
max_level::Union{Missing, Float64}
priority::Int32
priority::Union{Missing, Int32}
end

@version LevelDemandTimeV1 begin
node_id::Int32
time::DateTime
min_level::Union{Missing, Float64}
max_level::Union{Missing, Float64}
priority::Int32
priority::Union{Missing, Int32}
end

@version FlowDemandStaticV1 begin
node_id::Int
demand::Float64
priority::Int32
priority::Union{Missing, Int32}
end

@version FlowDemandTimeV1 begin
node_id::Int
time::DateTime
demand::Float64
priority::Int32
priority::Union{Missing, Int32}
end
12 changes: 6 additions & 6 deletions python/ribasim/ribasim/schemas.py
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ class FlowDemandStaticSchema(_BaseSchema):
nullable=False
)
priority: Series[Annotated[pd.ArrowDtype, pyarrow.int32()]] = pa.Field(
nullable=False
nullable=True
)


Expand All @@ -302,7 +302,7 @@ class FlowDemandTimeSchema(_BaseSchema):
nullable=False
)
priority: Series[Annotated[pd.ArrowDtype, pyarrow.int32()]] = pa.Field(
nullable=False
nullable=True
)


Expand Down Expand Up @@ -358,7 +358,7 @@ class LevelDemandStaticSchema(_BaseSchema):
nullable=True
)
priority: Series[Annotated[pd.ArrowDtype, pyarrow.int32()]] = pa.Field(
nullable=False
nullable=True
)


Expand All @@ -377,7 +377,7 @@ class LevelDemandTimeSchema(_BaseSchema):
nullable=True
)
priority: Series[Annotated[pd.ArrowDtype, pyarrow.int32()]] = pa.Field(
nullable=False
nullable=True
)


Expand Down Expand Up @@ -582,7 +582,7 @@ class UserDemandStaticSchema(_BaseSchema):
nullable=False
)
priority: Series[Annotated[pd.ArrowDtype, pyarrow.int32()]] = pa.Field(
nullable=False
nullable=True
)


Expand All @@ -604,5 +604,5 @@ class UserDemandTimeSchema(_BaseSchema):
nullable=False
)
priority: Series[Annotated[pd.ArrowDtype, pyarrow.int32()]] = pa.Field(
nullable=False
nullable=True
)

0 comments on commit cbc936b

Please sign in to comment.