seppy 0.1.15__tar.gz → 0.1.16__tar.gz
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.
Potentially problematic release.
This version of seppy might be problematic. Click here for more details.
- {seppy-0.1.15/seppy.egg-info → seppy-0.1.16}/PKG-INFO +1 -1
- {seppy-0.1.15 → seppy-0.1.16}/seppy/tests/test_tools.py +8 -8
- {seppy-0.1.15 → seppy-0.1.16}/seppy/util/__init__.py +7 -18
- {seppy-0.1.15 → seppy-0.1.16}/seppy/version.py +1 -1
- {seppy-0.1.15 → seppy-0.1.16/seppy.egg-info}/PKG-INFO +1 -1
- {seppy-0.1.15 → seppy-0.1.16}/LICENSE.rst +0 -0
- {seppy-0.1.15 → seppy-0.1.16}/MANIFEST.in +0 -0
- {seppy-0.1.15 → seppy-0.1.16}/README.rst +0 -0
- {seppy-0.1.15 → seppy-0.1.16}/docs/Makefile +0 -0
- {seppy-0.1.15 → seppy-0.1.16}/docs/conf.py +0 -0
- {seppy-0.1.15 → seppy-0.1.16}/docs/index.rst +0 -0
- {seppy-0.1.15 → seppy-0.1.16}/docs/make.bat +0 -0
- {seppy-0.1.15 → seppy-0.1.16}/licenses/LICENSE.rst +0 -0
- {seppy-0.1.15 → seppy-0.1.16}/licenses/SUNPY_LICENSE.rst +0 -0
- {seppy-0.1.15 → seppy-0.1.16}/licenses/TEMPLATE_LICENSE.rst +0 -0
- {seppy-0.1.15 → seppy-0.1.16}/pyproject.toml +0 -0
- {seppy-0.1.15 → seppy-0.1.16}/requirements.txt +0 -0
- {seppy-0.1.15 → seppy-0.1.16}/seppy/__init__.py +0 -0
- {seppy-0.1.15 → seppy-0.1.16}/seppy/data/test/20230719_side0.csv +0 -0
- {seppy-0.1.15 → seppy-0.1.16}/seppy/data/test/20230719_side1.csv +0 -0
- {seppy-0.1.15 → seppy-0.1.16}/seppy/data/test/20230719_side2.csv +0 -0
- {seppy-0.1.15 → seppy-0.1.16}/seppy/data/test/epi21106.rl2 +0 -0
- {seppy-0.1.15 → seppy-0.1.16}/seppy/data/test/sept_ahead_ele_sun_2006_318_1min_l2_v03.dat +0 -0
- {seppy-0.1.15 → seppy-0.1.16}/seppy/data/test/soho_erne-hed_l2-1min_20211028_v01.cdf +0 -0
- {seppy-0.1.15 → seppy-0.1.16}/seppy/data/test/solo_l2_mag-rtn-normal-1-minute_20210712_v01.cdf +0 -0
- {seppy-0.1.15 → seppy-0.1.16}/seppy/data/test/sta_l1_het_20211028_v01.cdf +0 -0
- {seppy-0.1.15 → seppy-0.1.16}/seppy/data/test/wi_sfsp_3dp_00000000_v01.cdf +0 -0
- {seppy-0.1.15 → seppy-0.1.16}/seppy/data/test/wi_sfsp_3dp_20200213_v01.cdf +0 -0
- {seppy-0.1.15 → seppy-0.1.16}/seppy/loader/psp.py +0 -0
- {seppy-0.1.15 → seppy-0.1.16}/seppy/loader/soho.py +0 -0
- {seppy-0.1.15 → seppy-0.1.16}/seppy/loader/solo.py +0 -0
- {seppy-0.1.15 → seppy-0.1.16}/seppy/loader/stereo.py +0 -0
- {seppy-0.1.15 → seppy-0.1.16}/seppy/loader/wind.py +0 -0
- {seppy-0.1.15 → seppy-0.1.16}/seppy/tests/__init__.py +0 -0
- {seppy-0.1.15 → seppy-0.1.16}/seppy/tests/test_loader.py +0 -0
- {seppy-0.1.15 → seppy-0.1.16}/seppy/tools/__init__.py +0 -0
- {seppy-0.1.15 → seppy-0.1.16}/seppy/tools/swaves.py +0 -0
- {seppy-0.1.15 → seppy-0.1.16}/seppy/tools/widgets.py +0 -0
- {seppy-0.1.15 → seppy-0.1.16}/seppy.egg-info/SOURCES.txt +0 -0
- {seppy-0.1.15 → seppy-0.1.16}/seppy.egg-info/dependency_links.txt +0 -0
- {seppy-0.1.15 → seppy-0.1.16}/seppy.egg-info/not-zip-safe +0 -0
- {seppy-0.1.15 → seppy-0.1.16}/seppy.egg-info/requires.txt +0 -0
- {seppy-0.1.15 → seppy-0.1.16}/seppy.egg-info/top_level.txt +0 -0
- {seppy-0.1.15 → seppy-0.1.16}/setup.cfg +0 -0
- {seppy-0.1.15 → seppy-0.1.16}/setup.py +0 -0
- {seppy-0.1.15 → seppy-0.1.16}/tox.ini +0 -0
|
@@ -62,7 +62,7 @@ def test_onset_spectrum_tsa_SOLO_STEP_ions_new_data_online():
|
|
|
62
62
|
assert flux.shape == (164,)
|
|
63
63
|
assert len(onset_stats) == 6
|
|
64
64
|
assert isinstance(onset_stats[5], pd._libs.tslibs.nattype.NaTType) # onset_stats[5].isoformat().split('.')[0] == '2021-10-28T16:07:30'
|
|
65
|
-
assert
|
|
65
|
+
assert not onset_found
|
|
66
66
|
assert peak_time.isoformat().split('.')[0] == '2022-01-09T01:32:31'
|
|
67
67
|
assert fig.get_axes()[0].get_title() == 'SOLO/STEP 0.0061 - 0.0091 MeV protons\n5min averaging, viewing: PIXEL AVERAGED'
|
|
68
68
|
# Pixel 8
|
|
@@ -71,7 +71,7 @@ def test_onset_spectrum_tsa_SOLO_STEP_ions_new_data_online():
|
|
|
71
71
|
assert flux.shape == (164,)
|
|
72
72
|
assert len(onset_stats) == 6
|
|
73
73
|
assert isinstance(onset_stats[5], pd._libs.tslibs.nattype.NaTType) # onset_stats[5].isoformat().split('.')[0] == '2021-10-28T16:12:30'
|
|
74
|
-
assert
|
|
74
|
+
assert not onset_found
|
|
75
75
|
assert peak_time.isoformat().split('.')[0] == '2022-01-09T00:02:31'
|
|
76
76
|
assert fig.get_axes()[0].get_title() == 'SOLO/STEP 0.0061 - 0.0091 MeV protons\n5min averaging, viewing: PIXEL 8'
|
|
77
77
|
|
|
@@ -101,7 +101,7 @@ def test_onset_spectrum_tsa_SOLO_HET_online():
|
|
|
101
101
|
assert flux.shape == (73,)
|
|
102
102
|
assert len(onset_stats) == 6
|
|
103
103
|
assert isinstance(onset_stats[5], pd._libs.tslibs.nattype.NaTType) # onset_stats[5] == pd.Timestamp('2021-10-28 15:31:59.492059')
|
|
104
|
-
assert
|
|
104
|
+
assert not onset_found
|
|
105
105
|
assert peak_time.isoformat().split('.')[0] == '2022-11-08T17:58:09'
|
|
106
106
|
assert fig.get_axes()[0].get_title() == 'SOLO/HET 7.3540 - 7.8900 MeV protons\n5min averaging, viewing: SUN'
|
|
107
107
|
# viewing "north", combined channel, electrons
|
|
@@ -112,7 +112,7 @@ def test_onset_spectrum_tsa_SOLO_HET_online():
|
|
|
112
112
|
assert flux.shape == (73,)
|
|
113
113
|
assert len(onset_stats) == 6
|
|
114
114
|
assert isinstance(onset_stats[5], pd._libs.tslibs.nattype.NaTType) # onset_stats[5] == pd.Timestamp('2021-10-28 15:31:59.492059')
|
|
115
|
-
assert
|
|
115
|
+
assert not onset_found
|
|
116
116
|
assert peak_time.isoformat().split('.')[0] == '2022-11-08T22:27:56'
|
|
117
117
|
assert fig.get_axes()[0].get_title() == 'SOLO/HET 0.4533 - 18.8300 MeV electrons\n5min averaging, viewing: NORTH'
|
|
118
118
|
|
|
@@ -139,7 +139,7 @@ def test_onset_spectrum_tsa_SOLO_EPT_online():
|
|
|
139
139
|
assert flux.shape == (288,)
|
|
140
140
|
assert len(onset_stats) == 6
|
|
141
141
|
assert isinstance(onset_stats[5], pd._libs.tslibs.nattype.NaTType) # onset_stats[5] == pd.Timestamp('2021-10-28 15:31:59.492059')
|
|
142
|
-
assert
|
|
142
|
+
assert not onset_found
|
|
143
143
|
assert peak_time.isoformat().split('.')[0] == '2022-06-06T01:02:31'
|
|
144
144
|
assert fig.get_axes()[0].get_title() == 'SOLO/EPT 0.0608 - 0.0678 MeV protons\n5min averaging, viewing: SUN'
|
|
145
145
|
# viewing "north", combined channel, electrons
|
|
@@ -150,7 +150,7 @@ def test_onset_spectrum_tsa_SOLO_EPT_online():
|
|
|
150
150
|
assert flux.shape == (288,)
|
|
151
151
|
assert len(onset_stats) == 6
|
|
152
152
|
assert isinstance(onset_stats[5], pd._libs.tslibs.nattype.NaTType) # onset_stats[5] == pd.Timestamp('2021-10-28 15:31:59.492059')
|
|
153
|
-
assert
|
|
153
|
+
assert not onset_found
|
|
154
154
|
assert peak_time.isoformat().split('.')[0] == '2022-06-06T23:02:31'
|
|
155
155
|
assert fig.get_axes()[0].get_title() == 'SOLO/EPT 0.0334 - 0.0439 MeV electrons\n5min averaging, viewing: NORTH'
|
|
156
156
|
|
|
@@ -533,6 +533,6 @@ def test_onset_Bepi_SIXS_offline():
|
|
|
533
533
|
assert flux.shape == (161,)
|
|
534
534
|
assert len(onset_stats) == 6
|
|
535
535
|
assert isinstance(onset_stats[5], pd._libs.tslibs.nattype.NaTType)
|
|
536
|
-
assert
|
|
537
|
-
assert peak_time.isoformat().split('.')[0] == '2023-07-19T02:25:
|
|
536
|
+
assert not onset_found
|
|
537
|
+
assert peak_time.isoformat().split('.')[0] == '2023-07-19T02:25:30'
|
|
538
538
|
assert fig.get_axes()[0].get_title() == 'BEPI/SIXS 106 keV electrons\n1min averaging, viewing: 1'
|
|
@@ -109,24 +109,13 @@ def bepicolombo_sixs_stack(path, date, side, pos_timestamp='center'):
|
|
|
109
109
|
df.index = np.array(times)
|
|
110
110
|
df = df.drop(columns=['TimeUTC'])
|
|
111
111
|
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
elif
|
|
119
|
-
change_date = pd.Timestamp(2022, 8, 29).date()
|
|
120
|
-
if date < change_date:
|
|
121
|
-
cadence = 8
|
|
122
|
-
elif date >= change_date:
|
|
123
|
-
cadence = 24
|
|
124
|
-
#
|
|
125
|
-
if pos_timestamp == 'center':
|
|
126
|
-
df.index = df.index+pd.Timedelta(f'{cadence/2}s')
|
|
127
|
-
# warnings.warn("Assuming cadence of 8s before 2022-08-29 and 24s after!")
|
|
128
|
-
custom_warning("Assuming cadence of 8s before 2022-08-29 and 24s after!")
|
|
129
|
-
elif pos_timestamp == 'start':
|
|
112
|
+
if pos_timestamp == 'start':
|
|
113
|
+
cadence1 = (df.index[1]-df.index[0]).seconds
|
|
114
|
+
cadence2 = (df.index[-1]-df.index[-2]).seconds
|
|
115
|
+
if cadence1 != cadence2:
|
|
116
|
+
custom_warning("Bepi/SIXS cadence is changing throughout the day; something is wrong!")
|
|
117
|
+
df.index = df.index-pd.Timedelta(f'{cadence1/2}s')
|
|
118
|
+
elif pos_timestamp == 'center':
|
|
130
119
|
pass
|
|
131
120
|
except FileNotFoundError:
|
|
132
121
|
print(f'Unable to open {filename}')
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{seppy-0.1.15 → seppy-0.1.16}/seppy/data/test/solo_l2_mag-rtn-normal-1-minute_20210712_v01.cdf
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|