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
Compare revisions
d6cb821ddd1c6f7f8fb3840028d0be4464d286ec to 1caa0ecf909faf85d2d94e383ed8f64e02ca2e62
Compare revisions
Changes are shown as if the
source
revision was being merged into the
target
revision.
Learn more about comparing revisions.
Source
VIPS/vipscore-python-common
Select target project
No results found
1caa0ecf909faf85d2d94e383ed8f64e02ca2e62
Select Git revision
Branches
main
Tags
0.1.10
0.1.5
0.1.6
0.1.7
0.1.8
0.1.9
0.2.0
0.2.1
0.2.2
0.2.3
0.2.4
v0.5
v0.5.1
v0.5.2
v0.6.0
v0.6.1
v0.6.2
v0.6.3
v0.602
v0.9
21 results
Swap
Target
VIPS/vipscore-python-common
Select target project
VIPS/vipscore-python-common
1 result
d6cb821ddd1c6f7f8fb3840028d0be4464d286ec
Select Git revision
Branches
main
Tags
0.1.10
0.1.5
0.1.6
0.1.7
0.1.8
0.1.9
0.2.0
0.2.1
0.2.2
0.2.3
0.2.4
v0.5
v0.5.1
v0.5.2
v0.6.0
v0.6.1
v0.6.2
v0.6.3
v0.602
v0.9
21 results
Show changes
Only incoming changes from source
Include changes to target since source was created
Compare
Commits on Source (2)
Fix: Handling that weather data are WeatherObservation instances
· c954e6ac
Tor-Einar Skog
authored
2 years ago
c954e6ac
bump version 0.2.3 -> 0.2.4
· 1caa0ecf
Tor-Einar Skog
authored
2 years ago
1caa0ecf
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
README.md
+1
-1
1 addition, 1 deletion
README.md
pyproject.toml
+2
-2
2 additions, 2 deletions
pyproject.toml
src/vipscore_common/data_utils.py
+4
-1
4 additions, 1 deletion
src/vipscore_common/data_utils.py
with
7 additions
and
4 deletions
README.md
View file @
1caa0ecf
...
...
@@ -8,7 +8,7 @@ This is the source code for the module that contains the common data models and
# From local path, if you've cloned the Git repo
pip3
install
/home/foo/vipscore-python-common/
# From GitLab
pip3
install
git+https://gitlab.nibio.no/VIPS/vipscore-python-common.git@v0.2.
3
pip3
install
git+https://gitlab.nibio.no/VIPS/vipscore-python-common.git@v0.2.
4
```
...where the version is specified after the
`@`
...
...
This diff is collapsed.
Click to expand it.
pyproject.toml
View file @
1caa0ecf
...
...
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
[project]
name
=
"vipscore_common"
version
=
"0.2.
3
"
version
=
"0.2.
4
"
description
=
"Tools for the VIPSCore-Python web services and its models"
readme
=
"README.md"
authors
=
[
{
name
=
"Tor-Einar Skog"
,
email
=
"tor-einar.skog@nibio.no"
}
]
...
...
@@ -27,7 +27,7 @@ requires-python = ">=3.9"
dev
=
[
"bumpver"
,
"pytest"
]
[tool.bumpver]
current_version
=
"0.2.
3
"
current_version
=
"0.2.
4
"
version_pattern
=
"MAJOR.MINOR.PATCH"
commit_message
=
"bump version {old_version} -> {new_version}"
commit
=
true
...
...
This diff is collapsed.
Click to expand it.
src/vipscore_common/data_utils.py
View file @
1caa0ecf
...
...
@@ -98,7 +98,10 @@ def get_weather_observations_from_json_list(weather_data: list) -> list:
"""
retval
=
[]
for
node
in
weather_data
:
retval
.
append
(
WeatherObservation
(
**
node
))
if
isinstance
(
node
,
WeatherObservation
):
retval
.
append
(
node
)
else
:
retval
.
append
(
WeatherObservation
(
**
node
))
return
retval
def
get_temp_adjusted_for_base
(
temp
:
float
,
base_temp
=
0.0
)
->
float
:
...
...
This diff is collapsed.
Click to expand it.