Skip to content

Commit

Permalink
refactor: Apply formatting updates
Browse files Browse the repository at this point in the history
  • Loading branch information
nfelt14 committed Dec 3, 2024
1 parent 6e7f1c0 commit 41911db
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
18 changes: 9 additions & 9 deletions src/tm_data_types/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,20 +26,20 @@
__version__ = version("tm_data_types")

__all__ = [
"Waveform",
"WaveformMetaInfo",
"AnalogWaveform",
"AnalogWaveformMetaInfo",
"IQWaveform",
"IQWaveformMetaInfo",
"DigitalWaveform",
"DigitalWaveformMetaInfo",
"RawSample",
"FileExtensions",
"IQWaveform",
"IQWaveformMetaInfo",
"Normalized",
"write_file",
"write_files_in_parallel",
"RawSample",
"SIBaseUnit",
"Waveform",
"WaveformMetaInfo",
"read_file",
"read_files_in_parallel",
"SIBaseUnit",
"FileExtensions",
"write_file",
"write_files_in_parallel",
]
2 changes: 1 addition & 1 deletion src/tm_data_types/datum/data_types.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def _check_type(
# convert to the provided type, or it's an ndarray use the previous dtype
if isinstance(as_type, np.dtype):
dtype = as_type
elif as_type and np.issubdtype(as_type, np.floating) or np.issubdtype(as_type, np.integer):
elif (as_type and np.issubdtype(as_type, np.floating)) or np.issubdtype(as_type, np.integer):
dtype = np.dtype(as_type)
elif as_type is None and MeasuredData and isinstance(measured_data, np.ndarray):
dtype = measured_data.dtype
Expand Down

0 comments on commit 41911db

Please sign in to comment.