Skip to content

Commit

Permalink
np.ndarray changed to npt.NDArray
Browse files Browse the repository at this point in the history
  • Loading branch information
daralynnrhode committed Aug 5, 2024
1 parent ccd8009 commit 33fc036
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions imap_processing/idex/l1/idex_l1.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
from enum import IntEnum

import numpy as np
import numpy.typing as npt
import space_packet_parser
import xarray as xr

Expand Down Expand Up @@ -421,7 +422,7 @@ def _parse_low_sample_waveform(self, waveform_raw: str) -> list[int]:
]
return ints

def _calc_low_sample_resolution(self, num_samples: int) -> np.ndarray:
def _calc_low_sample_resolution(self, num_samples: int) -> npt.NDArray:
"""
Calculate the resolution of the low samples.
Expand All @@ -442,12 +443,12 @@ def _calc_low_sample_resolution(self, num_samples: int) -> np.ndarray:
Low time sample data array.
"""
time_low_sr_init = np.linspace(0, num_samples, num_samples)
time_low_sr_data: np.ndarray = (
time_low_sr_data = (
self.LOW_SAMPLE_RATE * time_low_sr_init - self.low_sample_trigger_time
)
return time_low_sr_data

def _calc_high_sample_resolution(self, num_samples: int) -> np.ndarray:
def _calc_high_sample_resolution(self, num_samples: int) -> npt.NDArray:
"""
Calculate the resolution of high samples.
Expand All @@ -468,7 +469,7 @@ def _calc_high_sample_resolution(self, num_samples: int) -> np.ndarray:
High sample time data array.
"""
time_high_sr_init = np.linspace(0, num_samples, num_samples)
time_high_sr_data: np.ndarray = (
time_high_sr_data = (
self.HIGH_SAMPLE_RATE * time_high_sr_init - self.high_sample_trigger_time
)
return time_high_sr_data
Expand Down

0 comments on commit 33fc036

Please sign in to comment.