lunapi 1.2.1__cp310-cp310-macosx_10_9_x86_64.whl → 1.2.3__cp310-cp310-macosx_10_9_x86_64.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Binary file
lunapi/lunapi1.py CHANGED
@@ -1,7 +1,7 @@
1
1
  """lunapi1 module: a high-level wrapper around lunapi0 module functions"""
2
2
 
3
3
  # Luna Python interface (lunapi)
4
- # v1.2.1, 03-Jan-2025
4
+ # v1.2.3, 28-May-2025
5
5
 
6
6
  import lunapi.lunapi0 as _luna
7
7
 
@@ -33,7 +33,7 @@ class resources:
33
33
  POPS_LIB = 's2'
34
34
  MODEL_PATH = '/build/luna-models/'
35
35
 
36
- lp_version = "v1.2.1"
36
+ lp_version = "v1.2.3"
37
37
 
38
38
  # C++ singleton class (engine & sample list)
39
39
  # lunapi_t --> luna
@@ -304,6 +304,8 @@ class proj:
304
304
  # clear all
305
305
  if key is None:
306
306
  proj.eng.clear_all_opts()
307
+ # and a spectial case: the sig list
308
+ self.vars( 'sig', '' )
307
309
  return
308
310
 
309
311
  # clear some/one
@@ -1178,7 +1180,11 @@ class inst:
1178
1180
  return
1179
1181
  if all( self.has( ch ) ) is not True:
1180
1182
  return
1181
- res = self.silent_proc( "PSD epoch-spectrum dB sig="+ch )[ 'PSD: CH_E_F' ]
1183
+ if minf is None:
1184
+ minf=0.5
1185
+ if maxf is None:
1186
+ maxf=25
1187
+ res = self.silent_proc( "PSD epoch-spectrum dB sig="+ch+" min="+str(minf)+" max="+str(maxf) )[ 'PSD: CH_E_F' ]
1182
1188
  return spec( res , ch=ch, var='PSD', mine=mine,maxe=maxe,minf=minf,maxf=maxf,w=w)
1183
1189
 
1184
1190
 
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.2
2
2
  Name: lunapi
3
- Version: 1.2.1
3
+ Version: 1.2.3
4
4
  Summary: Python interface to the Luna toolset for sleep signal analysis
5
5
  Keywords: Sleep,EEG,PSG,Luna,Signal processing
6
6
  Author-Email: Shaun Purcell <smpurcell@bwh.harvard.edu>, Senthil Palanivelu <spalanivelu@mgh.harvard.edu>, Nataliia Kozhemiako <nkozhemiako@bwh.harvard.edu>
@@ -17,8 +17,8 @@ Classifier: Programming Language :: Python :: 3.10
17
17
  Classifier: Programming Language :: Python :: 3.11
18
18
  Classifier: Programming Language :: Python :: 3.12
19
19
  Classifier: Programming Language :: Python :: 3.13
20
- Project-URL: Www, https://zzz.bwh.harvard.edu/luna
21
- Project-URL: Github, http://github.com/remnrem/luna-api
20
+ Project-URL: www, https://zzz.bwh.harvard.edu/luna
21
+ Project-URL: github, http://github.com/remnrem/luna-api
22
22
  Requires-Python: >=3.9
23
23
  Requires-Dist: pandas<3,>=2
24
24
  Requires-Dist: numpy>=2
@@ -0,0 +1,8 @@
1
+ lunapi/lunapi0.cpython-310-darwin.so,sha256=vRMp0TIqyWwc2ny2sjll0mWHthRSyKNB4kSdsFQZ1k0,19445776
2
+ lunapi/__init__.py,sha256=cDep9d2N4KKUt81AzHUyFsuRdGwxCD1rqqFmptsAqsk,352
3
+ lunapi/lunapi1.py,sha256=IBGgPsHM_Wlzv7If4_gli1onM6127MWY_A5UapPHAzU,92537
4
+ lunapi/lunapi0.cpp,sha256=nQ5cwNdm4fvZ5TSDSxrgWu8Luw1r6NyDsvDWu9sLv7I,13053
5
+ lunapi-1.2.3.dist-info/RECORD,,
6
+ lunapi-1.2.3.dist-info/WHEEL,sha256=B2MroJbrHmO8jsP9mYEviUDho5uv02y_P3THMydwGQU,115
7
+ lunapi-1.2.3.dist-info/METADATA,sha256=CJCsb2ZSt6h8oYb2K_Hx4khWZBrxZQauka_HcDp4O54,1519
8
+ lunapi-1.2.3.dist-info/licenses/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: scikit-build-core 0.10.7
2
+ Generator: scikit-build-core 0.11.3
3
3
  Root-Is-Purelib: false
4
4
  Tag: cp310-cp310-macosx_10_9_x86_64
5
5
 
@@ -1,8 +0,0 @@
1
- lunapi-1.2.1.dist-info/RECORD,,
2
- lunapi-1.2.1.dist-info/WHEEL,sha256=CQCn-Gg7FyA1vyNSzvE34YdeHxf8WzJQKMn4oS65uIg,115
3
- lunapi-1.2.1.dist-info/METADATA,sha256=kQ3-SdHdIbgO1Q1ezIdqswJQE71NUuOdYhZ1iggYKPw,1519
4
- lunapi-1.2.1.dist-info/licenses/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
5
- lunapi/lunapi0.cpython-310-darwin.so,sha256=hEG3vwwnr0X3rE2yhuedfm7IM0wDSuq4vOja8qIA9jc,19155712
6
- lunapi/__init__.py,sha256=cDep9d2N4KKUt81AzHUyFsuRdGwxCD1rqqFmptsAqsk,352
7
- lunapi/lunapi1.py,sha256=phnWVTJ1vbCsNk96Sfz4qk-hHmFqng5zCaxuFDL-M90,92343
8
- lunapi/lunapi0.cpp,sha256=nQ5cwNdm4fvZ5TSDSxrgWu8Luw1r6NyDsvDWu9sLv7I,13053