Skip to content

Commit 57918ec

Browse files
Move to harp.data namespace
Co-authored-by: José Grilo <jose.grilo@research.fchampalimaud.org>
1 parent 3d97d0b commit 57918ec

13 files changed

Lines changed: 17 additions & 16 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ __pycache__/
33

44
# Distribution / packaging
55
dist/
6+
build/
67
_version.py
78
*.egg-info/
89
*.egg

harp/__init__.py

Lines changed: 0 additions & 5 deletions
This file was deleted.

harp/data/__init__.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
from harp.data.io import REFERENCE_EPOCH, MessageType, read, to_buffer, to_file
2+
from harp.data.reader import create_reader
3+
from harp.data.schema import read_schema
4+
5+
__all__ = ["REFERENCE_EPOCH", "MessageType", "read", "to_buffer", "to_file", "create_reader", "read_schema"]
File renamed without changes.

harp/io.py renamed to harp/data/io.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
import pandas as pd
99
from pandas._typing import Axes # pyright: ignore[reportPrivateImportUsage]
1010

11-
from harp.typing import _BufferLike, _FileLike
11+
from harp.data.typing import _BufferLike, _FileLike
1212

1313
REFERENCE_EPOCH = datetime(1904, 1, 1)
1414
"""The reference epoch for UTC harp time."""
File renamed without changes.

harp/reader.py renamed to harp/data/reader.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@
1212
from pandas import DataFrame, Series
1313
from pandas._typing import Axes # pyright: ignore[reportPrivateImportUsage]
1414

15-
from harp.io import MessageType, read
16-
from harp.model import BitMask, GroupMask, Model, PayloadMember, Register
17-
from harp.schema import read_schema
18-
from harp.typing import _BufferLike, _FileLike
15+
from harp.data.io import MessageType, read
16+
from harp.data.model import BitMask, GroupMask, Model, PayloadMember, Register
17+
from harp.data.schema import read_schema
18+
from harp.data.typing import _BufferLike, _FileLike
1919

2020

2121
@dataclass

harp/schema.py renamed to harp/data/schema.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
from pydantic_yaml import parse_yaml_raw_as
66

7-
from harp.model import Model, Registers
7+
from harp.data.model import Model, Registers
88

99

1010
def _read_common_registers() -> Registers:
File renamed without changes.

tests/params.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
import numpy as np
88

9-
from harp.model import Model
9+
from harp.data.model import Model
1010

1111
datapath = Path(__file__).parent
1212

0 commit comments

Comments
 (0)