seppy 0.1.16__tar.gz → 0.1.17__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.

Files changed (46) hide show
  1. {seppy-0.1.16/seppy.egg-info → seppy-0.1.17}/PKG-INFO +3 -3
  2. {seppy-0.1.16 → seppy-0.1.17}/README.rst +1 -1
  3. {seppy-0.1.16 → seppy-0.1.17}/requirements.txt +1 -0
  4. {seppy-0.1.16 → seppy-0.1.17}/seppy/loader/wind.py +16 -4
  5. {seppy-0.1.16 → seppy-0.1.17}/seppy/version.py +1 -1
  6. {seppy-0.1.16 → seppy-0.1.17/seppy.egg-info}/PKG-INFO +3 -3
  7. {seppy-0.1.16 → seppy-0.1.17}/LICENSE.rst +0 -0
  8. {seppy-0.1.16 → seppy-0.1.17}/MANIFEST.in +0 -0
  9. {seppy-0.1.16 → seppy-0.1.17}/docs/Makefile +0 -0
  10. {seppy-0.1.16 → seppy-0.1.17}/docs/conf.py +0 -0
  11. {seppy-0.1.16 → seppy-0.1.17}/docs/index.rst +0 -0
  12. {seppy-0.1.16 → seppy-0.1.17}/docs/make.bat +0 -0
  13. {seppy-0.1.16 → seppy-0.1.17}/licenses/LICENSE.rst +0 -0
  14. {seppy-0.1.16 → seppy-0.1.17}/licenses/SUNPY_LICENSE.rst +0 -0
  15. {seppy-0.1.16 → seppy-0.1.17}/licenses/TEMPLATE_LICENSE.rst +0 -0
  16. {seppy-0.1.16 → seppy-0.1.17}/pyproject.toml +0 -0
  17. {seppy-0.1.16 → seppy-0.1.17}/seppy/__init__.py +0 -0
  18. {seppy-0.1.16 → seppy-0.1.17}/seppy/data/test/20230719_side0.csv +0 -0
  19. {seppy-0.1.16 → seppy-0.1.17}/seppy/data/test/20230719_side1.csv +0 -0
  20. {seppy-0.1.16 → seppy-0.1.17}/seppy/data/test/20230719_side2.csv +0 -0
  21. {seppy-0.1.16 → seppy-0.1.17}/seppy/data/test/epi21106.rl2 +0 -0
  22. {seppy-0.1.16 → seppy-0.1.17}/seppy/data/test/sept_ahead_ele_sun_2006_318_1min_l2_v03.dat +0 -0
  23. {seppy-0.1.16 → seppy-0.1.17}/seppy/data/test/soho_erne-hed_l2-1min_20211028_v01.cdf +0 -0
  24. {seppy-0.1.16 → seppy-0.1.17}/seppy/data/test/solo_l2_mag-rtn-normal-1-minute_20210712_v01.cdf +0 -0
  25. {seppy-0.1.16 → seppy-0.1.17}/seppy/data/test/sta_l1_het_20211028_v01.cdf +0 -0
  26. {seppy-0.1.16 → seppy-0.1.17}/seppy/data/test/wi_sfsp_3dp_00000000_v01.cdf +0 -0
  27. {seppy-0.1.16 → seppy-0.1.17}/seppy/data/test/wi_sfsp_3dp_20200213_v01.cdf +0 -0
  28. {seppy-0.1.16 → seppy-0.1.17}/seppy/loader/psp.py +0 -0
  29. {seppy-0.1.16 → seppy-0.1.17}/seppy/loader/soho.py +0 -0
  30. {seppy-0.1.16 → seppy-0.1.17}/seppy/loader/solo.py +0 -0
  31. {seppy-0.1.16 → seppy-0.1.17}/seppy/loader/stereo.py +0 -0
  32. {seppy-0.1.16 → seppy-0.1.17}/seppy/tests/__init__.py +0 -0
  33. {seppy-0.1.16 → seppy-0.1.17}/seppy/tests/test_loader.py +0 -0
  34. {seppy-0.1.16 → seppy-0.1.17}/seppy/tests/test_tools.py +0 -0
  35. {seppy-0.1.16 → seppy-0.1.17}/seppy/tools/__init__.py +0 -0
  36. {seppy-0.1.16 → seppy-0.1.17}/seppy/tools/swaves.py +0 -0
  37. {seppy-0.1.16 → seppy-0.1.17}/seppy/tools/widgets.py +0 -0
  38. {seppy-0.1.16 → seppy-0.1.17}/seppy/util/__init__.py +0 -0
  39. {seppy-0.1.16 → seppy-0.1.17}/seppy.egg-info/SOURCES.txt +0 -0
  40. {seppy-0.1.16 → seppy-0.1.17}/seppy.egg-info/dependency_links.txt +0 -0
  41. {seppy-0.1.16 → seppy-0.1.17}/seppy.egg-info/not-zip-safe +0 -0
  42. {seppy-0.1.16 → seppy-0.1.17}/seppy.egg-info/requires.txt +0 -0
  43. {seppy-0.1.16 → seppy-0.1.17}/seppy.egg-info/top_level.txt +0 -0
  44. {seppy-0.1.16 → seppy-0.1.17}/setup.cfg +0 -0
  45. {seppy-0.1.16 → seppy-0.1.17}/setup.py +0 -0
  46. {seppy-0.1.16 → seppy-0.1.17}/tox.ini +0 -0
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.2
2
2
  Name: seppy
