Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found
Select Git revision
  • main
  • 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

Target

Select target project
  • VIPS/vipscore-python-common
1 result
Select Git revision
  • main
  • 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
Commits on Source (2)
......@@ -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 `@`
......
......@@ -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
......
......@@ -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:
......