Skip to content

Commit

Permalink
Start on support for v2
Browse files Browse the repository at this point in the history
  • Loading branch information
felixhekhorn committed Oct 30, 2024
1 parent e0aa2c8 commit 2b1fa1e
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 39 deletions.
2 changes: 2 additions & 0 deletions src/eko/io/v2.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,6 @@ def update_metadata(paths: InternalPaths, raw: dict) -> dict:
compatible raw yaml content
"""
raw["data_version"] = 2
raw["xgrid"] = raw["bases"]["xgrid"]
del raw["bases"]
return raw
5 changes: 0 additions & 5 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,11 +68,6 @@ def operator_card():
return card


@pytest.fixture
def out_v0():
return pathlib.Path(__file__).parent / "data" / "v0.8.5-obf24af_t8e1305.tar"


class EKOFactory:
def __init__(self, theory: TheoryCard, operator: OperatorCard, path: os.PathLike):
self.path = path
Expand Down
Binary file removed tests/data/v0.8.5-obf24af_t8e1305.tar
Binary file not shown.
Binary file added tests/data/v2-LO-FFNS.tar
Binary file not shown.
15 changes: 0 additions & 15 deletions tests/eko/io/test_init.py

This file was deleted.

19 changes: 0 additions & 19 deletions tests/eko/io/test_legacy.py

This file was deleted.

7 changes: 7 additions & 0 deletions tests/eko/io/test_v2.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import pathlib

TEST = pathlib.Path(__file__).parent / "data" / "v2-LO-FFNS.tar"


def load_v2(mp_path: pathlib.Path, out_v2):
pass

0 comments on commit 2b1fa1e

Please sign in to comment.