3
- Version: 0.1.16
3
+ Version: 0.1.17
4
4
  Summary: SEPpy
5
5
  Home-page: https://github.com/serpentine-h2020/SEPpy
6
6
  Author: Jan Gieseler
@@ -51,7 +51,7 @@ seppy
51
51
  .. |python version| image:: https://img.shields.io/pypi/pyversions/seppy?style=flat&logo=python
52
52
  .. |zenodo doi| image:: https://zenodo.org/badge/451799504.svg
53
53
  :target: https://zenodo.org/badge/latestdoi/451799504
54
- .. |pytest| image:: https://github.com/serpentine-h2020/SEPpy/workflows/pytest/badge.svg
54
+ .. |pytest| image:: https://github.com/serpentine-h2020/SEPpy/actions/workflows/pytest.yml/badge.svg?branch=main
55
55
  .. |codecov| image:: https://codecov.io/gh/serpentine-h2020/SEPpy/branch/main/graph/badge.svg?token=FYELM4Y7DF
56
56
  :target: https://codecov.io/gh/serpentine-h2020/SEPpy
57
57
 
@@ -8,7 +8,7 @@ seppy
8
8
  .. |python version| image:: https://img.shields.io/pypi/pyversions/seppy?style=flat&logo=python
9
9
  .. |zenodo doi| image:: https://zenodo.org/badge/451799504.svg
10
10
  :target: https://zenodo.org/badge/latestdoi/451799504
11
- .. |pytest| image:: https://github.com/serpentine-h2020/SEPpy/workflows/pytest/badge.svg
11
+ .. |pytest| image:: https://github.com/serpentine-h2020/SEPpy/actions/workflows/pytest.yml/badge.svg?branch=main
12
12
  .. |codecov| image:: https://codecov.io/gh/serpentine-h2020/SEPpy/branch/main/graph/badge.svg?token=FYELM4Y7DF
13
13
  :target: https://codecov.io/gh/serpentine-h2020/SEPpy
14
14
 
@@ -10,5 +10,6 @@ numpy
10
10
  pandas
11
11
  pooch
12
12
  requests
13
+ setuptools
13
14
  solo-epd-loader
14
15
  sunpy>=4.1.0
@@ -180,6 +180,9 @@ def wind3dp_download(dataset, startdate, enddate, path=None, **kwargs):
180
180
  if not os.path.exists(f):
181
181
  # downloaded_file = Fido.fetch(result[0][i], path=path, max_conn=max_conn)
182
182
  downloaded_file = wind3dp_single_download(files[i], path=path)
183
+ if downloaded_file == []:
184
+ print('Trying download from CDAWeb...')
185
+ downloaded_file = Fido.fetch(result[0][i], path=path) #, max_conn=max_conn)
183
186
 
184
187
  except (RuntimeError, IndexError):
185
188
  print(f'Unable to obtain "{dataset}" data for {startdate}-{enddate}!')
