Skip to content

Commit

Permalink
Linting
Browse files Browse the repository at this point in the history
  • Loading branch information
bruno-f-cruz committed Dec 13, 2024
1 parent 89870d9 commit 83397d1
Showing 1 changed file with 5 additions and 15 deletions.
20 changes: 5 additions & 15 deletions harp/reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,14 @@
from math import log2
from os import PathLike
from pathlib import Path
from typing import (Any, BinaryIO, Callable, Iterable, Mapping, Optional,
Protocol, Union)
from typing import Any, BinaryIO, Callable, Iterable, Mapping, Optional, Protocol, Union

import requests
from harp import deprecated
from numpy import dtype
from pandas import DataFrame, Series
from pandas._typing import Axes

from harp import __version__
from harp.io import MessageType, read
from harp.model import BitMask, GroupMask, Model, PayloadMember, Register
from harp.schema import read_schema
Expand Down Expand Up @@ -120,9 +118,7 @@ def from_file(
base_path = Path(base_path).absolute().resolve() / device.device

reg_readers = {
name: _create_register_parser(
device, name, _ReaderParams(base_path, epoch, keep_type)
)
name: _create_register_parser(device, name, _ReaderParams(base_path, epoch, keep_type))
for name in device.registers.keys()
}
return DeviceReader(device, reg_readers)
Expand Down Expand Up @@ -173,9 +169,7 @@ def from_url(
base_path = Path(base_path).absolute().resolve()

reg_readers = {
name: _create_register_parser(
device, name, _ReaderParams(base_path, epoch, keep_type)
)
name: _create_register_parser(device, name, _ReaderParams(base_path, epoch, keep_type))
for name in device.registers.keys()
}
return DeviceReader(device, reg_readers)
Expand Down Expand Up @@ -221,9 +215,7 @@ def from_str(
base_path = Path(base_path).absolute().resolve()

reg_readers = {
name: _create_register_parser(
device, name, _ReaderParams(base_path, epoch, keep_type)
)
name: _create_register_parser(device, name, _ReaderParams(base_path, epoch, keep_type))
for name in device.registers.keys()
}
return DeviceReader(device, reg_readers)
Expand Down Expand Up @@ -263,9 +255,7 @@ def from_model(
base_path = Path(base_path).absolute().resolve()

reg_readers = {
name: _create_register_parser(
model, name, _ReaderParams(base_path, epoch, keep_type)
)
name: _create_register_parser(model, name, _ReaderParams(base_path, epoch, keep_type))
for name in model.registers.keys()
}
return DeviceReader(model, reg_readers)
Expand Down

0 comments on commit 83397d1

Please sign in to comment.