Skip to content

Commit 80b18c4

Browse files
committed
fixed
1 parent 4dc6e1a commit 80b18c4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pyspod/spod_low_ram.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,8 @@ def fit(self):
8787
'... aborting computation...')
8888

8989
# if too much memory is required, this is modified above
90-
self._n_modes_save = n_modes_save
90+
if gb_memory_modes >= 0.99 * gb_memory_avail:
91+
self._n_modes_save = n_modes_save
9192

9293
# load FFT blocks from hard drive and save modes on hard drive (for large data)
9394
for iFreq in tqdm(range(0,self._n_freq),desc='computing frequencies'):

0 commit comments

Comments
 (0)