Skip to content

Commit

Permalink
Update copyright
Browse files Browse the repository at this point in the history
  • Loading branch information
benk-mira committed Jan 7, 2025
1 parent 7f5f7e8 commit fe0725c
Show file tree
Hide file tree
Showing 26 changed files with 32 additions and 30 deletions.
2 changes: 1 addition & 1 deletion plate_simulation-assets/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# ''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
# Copyright (c) 2024 Mira Geoscience Ltd. '
# Copyright (c) 2024-2025 Mira Geoscience Ltd. '
# '
# This file is part of plate-simulation package. '
# '
Expand Down
2 changes: 1 addition & 1 deletion plate_simulation/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# ''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
# Copyright (c) 2022-2024 Mira Geoscience Ltd. '
# Copyright (c) 2022-2025 Mira Geoscience Ltd. '
# '
# This file is part of plate-simulation package. '
# '
Expand Down
2 changes: 1 addition & 1 deletion plate_simulation/driver.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# ''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
# Copyright (c) 2024 Mira Geoscience Ltd. '
# Copyright (c) 2024-2025 Mira Geoscience Ltd. '
# '
# This file is part of plate-simulation package. '
# '
Expand Down
2 changes: 1 addition & 1 deletion plate_simulation/logger.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# ''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
# Copyright (c) 2024 Mira Geoscience Ltd. '
# Copyright (c) 2024-2025 Mira Geoscience Ltd. '
# '
# This file is part of plate-simulation package. '
# '
Expand Down
2 changes: 1 addition & 1 deletion plate_simulation/mesh/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# ''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
# Copyright (c) 2024 Mira Geoscience Ltd. '
# Copyright (c) 2024-2025 Mira Geoscience Ltd. '
# '
# This file is part of plate-simulation package. '
# '
Expand Down
2 changes: 1 addition & 1 deletion plate_simulation/mesh/params.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# ''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
# Copyright (c) 2024 Mira Geoscience Ltd. '
# Copyright (c) 2024-2025 Mira Geoscience Ltd. '
# '
# This file is part of plate-simulation package. '
# '
Expand Down
2 changes: 1 addition & 1 deletion plate_simulation/models/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# ''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
# Copyright (c) 2024 Mira Geoscience Ltd. '
# Copyright (c) 2024-2025 Mira Geoscience Ltd. '
# '
# This file is part of plate-simulation package. '
# '
Expand Down
2 changes: 1 addition & 1 deletion plate_simulation/models/events.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# ''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
# Copyright (c) 2024 Mira Geoscience Ltd. '
# Copyright (c) 2024-2025 Mira Geoscience Ltd. '
# '
# This file is part of plate-simulation package. '
# '
Expand Down
8 changes: 4 additions & 4 deletions plate_simulation/models/params.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# ''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
# Copyright (c) 2024 Mira Geoscience Ltd. '
# Copyright (c) 2024-2025 Mira Geoscience Ltd. '
# '
# This file is part of plate-simulation package. '
# '
Expand All @@ -10,7 +10,7 @@
from typing import TypeVar

