Skip to content

Commit

Permalink
fs scalar check removed
Browse files Browse the repository at this point in the history
  • Loading branch information
AminAlam committed May 21, 2024
1 parent c563464 commit 3672ef5
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions elecphys/conversion.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,6 @@ def convert_mat_to_npz(mat_file: str, output_npz_folder: str,
mat_file_contents = mat73.loadmat(mat_file)
data = mat_file_contents['data']
fs = mat_file_contents['fs']

# if fs is not a scalar, take the first element
if not np.isscalar(fs):
fs = fs[0]

# if fs is not an integer and cannot be converted to integer, raise error
if not isinstance(fs, int):
Expand Down

0 comments on commit 3672ef5

Please sign in to comment.