Skip to content

Commit c3952de

Browse files
committed
minor
1 parent 68b8b91 commit c3952de

File tree

3 files changed

+8
-6
lines changed

3 files changed

+8
-6
lines changed

pyspod/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
"""PySPOD init"""
22
__all__ = ['spod_base', 'spod_low_storage', 'spod_low_ram', 'spod_streaming']
3+
# __all__ = ['SPOD_base', 'SPOD_low_storage', 'SPOD_low_ram', 'SPOD_streaming']
34

45
from .spod_base import SPOD_base
56
from .spod_low_storage import SPOD_low_storage
67
from .spod_low_ram import SPOD_low_ram
78
from .spod_streaming import SPOD_streaming
9+
# from pyspod import SPOD_low_storage, SPOD_low_ram, SPOD_streaming
810

911
import os
1012
import sys

tutorials/basic/methods_comparison_file/methods_comparison_file.ipynb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -365,7 +365,7 @@
365365
"source": [
366366
"# Initialize libraries by using data_handler for the low storage algorithm\n",
367367
"spod_ls = SPOD_low_storage(\n",
368-
" X=os.path.join(CWD,'data.nc'),\n",
368+
" data=os.path.join(CWD,'data.nc'),\n",
369369
" params=params,\n",
370370
" data_handler=read_data_netCDF,\n",
371371
" variables=variables)\n",
@@ -666,7 +666,7 @@
666666
"source": [
667667
"# Let's try the low_ram algorithm\n",
668668
"spod_ram = SPOD_low_ram(\n",
669-
" X=os.path.join(CWD,'data.nc'),\n",
669+
" data=os.path.join(CWD,'data.nc'),\n",
670670
" params=params,\n",
671671
" data_handler=read_data_netCDF,\n",
672672
" variables=variables)\n",
@@ -872,7 +872,7 @@
872872
"source": [
873873
"# Finally, we can try the streaming algorithm\n",
874874
"spod_st = SPOD_streaming(\n",
875-
" X=os.path.join(CWD,'data.nc'),\n",
875+
" data=os.path.join(CWD,'data.nc'),\n",
876876
" params=params,\n",
877877
" data_handler=read_data_netCDF,\n",
878878
" variables=variables)\n",

tutorials/climate/ERA5_MSLP_2D/ERA5_MSLP_2D.ipynb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -411,7 +411,7 @@
411411
],
412412
"source": [
413413
"# Perform SPOD analysis using low storage module\n",
414-
"SPOD_analysis = SPOD_low_ram(X=ds, params=params, data_handler=read_data, variables=variables)\n",
414+
"SPOD_analysis = SPOD_low_ram(data=ds, params=params, data_handler=read_data, variables=variables)\n",
415415
"spod = SPOD_analysis.fit()"
416416
]
417417
},
@@ -606,8 +606,8 @@
606606
"The results are stored in the results folder defined in the parameter you specified under `params[savedir]`. We can load the results for both modes and eigenvalues, and use any other postprocessing tool that is more suitable to your application. The files are stored in `numpy` binary format `.npy`. There exists several tools to convert them in `netCDF`, `MATLAB` and several other formats that can be better suited to you specific post-processing pipeline.\n",
607607
"\n",
608608
"This tutorial was intended to help you setup your own multivariate case. You can play with the parameters we explored above to gain more insights into the capabilities of the library. You can also run on the same data the other two SPOD algorithms implemented as part of this library by simply calling:\n",
609-
"- SPOD_analysis = SPOD_low_storage(X=X, params=params, file_handler=False)\n",
610-
"- SPOD_analysis = SPOD_streaming(X=X, params=params, file_handler=False)\n",
609+
"- SPOD_analysis = SPOD_low_storage(data=X, params=params, file_handler=False)\n",
610+
"- SPOD_analysis = SPOD_streaming(data=X, params=params, file_handler=False)\n",
611611
"\n",
612612
"and compare the results.\n",
613613
"\n",

0 commit comments

Comments
 (0)