import numpy as np
from geoh5py.objects import ObjectBase, Surface
from geoh5py.objects import Points, Surface
from pydantic import (
BaseModel,
ConfigDict,
Expand Down Expand Up @@ -87,7 +87,7 @@ def halfplate(self):

def center(
self,
survey: ObjectBase,
survey: Points,
surface: Surface,
depth_offset: float = 0.0,
) -> list[float]:
Expand All @@ -100,7 +100,7 @@ def center(
"""
return [*self._get_xy(survey), self._get_z(surface, depth_offset)]

def _get_xy(self, survey: ObjectBase) -> list[float]:
def _get_xy(self, survey: Points) -> list[float]:
"""Return true or relative locations in x and y."""
if self.relative_locations:
xy = [
Expand Down
2 changes: 1 addition & 1 deletion plate_simulation/models/plates.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# ''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
# Copyright (c) 2024 Mira Geoscience Ltd. '
# Copyright (c) 2024-2025 Mira Geoscience Ltd. '
# '
# This file is part of plate-simulation package. '
# '
Expand Down
2 changes: 1 addition & 1 deletion plate_simulation/models/series.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# ''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
# Copyright (c) 2024 Mira Geoscience Ltd. '
# Copyright (c) 2024-2025 Mira Geoscience Ltd. '
# '
# This file is part of plate-simulation package. '
# '
Expand Down
2 changes: 1 addition & 1 deletion plate_simulation/params.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# ''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
# Copyright (c) 2024 Mira Geoscience Ltd. '
# Copyright (c) 2024-2025 Mira Geoscience Ltd. '
# '
# This file is part of plate-simulation package. '
# '
Expand Down
2 changes: 1 addition & 1 deletion plate_simulation/utils.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# ''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
# Copyright (c) 2024 Mira Geoscience Ltd. '
# Copyright (c) 2024-2025 Mira Geoscience Ltd. '
# '
# This file is part of plate-simulation package. '
# '
Expand Down
2 changes: 1 addition & 1 deletion tests/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# ''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
# Copyright (c) 2022-2024 Mira Geoscience Ltd. '
# Copyright (c) 2022-2025 Mira Geoscience Ltd. '
# '
# This file is part of plate-simulation package. '
# '
Expand Down
2 changes: 1 addition & 1 deletion tests/assets_path_test.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# ''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
# Copyright (c) 2024 Mira Geoscience Ltd. '
# Copyright (c) 2024-2025 Mira Geoscience Ltd. '
# '
# This file is part of plate-simulation package. '
# '
Expand Down
2 changes: 1 addition & 1 deletion tests/models/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# ''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
# Copyright (c) 2024 Mira Geoscience Ltd. '
# Copyright (c) 2024-2025 Mira Geoscience Ltd. '
# '
# This file is part of plate-simulation package. '
# '
Expand Down
2 changes: 1 addition & 1 deletion tests/models/events_test.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# ''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
# Copyright (c) 2024 Mira Geoscience Ltd. '
# Copyright (c) 2024-2025 Mira Geoscience Ltd. '
# '
# This file is part of plate-simulation package. '
# '
Expand Down
2 changes: 1 addition & 1 deletion tests/models/params_test.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# ''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
# Copyright (c) 2024 Mira Geoscience Ltd. '
# Copyright (c) 2024-2025 Mira Geoscience Ltd. '
# '
# This file is part of plate-simulation package. '
# '
Expand Down
2 changes: 1 addition & 1 deletion tests/models/plates_test.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# ''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
# Copyright (c) 2024 Mira Geoscience Ltd. '
# Copyright (c) 2024-2025 Mira Geoscience Ltd. '
# '
# This file is part of plate-simulation package. '
# '
Expand Down
2 changes: 1 addition & 1 deletion tests/models/series_test.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# ''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
# Copyright (c) 2024 Mira Geoscience Ltd. '
# Copyright (c) 2024-2025 Mira Geoscience Ltd. '
# '
# This file is part of plate-simulation package. '
# '
Expand Down
2 changes: 1 addition & 1 deletion tests/runtest/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# ''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
# Copyright (c) 2024 Mira Geoscience Ltd. '
# Copyright (c) 2024-2025 Mira Geoscience Ltd. '
# '
# This file is part of plate-simulation package. '
# '
Expand Down
6 changes: 4 additions & 2 deletions tests/runtest/driver_test.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# ''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
# Copyright (c) 2024 Mira Geoscience Ltd. '
# Copyright (c) 2024-2025 Mira Geoscience Ltd. '
# '
# This file is part of plate-simulation package. '
# '
Expand Down Expand Up @@ -111,11 +111,13 @@ def test_plate_simulation(tmp_path):
mesh = next(obj for obj in out_group.children if isinstance(obj, Octree))
model = next(k for k in mesh.children if k.name == "starting_model")

assert data.property_groups is not None
assert len(data.property_groups) == 3
assert all(
k.name in [f"Iteration_0_{i}" for i in "xyz"] for k in data.property_groups
)
assert all(len(k.properties) == 20 for k in data.property_groups)
assert all(k.properties is not None for k in data.property_groups)
assert all(len(k.properties) == 20 for k in data.property_groups) # type: ignore
assert mesh.n_cells == 14555
assert len(np.unique(model.values)) == 4
assert all(
Expand Down
2 changes: 1 addition & 1 deletion tests/runtest/gravity_test.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# ''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
# Copyright (c) 2024 Mira Geoscience Ltd. '
# Copyright (c) 2024-2025 Mira Geoscience Ltd. '
# '
# This file is part of plate-simulation package. '
# '
Expand Down
2 changes: 1 addition & 1 deletion tests/utils/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# ''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
# Copyright (c) 2024 Mira Geoscience Ltd. '
# Copyright (c) 2024-2025 Mira Geoscience Ltd. '
# '
# This file is part of plate-simulation package. '
# '
Expand Down
2 changes: 1 addition & 1 deletion tests/utils/utils_test.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# ''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
# Copyright (c) 2024 Mira Geoscience Ltd. '
# Copyright (c) 2024-2025 Mira Geoscience Ltd. '
# '
# This file is part of plate-simulation package. '
# '
Expand Down
2 changes: 1 addition & 1 deletion tests/version_test.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# ''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
# Copyright (c) 2022-2024 Mira Geoscience Ltd. '
# Copyright (c) 2022-2025 Mira Geoscience Ltd. '
# '
# This file is part of plate-simulation package. '
# '
Expand Down

0 comments on commit fe0725c

Please sign in to comment.