seppy 0.2.0__tar.gz → 0.2.1__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 (53) hide show
  1. {seppy-0.2.0 → seppy-0.2.1}/PKG-INFO +1 -1
  2. {seppy-0.2.0 → seppy-0.2.1}/seppy/_version.py +2 -2
  3. {seppy-0.2.0 → seppy-0.2.1}/seppy/loader/psp.py +2 -2
  4. {seppy-0.2.0 → seppy-0.2.1}/seppy/util/__init__.py +12 -0
  5. {seppy-0.2.0 → seppy-0.2.1}/seppy/version.py +1 -1
  6. {seppy-0.2.0 → seppy-0.2.1}/seppy.egg-info/PKG-INFO +1 -1
  7. {seppy-0.2.0 → seppy-0.2.1}/.github/dependabot.yml +0 -0
  8. {seppy-0.2.0 → seppy-0.2.1}/.github/release.yml +0 -0
  9. {seppy-0.2.0 → seppy-0.2.1}/.github/workflows/pytest.yml +0 -0
  10. {seppy-0.2.0 → seppy-0.2.1}/.gitignore +0 -0
  11. {seppy-0.2.0 → seppy-0.2.1}/.zenodo.json +0 -0
  12. {seppy-0.2.0 → seppy-0.2.1}/LICENSE.rst +0 -0
  13. {seppy-0.2.0 → seppy-0.2.1}/MANIFEST.in +0 -0
  14. {seppy-0.2.0 → seppy-0.2.1}/README.rst +0 -0
  15. {seppy-0.2.0 → seppy-0.2.1}/docs/Makefile +0 -0
  16. {seppy-0.2.0 → seppy-0.2.1}/docs/conf.py +0 -0
  17. {seppy-0.2.0 → seppy-0.2.1}/docs/index.rst +0 -0
  18. {seppy-0.2.0 → seppy-0.2.1}/docs/make.bat +0 -0
  19. {seppy-0.2.0 → seppy-0.2.1}/licenses/LICENSE.rst +0 -0
  20. {seppy-0.2.0 → seppy-0.2.1}/licenses/SUNPY_LICENSE.rst +0 -0
  21. {seppy-0.2.0 → seppy-0.2.1}/licenses/TEMPLATE_LICENSE.rst +0 -0
  22. {seppy-0.2.0 → seppy-0.2.1}/pyproject.toml +0 -0
  23. {seppy-0.2.0 → seppy-0.2.1}/seppy/__init__.py +0 -0
  24. {seppy-0.2.0 → seppy-0.2.1}/seppy/data/test/20230719_side0.csv +0 -0
  25. {seppy-0.2.0 → seppy-0.2.1}/seppy/data/test/20230719_side1.csv +0 -0
  26. {seppy-0.2.0 → seppy-0.2.1}/seppy/data/test/20230719_side2.csv +0 -0
  27. {seppy-0.2.0 → seppy-0.2.1}/seppy/data/test/epi21106.rl2 +0 -0
  28. {seppy-0.2.0 → seppy-0.2.1}/seppy/data/test/sept_ahead_ele_sun_2006_318_1min_l2_v03.dat +0 -0
  29. {seppy-0.2.0 → seppy-0.2.1}/seppy/data/test/soho_erne-hed_l2-1min_20211028_v01.cdf +0 -0
  30. {seppy-0.2.0 → seppy-0.2.1}/seppy/data/test/solo_l2_mag-rtn-normal-1-minute_20210712_v01.cdf +0 -0
  31. {seppy-0.2.0 → seppy-0.2.1}/seppy/data/test/sta_l1_het_20211028_v01.cdf +0 -0
  32. {seppy-0.2.0 → seppy-0.2.1}/seppy/data/test/wi_sfsp_3dp_00000000_v01.cdf +0 -0
  33. {seppy-0.2.0 → seppy-0.2.1}/seppy/data/test/wi_sfsp_3dp_20200213_v01.cdf +0 -0
  34. {seppy-0.2.0 → seppy-0.2.1}/seppy/loader/soho.py +0 -0
  35. {seppy-0.2.0 → seppy-0.2.1}/seppy/loader/solo.py +0 -0
  36. {seppy-0.2.0 → seppy-0.2.1}/seppy/loader/stereo.py +0 -0
  37. {seppy-0.2.0 → seppy-0.2.1}/seppy/loader/wind.py +0 -0
  38. {seppy-0.2.0 → seppy-0.2.1}/seppy/tests/__init__.py +0 -0
  39. {seppy-0.2.0 → seppy-0.2.1}/seppy/tests/test_loader.py +0 -0
  40. {seppy-0.2.0 → seppy-0.2.1}/seppy/tests/test_time_shift_analysis.ipynb +0 -0
  41. {seppy-0.2.0 → seppy-0.2.1}/seppy/tests/test_tools.py +0 -0
  42. {seppy-0.2.0 → seppy-0.2.1}/seppy/tests/tsa_org.png +0 -0
  43. {seppy-0.2.0 → seppy-0.2.1}/seppy/tools/__init__.py +0 -0
  44. {seppy-0.2.0 → seppy-0.2.1}/seppy/tools/swaves.py +0 -0
  45. {seppy-0.2.0 → seppy-0.2.1}/seppy/tools/widgets.py +0 -0
  46. {seppy-0.2.0 → seppy-0.2.1}/seppy.egg-info/SOURCES.txt +0 -0
  47. {seppy-0.2.0 → seppy-0.2.1}/seppy.egg-info/dependency_links.txt +0 -0
  48. {seppy-0.2.0 → seppy-0.2.1}/seppy.egg-info/not-zip-safe +0 -0
  49. {seppy-0.2.0 → seppy-0.2.1}/seppy.egg-info/requires.txt +0 -0
  50. {seppy-0.2.0 → seppy-0.2.1}/seppy.egg-info/top_level.txt +0 -0
  51. {seppy-0.2.0 → seppy-0.2.1}/setup.cfg +0 -0
  52. {seppy-0.2.0 → seppy-0.2.1}/setup.py +0 -0
  53. {seppy-0.2.0 → seppy-0.2.1}/tox.ini +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: seppy
