Skip to content

Commit

Permalink
Structure control migration fix ups (#385)
Browse files Browse the repository at this point in the history
bump schema version
  • Loading branch information
margrietpalm authored Oct 14, 2024
1 parent ab60e05 commit 6733428
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Changelog of threedigrid-builder
1.19.2 (unreleased)
-------------------

- Nothing changed yet.
- Bump version for schema 227


1.19.1 (2024-09-30)
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def get_version():

install_requires = [
"numpy>=1.15,<3.0",
"threedi-schema==0.226.*",
"threedi-schema==0.227.*",
"shapely>=2",
"pyproj>=3",
"condenser[geo]>=0.1.1",
Expand Down
2 changes: 1 addition & 1 deletion threedigrid_builder/interface/db.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
# hardcoded source projection
SOURCE_EPSG = 4326

MIN_SQLITE_VERSION = 226
MIN_SQLITE_VERSION = 227

DAY_IN_SECONDS = 24.0 * 3600.0

Expand Down
4 changes: 2 additions & 2 deletions threedigrid_builder/tests/test_db.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def test_init(tmp_path):
with mock.patch(
"threedigrid_builder.interface.db.ThreediDatabase"
) as db, mock.patch.object(SQLite, "get_version") as get_version:
get_version.return_value = 226
get_version.return_value = 227
sqlite = SQLite(path)

db.assert_called_with(path)
Expand Down Expand Up @@ -65,7 +65,7 @@ def test_init_bad_version(tmp_path):


def test_get_version(db):
assert db.get_version() == 226
assert db.get_version() == 227


def test_get_boundary_conditions_1d(db):
Expand Down

0 comments on commit 6733428

Please sign in to comment.