Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
V
VIPSCore-Python-Common
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
VIPS
VIPSCore-Python-Common
Commits
2a1d1794
Commit
2a1d1794
authored
2 years ago
by
Tor-Einar Skog
Browse files
Options
Downloads
Patches
Plain Diff
Camelcasing Result
parent
33d1b85b
No related branches found
No related tags found
No related merge requests found
Pipeline
#726
failed
2 years ago
Stage: build
Stage: test
Stage: deploy
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/vipscore_common/entities.py
+6
-6
6 additions, 6 deletions
src/vipscore_common/entities.py
with
6 additions
and
6 deletions
src/vipscore_common/entities.py
+
6
−
6
View file @
2a1d1794
...
@@ -24,17 +24,17 @@ along with VIPSCore-Python-Common. If not, see <http://www.nibio.no/licenses/>.
...
@@ -24,17 +24,17 @@ along with VIPSCore-Python-Common. If not, see <http://www.nibio.no/licenses/>.
from
datetime
import
datetime
from
datetime
import
datetime
from
shapely.geometry
import
Point
,
Polygon
from
shapely.geometry
import
Point
,
Polygon
from
pydantic
import
BaseModel
,
validator
,
constr
from
pydantic
import
BaseModel
,
validator
,
constr
,
Field
from
typing
import
Any
,
Union
,
ClassVar
from
typing
import
Any
,
Union
,
ClassVar
import
pytz
import
pytz
class
Result
(
BaseModel
):
class
Result
(
BaseModel
):
"""
Represents a set of DSS model result values for a given point in space (Point, Polygon, MultiPolygon) and time (Period or immediate)
"""
"""
Represents a set of DSS model result values for a given point in space (Point, Polygon, MultiPolygon) and time (Period or immediate)
"""
valid_time_start
:
datetime
# TODO make sure it's always timezone aware
valid_time_start
:
datetime
=
Field
(
alias
=
"
validTimeStart
"
)
# TODO make sure it's always timezone aware
valid_time_end
:
datetime
|
None
=
...
# TODO make sure it's always timezone aware
valid_time_end
:
datetime
=
Field
(...,
alias
=
"
validTimeStart
"
)
# TODO make sure it's always timezone aware
valid_geometry
:
Any
valid_geometry
:
Any
=
Field
(
alias
=
"
validGeometry
"
)
warning_status
:
int
warning_status
:
int
=
Field
(
alias
=
"
warningStatus
"
)
all_values
:
dict
all_values
:
dict
=
Field
(
alias
=
"
allValues
"
)
WARNING_STATUS_NO_WARNING
:
ClassVar
[
int
]
=
0
WARNING_STATUS_NO_WARNING
:
ClassVar
[
int
]
=
0
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment