Skip to content

Commit df62f75

Browse files
committed
Run isort formatting
1 parent 41b5c7a commit df62f75

8 files changed

Lines changed: 26 additions & 15 deletions

File tree

harp/io.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,10 @@
22
from enum import IntEnum
33
from os import PathLike
44
from typing import Any, BinaryIO, Optional, Union
5-
from pandas._typing import Axes
5+
66
import numpy as np
77
import pandas as pd
8+
from pandas._typing import Axes
89

910
REFERENCE_EPOCH = datetime(1904, 1, 1)
1011
"""The reference epoch for UTC harp time."""

harp/model.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
from __future__ import annotations
66

77
from enum import Enum
8-
from typing import Dict, List, Optional, Union, Annotated
8+
from typing import Annotated, Dict, List, Optional, Union
99

1010
from pydantic import (
1111
BaseModel,

harp/reader.py

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,19 @@
11
import os
2+
from collections import UserDict
3+
from dataclasses import dataclass
4+
from datetime import datetime
5+
from functools import partial
26
from math import log2
37
from os import PathLike
48
from pathlib import Path
5-
from datetime import datetime
6-
from functools import partial
7-
from dataclasses import dataclass
9+
from typing import Any, BinaryIO, Callable, Iterable, Mapping, Optional, Protocol, Union
10+
811
from numpy import dtype
912
from pandas import DataFrame, Series
10-
from typing import Any, BinaryIO, Callable, Iterable, Mapping, Optional, Protocol, Union
11-
from collections import UserDict
1213
from pandas._typing import Axes
13-
from harp.model import BitMask, GroupMask, Model, PayloadMember, Register
14+
1415
from harp.io import MessageType, read
16+
from harp.model import BitMask, GroupMask, Model, PayloadMember, Register
1517
from harp.schema import read_schema
1618

1719

harp/schema.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
1+
from importlib import resources
12
from os import PathLike
23
from typing import TextIO, Union
3-
from harp.model import Model, Registers
4+
45
from pydantic_yaml import parse_yaml_raw_as
5-
from importlib import resources
6+
7+
from harp.model import Model, Registers
68

79

810
def _read_common_registers() -> Registers:

tests/params.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
1-
import numpy as np
1+
from dataclasses import dataclass
22
from os import PathLike
33
from pathlib import Path
4-
from dataclasses import dataclass
54
from typing import Iterable, Optional, Type, Union
5+
6+
import numpy as np
7+
68
from harp.model import Model
79

810
datapath = Path(__file__).parent

tests/test_io.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
1-
import pytest
2-
import numpy as np
31
from contextlib import nullcontext
2+
3+
import numpy as np
4+
import pytest
45
from pytest import mark
5-
from harp.io import read, MessageType
6+
7+
from harp.io import MessageType, read
68
from tests.params import DataFileParam
79

810
testdata = [

tests/test_reader.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import numpy as np
22
from pytest import mark
3+
34
from harp.io import REFERENCE_EPOCH, MessageType
45
from harp.reader import create_reader
56
from tests.params import DeviceSchemaParam

tests/test_schema.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
from pytest import mark
2+
23
from harp.schema import read_schema
34
from tests.params import DeviceSchemaParam
45

0 commit comments

Comments
 (0)