Repository: openclimatefix/nowcasting_forecast (language: python)

Issue:
Update to latest datamodel


## Detailed Description
Update to datamodel 0.0.13
If all unittests pass then we are good

## Context
Good to keep this update to data

## Possible Implementation
update requirements



Discussion / hints:

Fix patch:
diff --git a/nowcasting_forecast/models/nwp_simple_trained/nwp_simple_trained.py b/nowcasting_forecast/models/nwp_simple_trained/nwp_simple_trained.py
index 045ce7f1..ac569472 100644
--- a/nowcasting_forecast/models/nwp_simple_trained/nwp_simple_trained.py
+++ b/nowcasting_forecast/models/nwp_simple_trained/nwp_simple_trained.py
@@ -24,7 +24,7 @@
     InputDataLastUpdatedSQL,
 )
 from nowcasting_datamodel.national import make_national_forecast
-from nowcasting_datamodel.read import get_location, get_model
+from nowcasting_datamodel.read.read import get_location, get_model
 from nowcasting_dataset.config.load import load_yaml_configuration
 from nowcasting_dataset.dataset.batch import Batch
 from sqlalchemy.orm.session import Session
diff --git a/nowcasting_forecast/models/nwp_solar_simple.py b/nowcasting_forecast/models/nwp_solar_simple.py
index 464b5516..0e0635d8 100644
--- a/nowcasting_forecast/models/nwp_solar_simple.py
+++ b/nowcasting_forecast/models/nwp_solar_simple.py
@@ -15,7 +15,7 @@
     InputDataLastUpdatedSQL,
 )
 from nowcasting_datamodel.national import make_national_forecast
-from nowcasting_datamodel.read import get_location, get_model
+from nowcasting_datamodel.read.read import get_location, get_model
 from nowcasting_dataset.config.load import load_yaml_configuration
 from nowcasting_dataset.dataset.batch import Batch
 from sqlalchemy.orm.session import Session
diff --git a/requirements.txt b/requirements.txt
index 76e418e0..632e59a7 100644
--- a/requirements.txt
+++ b/requirements.txt
@@ -4,7 +4,7 @@ psycopg2-binary
 numpy
 click
 nowcasting_dataset==3.1.60
-nowcasting_datamodel==0.0.6
+nowcasting_datamodel==0.0.22
 fsspec
 s3fs
 torch


Test patch:
diff --git a/tests/conftest.py b/tests/conftest.py
index fb4c570a..173d6b38 100644
--- a/tests/conftest.py
+++ b/tests/conftest.py
@@ -7,7 +7,8 @@
 import xarray as xr
 from nowcasting_datamodel.connection import DatabaseConnection
 from nowcasting_datamodel.fake import make_fake_forecasts
-from nowcasting_datamodel.models import Base, ForecastSQL
+from nowcasting_datamodel.models import ForecastSQL
+from nowcasting_datamodel.models.base import Base_Forecast
 from nowcasting_dataset.config.model import Configuration
 from nowcasting_dataset.data_sources.fake.batch import make_random_image_coords_osgb
 from nowcasting_dataset.dataset.batch import Batch
@@ -58,11 +59,11 @@ def db_connection():
     url = os.getenv("DB_URL")
 
     connection = DatabaseConnection(url=url)
-    Base.metadata.create_all(connection.engine)
+    Base_Forecast.metadata.create_all(connection.engine)
 
     yield connection
 
-    Base.metadata.drop_all(connection.engine)
+    Base_Forecast.metadata.drop_all(connection.engine)
 
 
 @pytest.fixture(scope="function", autouse=True)