3
- Version: 0.2.0
3
+ Version: 0.2.1
4
4
  Summary: SEPpy
5
5
  Author-email: Jan Gieseler <jan.gieseler@utu.fi>
6
6
  License-Expression: BSD-3-Clause
@@ -17,5 +17,5 @@ __version__: str
17
17
  __version_tuple__: VERSION_TUPLE
18
18
  version_tuple: VERSION_TUPLE
19
19
 
20
- __version__ = version = '0.2.0'
21
- __version_tuple__ = version_tuple = (0, 2, 0)
20
+ __version__ = version = '0.2.1'
21
+ __version_tuple__ = version_tuple = (0, 2, 1)
@@ -199,8 +199,8 @@ def psp_isois_load(dataset, startdate, enddate, epilo_channel='F', epilo_thresho
199
199
  Name of PSP dataset:
200
200
  - 'PSP_ISOIS-EPIHI_L2-HET-RATES60'
201
201
  - 'PSP_ISOIS-EPIHI_L2-HET-RATES3600' (higher coverage than 'RATES60' before mid-2021)
202
- - 'PSP_ISOIS-EPIHI_L2-LET1-RATES60' (not yet supported)
203
- - 'PSP_ISOIS-EPIHI_L2-LET2-RATES60' (not yet supported)
202
+ - 'PSP_ISOIS-EPIHI_L2-LET1-RATES60'
203
+ - 'PSP_ISOIS-EPIHI_L2-LET2-RATES60'
204
204
  - 'PSP_ISOIS-EPILO_L2-PE'
205
205
  - 'PSP_ISOIS-EPILO_L2-IC'
206
206
  startdate, enddate : {datetime or str}
@@ -1,5 +1,6 @@
1
1
 
2
2
  import datetime
3
+ import psutil
3
4
  import warnings
4
5
 
5
6
  import astropy.constants as const
@@ -429,3 +430,14 @@ def intensity2vsd(species, kinetic_energy, intensity):
429
430
  p = energy2momentum(species, kinetic_energy)
430
431
  f = intensity / (p**2) * mass_dict[species]**3
431
432
  return f.to(u.s**3/(u.sr*u.cm**6))
433
+
434
+
435
+ def jupyterhub_data_path(path_org, path_hub='/home/jovyan/data'):
436
+ """
437
+ Checks if Notebook is run within SOLER/SERPENTINE JupyterHub. Returns the path of a common data folder if yes, and the original path if not.
438
+ """
439
+ if (psutil.Process().parent().name() == 'jupyterhub-sing') and all(x in psutil.Process().parent().environ()['PYTHONPATH'] for x in ['/home/jovyan/serpentine/', '/home/jovyan/soler/sep_tools/']):
440
+ print(f"JupyterHub detected. Adjusting data path to {path_hub}")
441
+ return path_hub
442
+ else:
443
+ return path_org
@@ -14,4 +14,4 @@ except Exception:
14
14
  )
15
15
  del warnings
16
16
 
17
- version = '0.2.0'
17
+ version = '0.2.1'
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: seppy
3
- Version: 0.2.0
3
+ Version: 0.2.1
4
4
  Summary: SEPpy
5
5
  Author-email: Jan Gieseler <jan.gieseler@utu.fi>
6
6
  License-Expression: BSD-3-Clause
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
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