Skip to content

Commit

Permalink
MNT: Ignore ragged array warning when saving matfile
Browse files Browse the repository at this point in the history
  • Loading branch information
scottclowe committed Jul 13, 2021
1 parent aac0a05 commit 7e229ad
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion fissa/core.py
Expand Up @@ -1477,7 +1477,12 @@ def reformat_dict_for_matlab(orig_dict):
if getattr(self, "deltaf_result", None) is not None:
M["df_result"] = reformat_dict_for_matlab(self.deltaf_result)

savemat(fname, M)
with warnings.catch_warnings():
warnings.filterwarnings(
"ignore",
message="Creating an ndarray from ragged nested sequences",
)
savemat(fname, M)


def run_fissa(
Expand Down

0 comments on commit 7e229ad

Please sign in to comment.