@@ -279,22 +282,31 @@ def wind3dp_load(dataset, startdate, enddate, resample="1min", multi_index=True,
279
282
  metacdf = cdflib.CDF(path_to_metafile)
280
283
 
281
284
  e_mean = df.filter(like='ENERGY_').mean()
282
- # ∼30% ΔE/E => ΔE = 0.3*E
283
285
  # from Table 3 of Wilson et al. 2021, https://doi.org/10.1029/2020RG000714
284
- delta_e = 0.3 * e_mean
286
+ # ∼30% ΔE/E => ΔE = 0.3*E
287
+ if dataset in ['WI_SFSP_3DP', 'WI_SFPD_3DP', 'WI_SOSP_3DP', 'WI_SOPD_3DP']:
288
+ delta_e = 0.3 * e_mean
289
+ # ∼20% ΔE/E => ΔE = 0.2*E
290
+ elif dataset in ['WI_ELSP_3DP', 'WI_ELPD_3DP', 'WI_EHSP_3DP', 'WI_EHPD_3DP']:
291
+ delta_e = 0.2 * e_mean
285
292
  e_low = e_mean - delta_e
286
293
  e_high = e_mean + delta_e
287
294
  energies = pd.concat([e_mean, delta_e, e_low, e_high], axis=1, keys=['mean_E', 'DE', 'lower_E', 'upper_E'])
288
295
  energies['Bins_Text']= np.around(e_low/1e3, 2).astype('string') +' - '+ np.around(e_high/1e3, 2).astype('string') + ' keV'
289
296
 
290
297
  meta = {'channels_dict_df': energies,
291
- 'APPROX_ENERGY_LABELS': metacdf.varget('APPROX_ENERGY_LABELS'),
292
298
  'ENERGY_UNITS': metacdf.varattsget('ENERGY')['UNITS'],
293
299
  'FLUX_UNITS': metacdf.varattsget('FLUX')['UNITS'],
294
300
  'FLUX_FILLVAL': metacdf.varattsget('FLUX')['FILLVAL'],
295
- 'FLUX_LABELS': metacdf.varget('FLUX_ENERGY_LABL'),
296
301
  }
297
302
 
303
+ # for SFSP, SOSP, SFPD, SFSP:
304
+ try:
305
+ meta['APPROX_ENERGY_LABELS'] = metacdf.varget('APPROX_ENERGY_LABELS')
306
+ meta['FLUX_LABELS'] = metacdf.varget('FLUX_ENERGY_LABL')
307
+ except:
308
+ pass
309
+
298
310
  # create multi-index data frame of flux
299
311
  if multi_index:
300
312
  if dataset == 'WI_SFPD_3DP' or dataset == 'WI_SOPD_3DP':
@@ -5,4 +5,4 @@ try:
5
5
  from setuptools_scm import get_version
6
6
  __version__ = get_version(root='..', relative_to=__file__)
7
7
  except Exception:
8
- __version__ = '0.1.16'
8
+ __version__ = '0.1.17'
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.2
2
2
  Name: seppy
3
- Version: 0.1.16
3
+ Version: 0.1.17
4
4
  Summary: SEPpy
5
5
  Home-page: https://github.com/serpentine-h2020/SEPpy
6
6
  Author: Jan Gieseler
@@ -51,7 +51,7 @@ seppy
51
51
  .. |python version| image:: https://img.shields.io/pypi/pyversions/seppy?style=flat&logo=python
52
52
  .. |zenodo doi| image:: https://zenodo.org/badge/451799504.svg
53
53
  :target: https://zenodo.org/badge/latestdoi/451799504
54
- .. |pytest| image:: https://github.com/serpentine-h2020/SEPpy/workflows/pytest/badge.svg
54
+ .. |pytest| image:: https://github.com/serpentine-h2020/SEPpy/actions/workflows/pytest.yml/badge.svg?branch=main
55
55
  .. |codecov| image:: https://codecov.io/gh/serpentine-h2020/SEPpy/branch/main/graph/badge.svg?token=FYELM4Y7DF
56
56
  :target: https://codecov.io/gh/serpentine-h2020/SEPpy
57
57
 
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