Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion simpeg_drivers/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ def assets_path() -> Path:
),
"joint surveys": (
"simpeg_drivers.joint.joint_surveys",
{"inversion": "JointSurveyDriver"},
{"inversion": "JointSurveysDriver"},
),
"magnetic scalar": (
"simpeg_drivers.potential_fields.magnetic_scalar",
Expand Down
3 changes: 3 additions & 0 deletions simpeg_drivers/joint/joint_cross_gradient/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,6 @@
# (see LICENSE file at the root of this source code package). '
# '
# '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''

from .driver import JointCrossGradientDriver
from .options import JointCrossGradientOptions
3 changes: 3 additions & 0 deletions simpeg_drivers/joint/joint_petrophysics/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,6 @@
# (see LICENSE file at the root of this source code package). '
# '
# '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''

from .driver import JointPetrophysicsDriver
from .options import JointPetrophysicsOptions
3 changes: 3 additions & 0 deletions simpeg_drivers/joint/joint_surveys/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,6 @@
# (see LICENSE file at the root of this source code package). '
# '
# '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''

from .driver import JointSurveysDriver
from .options import JointSurveysOptions
9 changes: 9 additions & 0 deletions tests/uijson_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
import numpy as np
import pytest
from geoapps_utils.driver.data import BaseData
from geoapps_utils.run import load_ui_json_as_dict
from geoh5py import Workspace
from geoh5py.ui_json import InputFile
from geoh5py.ui_json.annotations import Deprecated
Expand Down Expand Up @@ -357,3 +358,11 @@ def test_legacy_uijson(tmp_path: Path, caplog):
assert "The Batch2D classes will be deprecated" in caplog.text

assert driver.models


def test_driver_from_uijson():
path = Path(__file__).resolve().parent / "legacy/v0.2.1"

for file in path.glob("*.ui.json"):
input_file = load_ui_json_as_dict(file)
assert from_input_file(input_file)
Loading