Skip to content

Commit

Permalink
remove unused functions
Browse files Browse the repository at this point in the history
  • Loading branch information
tlambert03 committed Apr 21, 2024
1 parent 83aaec1 commit af6d9e6
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions src/nd2/_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,10 +84,6 @@ def jdn_to_datetime(jdn: float, tz: timezone = timezone.utc) -> datetime:
return datetime.fromtimestamp((jdn - 2440587.5) * 86400.0, tz).astimezone()


def rgb_int_to_tuple(rgb: int) -> tuple[int, int, int]:
return ((rgb & 255), (rgb >> 8 & 255), (rgb >> 16 & 255))


# these are used has headers in the events() table
TIME_KEY = "Time [s]"
Z_SERIES_KEY = "Z-Series"
Expand Down Expand Up @@ -134,15 +130,6 @@ class VoxelSize(NamedTuple):
]


def parse_time(time_str: str) -> datetime:
for fmt_str in TIME_FMT_STRINGS:
try:
return datetime.strptime(time_str, fmt_str)
except ValueError:
continue
raise ValueError(f"Could not parse {time_str}") # pragma: no cover


def convert_records_to_dict_of_lists(
records: ListOfDicts, null_val: Any = float("nan")
) -> DictOfLists:
Expand Down

0 comments on commit af6d9e6

Please sign in to comment.