lunapi 1.3.0__cp39-cp39-win_amd64.whl → 1.3.1__cp39-cp39-win_amd64.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.
- lunapi/lunapi0.cp39-win_amd64.pyd +0 -0
- lunapi/lunapi0.cpp +5 -1
- lunapi/lunapi1.py +12 -5
- {lunapi-1.3.0.dist-info → lunapi-1.3.1.dist-info}/METADATA +1 -1
- lunapi-1.3.1.dist-info/RECORD +11 -0
- lunapi-1.3.0.dist-info/RECORD +0 -11
- {lunapi-1.3.0.dist-info → lunapi-1.3.1.dist-info}/WHEEL +0 -0
- {lunapi-1.3.0.dist-info → lunapi-1.3.1.dist-info}/licenses/LICENSE +0 -0
Binary file
|
lunapi/lunapi0.cpp
CHANGED
@@ -96,6 +96,9 @@ PYBIND11_MODULE(lunapi0, m) {
|
|
96
96
|
.def( "build_sample_list" ,
|
97
97
|
&lunapi_t::build_sample_list,
|
98
98
|
"Load a sample list from a file" )
|
99
|
+
.def( "set_sample_list",
|
100
|
+
&lunapi_t::set_sample_list,
|
101
|
+
"Set sample list directly" )
|
99
102
|
.def( "get_sample_list" ,
|
100
103
|
&lunapi_t::sample_list,
|
101
104
|
"Return the loaded sample list" )
|
@@ -110,7 +113,7 @@ PYBIND11_MODULE(lunapi0, m) {
|
|
110
113
|
.def( "is_silenced" , &lunapi_t::is_silenced )
|
111
114
|
|
112
115
|
.def( "flush" , &lunapi_t::flush )
|
113
|
-
|
116
|
+
.def( "reinit" , &lunapi_t::re_init )
|
114
117
|
.def( "reset" , &lunapi_t::reset )
|
115
118
|
|
116
119
|
.def( "include" ,
|
@@ -342,6 +345,7 @@ PYBIND11_MODULE(lunapi0, m) {
|
|
342
345
|
.def( "get_time_scale", &segsrv_t::get_time_scale )
|
343
346
|
.def( "set_scaling", &segsrv_t::set_scaling )
|
344
347
|
.def( "fix_physical_scale", &segsrv_t::fix_physical_scale )
|
348
|
+
.def( "empirical_physical_scale", &segsrv_t::empirical_physical_scale )
|
345
349
|
.def( "free_physical_scale", &segsrv_t::free_physical_scale )
|
346
350
|
.def( "get_scaled_signal", &segsrv_t::get_scaled_signal )
|
347
351
|
.def( "get_gaps" , &segsrv_t::get_gaps )
|
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.3.
|
4
|
+
# v1.3.1, 16-Sep-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.3.
|
36
|
+
lp_version = "v1.3.1"
|
37
37
|
|
38
38
|
# C++ singleton class (engine & sample list)
|
39
39
|
# lunapi_t --> luna
|
@@ -177,6 +177,10 @@ class proj:
|
|
177
177
|
""" Drop Luna problem flag """
|
178
178
|
proj.eng.reset()
|
179
179
|
|
180
|
+
def reinit(self):
|
181
|
+
""" Re-initialize project """
|
182
|
+
proj.eng.reinit()
|
183
|
+
|
180
184
|
#------------------------------------------------------------------------
|
181
185
|
|
182
186
|
def inst( self, n ):
|
@@ -1663,8 +1667,8 @@ class segsrv:
|
|
1663
1667
|
def get_gaps(self):
|
1664
1668
|
return self.segsrv.get_gaps()
|
1665
1669
|
|
1666
|
-
def set_scaling(self, nchs, nanns = 0 , yscale = 1 , ygroup = 1 , yheader = 0.05 , yfooter = 0.05 , scaling_fixed_annot = 0.1 ):
|
1667
|
-
self.segsrv.set_scaling( nchs, nanns, yscale, ygroup, yheader, yfooter, scaling_fixed_annot )
|
1670
|
+
def set_scaling(self, nchs, nanns = 0 , yscale = 1 , ygroup = 1 , yheader = 0.05 , yfooter = 0.05 , scaling_fixed_annot = 0.1 , clip = True):
|
1671
|
+
self.segsrv.set_scaling( nchs, nanns, yscale, ygroup, yheader, yfooter, scaling_fixed_annot , clip )
|
1668
1672
|
|
1669
1673
|
def get_scaled_signal(self, ch, n1):
|
1670
1674
|
return self.segsrv.get_scaled_signal( ch , n1 )
|
@@ -1672,8 +1676,11 @@ class segsrv:
|
|
1672
1676
|
def fix_physical_scale(self,ch,lwr,upr):
|
1673
1677
|
self.segsrv.fix_physical_scale( ch, lwr, upr )
|
1674
1678
|
|
1679
|
+
def empirical_physical_scale(self,ch):
|
1680
|
+
self.segsrv.empirical_physical_scale( ch )
|
1681
|
+
|
1675
1682
|
def free_physical_scale( self, ch ):
|
1676
|
-
self.segsrv.
|
1683
|
+
self.segsrv.free_physical_scale( ch )
|
1677
1684
|
|
1678
1685
|
def set_epoch_size( self, s ):
|
1679
1686
|
self.segsrv.set_epoch_size( s )
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.2
|
2
2
|
Name: lunapi
|
3
|
-
Version: 1.3.
|
3
|
+
Version: 1.3.1
|
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>
|
@@ -0,0 +1,11 @@
|
|
1
|
+
lunapi/__init__.py,sha256=nS9DWcqZhxTvOJl7tDfbgO7XxZpDiFLjHJNfL8uPBQg,365
|
2
|
+
lunapi/libfftw3-3.dll,sha256=ABqDXS8lrAZhWA1n21YiFXwoSBwGp_PvRa2TmDm_VKE,2712765
|
3
|
+
lunapi/libfftw3f-3.dll,sha256=QsoY__Nd0SiQ4ER4vJkABbOWnLdE9oQ5dr1DbM1_Ckw,2772692
|
4
|
+
lunapi/libfftw3l-3.dll,sha256=znj80YZuel6-w_3VCzx81YxzgFnRaHetAWSbclu3Kpo,1247967
|
5
|
+
lunapi/lunapi0.cp39-win_amd64.pyd,sha256=Xa7xCQQb5VliNPKxOM_08s0IYgZk_0a4U4UbDaA6Szk,14144512
|
6
|
+
lunapi/lunapi0.cpp,sha256=Mf9jKOMnhP_2yw3-NahjXQMTIeBCPbAVutv36fy4D_o,14862
|
7
|
+
lunapi/lunapi1.py,sha256=-kAI1rOPuoy4cf1OT0qfLzmHAn_PT6DMYhCiKWv8Tk4,96626
|
8
|
+
lunapi-1.3.1.dist-info/METADATA,sha256=uWaw2hLPqyIKYrSqBxMVk6ij13Q2fSOidrgm6lCYLNc,1519
|
9
|
+
lunapi-1.3.1.dist-info/WHEEL,sha256=9tsL4JT94eZPTkcS3bNng2riasYJMxXndrO9CxUfJHs,104
|
10
|
+
lunapi-1.3.1.dist-info/licenses/LICENSE,sha256=IwGE9guuL-ryRPEKi6wFPI_zOhg7zDZbTYuHbSt_SAk,35823
|
11
|
+
lunapi-1.3.1.dist-info/RECORD,,
|
lunapi-1.3.0.dist-info/RECORD
DELETED
@@ -1,11 +0,0 @@
|
|
1
|
-
lunapi/__init__.py,sha256=nS9DWcqZhxTvOJl7tDfbgO7XxZpDiFLjHJNfL8uPBQg,365
|
2
|
-
lunapi/libfftw3-3.dll,sha256=ABqDXS8lrAZhWA1n21YiFXwoSBwGp_PvRa2TmDm_VKE,2712765
|
3
|
-
lunapi/libfftw3f-3.dll,sha256=QsoY__Nd0SiQ4ER4vJkABbOWnLdE9oQ5dr1DbM1_Ckw,2772692
|
4
|
-
lunapi/libfftw3l-3.dll,sha256=znj80YZuel6-w_3VCzx81YxzgFnRaHetAWSbclu3Kpo,1247967
|
5
|
-
lunapi/lunapi0.cp39-win_amd64.pyd,sha256=gxBfB3PMbzPw9lcIjx73lh-NtNuc5jCxjykmYNnTSqw,14150144
|
6
|
-
lunapi/lunapi0.cpp,sha256=vDypPsmeWUkmofejI48pNTEqWC7T2oBdwAf7tSHiDkE,14653
|
7
|
-
lunapi/lunapi1.py,sha256=aJTxdN2lB5SqNS2OIRIQOjuGHY539kM4oZRVRx2Y7pk,96424
|
8
|
-
lunapi-1.3.0.dist-info/METADATA,sha256=z6EQtBSHYEuM-ZDJ1Pb8sYOqOpBFBS_A63TbhaIGyio,1519
|
9
|
-
lunapi-1.3.0.dist-info/WHEEL,sha256=9tsL4JT94eZPTkcS3bNng2riasYJMxXndrO9CxUfJHs,104
|
10
|
-
lunapi-1.3.0.dist-info/licenses/LICENSE,sha256=IwGE9guuL-ryRPEKi6wFPI_zOhg7zDZbTYuHbSt_SAk,35823
|
11
|
-
lunapi-1.3.0.dist-info/RECORD,,
|
File without changes
|
File without changes
|