astro-nest 1.0.6.dev0__tar.gz → 1.0.6.dev2__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.
Files changed (34) hide show
  1. astro_nest-1.0.6.dev2/NEST/_version.py +1 -0
  2. {astro_nest-1.0.6.dev0 → astro_nest-1.0.6.dev2}/NEST/core.py +3 -3
  3. {astro_nest-1.0.6.dev0 → astro_nest-1.0.6.dev2}/PKG-INFO +1 -1
  4. {astro_nest-1.0.6.dev0 → astro_nest-1.0.6.dev2}/astro_nest.egg-info/PKG-INFO +1 -1
  5. {astro_nest-1.0.6.dev0 → astro_nest-1.0.6.dev2}/pyproject.toml +1 -1
  6. astro_nest-1.0.6.dev0/NEST/_version.py +0 -1
  7. {astro_nest-1.0.6.dev0 → astro_nest-1.0.6.dev2}/NEST/__init__.py +0 -0
  8. {astro_nest-1.0.6.dev0 → astro_nest-1.0.6.dev2}/NEST/cmaps.npz +0 -0
  9. {astro_nest-1.0.6.dev0 → astro_nest-1.0.6.dev2}/NEST/domain.pkl +0 -0
  10. {astro_nest-1.0.6.dev0 → astro_nest-1.0.6.dev2}/NEST/models/BaSTI.mlp +0 -0
  11. {astro_nest-1.0.6.dev0 → astro_nest-1.0.6.dev2}/NEST/models/BaSTI_BPRP.mlp +0 -0
  12. {astro_nest-1.0.6.dev0 → astro_nest-1.0.6.dev2}/NEST/models/BaSTI_HST.mlp +0 -0
  13. {astro_nest-1.0.6.dev0 → astro_nest-1.0.6.dev2}/NEST/models/BaSTI_HST.scaler +0 -0
  14. {astro_nest-1.0.6.dev0 → astro_nest-1.0.6.dev2}/NEST/models/BaSTI_HST_BPRP.mlp +0 -0
  15. {astro_nest-1.0.6.dev0 → astro_nest-1.0.6.dev2}/NEST/models/BaSTI_HST_enhanced.mlp +0 -0
  16. {astro_nest-1.0.6.dev0 → astro_nest-1.0.6.dev2}/NEST/models/BaSTI_HST_enhanced_BPRP.mlp +0 -0
  17. {astro_nest-1.0.6.dev0 → astro_nest-1.0.6.dev2}/NEST/models/CESAM_BPRP.mlp +0 -0
  18. {astro_nest-1.0.6.dev0 → astro_nest-1.0.6.dev2}/NEST/models/Dartmouth.mlp +0 -0
  19. {astro_nest-1.0.6.dev0 → astro_nest-1.0.6.dev2}/NEST/models/Dartmouth_BPRP.mlp +0 -0
  20. {astro_nest-1.0.6.dev0 → astro_nest-1.0.6.dev2}/NEST/models/Geneva.mlp +0 -0
  21. {astro_nest-1.0.6.dev0 → astro_nest-1.0.6.dev2}/NEST/models/Geneva_BPRP.mlp +0 -0
  22. {astro_nest-1.0.6.dev0 → astro_nest-1.0.6.dev2}/NEST/models/MIST.mlp +0 -0
  23. {astro_nest-1.0.6.dev0 → astro_nest-1.0.6.dev2}/NEST/models/MIST_BPRP.mlp +0 -0
  24. {astro_nest-1.0.6.dev0 → astro_nest-1.0.6.dev2}/NEST/models/PARSEC.mlp +0 -0
  25. {astro_nest-1.0.6.dev0 → astro_nest-1.0.6.dev2}/NEST/models/PARSEC_BPRP.mlp +0 -0
  26. {astro_nest-1.0.6.dev0 → astro_nest-1.0.6.dev2}/NEST/models/YaPSI.mlp +0 -0
  27. {astro_nest-1.0.6.dev0 → astro_nest-1.0.6.dev2}/NEST/models/YaPSI_BPRP.mlp +0 -0
  28. {astro_nest-1.0.6.dev0 → astro_nest-1.0.6.dev2}/NEST/models/new_PARSEC_BPRP.mlp +0 -0
  29. {astro_nest-1.0.6.dev0 → astro_nest-1.0.6.dev2}/NEST/tutorial.ipynb +0 -0
  30. {astro_nest-1.0.6.dev0 → astro_nest-1.0.6.dev2}/astro_nest.egg-info/SOURCES.txt +0 -0
  31. {astro_nest-1.0.6.dev0 → astro_nest-1.0.6.dev2}/astro_nest.egg-info/dependency_links.txt +0 -0
  32. {astro_nest-1.0.6.dev0 → astro_nest-1.0.6.dev2}/astro_nest.egg-info/top_level.txt +0 -0
  33. {astro_nest-1.0.6.dev0 → astro_nest-1.0.6.dev2}/readme.md +0 -0
  34. {astro_nest-1.0.6.dev0 → astro_nest-1.0.6.dev2}/setup.cfg +0 -0
@@ -0,0 +1 @@
1
+ __version__ = "1.0.6.dev2"
@@ -101,7 +101,7 @@ def _get_mode(arr,min_age=0,max_age=14,nbins=2800):
101
101
  hist, bins = np.histogram(arr,bins=nbins,range=(min_age,max_age))
102
102
  return bins[np.argmax(hist)] + (bins[1]-bins[0])/2
103
103
 
104
- def _download_isochrones(verbose=True):
104
+ def download_isochrones(verbose=True):
105
105
  """
106
106
  Download isochrone curve data for plotting from the latest repository.
107
107
 
@@ -112,7 +112,7 @@ def _download_isochrones(verbose=True):
112
112
  """
113
113
  if input('Isochrone curves for plots do not exist. Download them ? (27.9Mb) [Y/n] (default: Y)') not in ['Y','y','']:
114
114
  return None
115
- iso_url = "https://github.com/star-age/star-age.github.io/archive/refs/heads/main.zip"
115
+ iso_url = "https://github.com/star-age/NEST/archive/refs/heads/main.zip"
116
116
  iso_dir = os.path.join(NEST_DIR, 'isochrones')
117
117
  tmp_zip = os.path.join(NEST_DIR, 'isochrones_tmp.zip')
118
118
 
@@ -166,7 +166,7 @@ def get_isochrones(model):
166
166
  if model.model_name in loaded_isochrones:
167
167
  return loaded_isochrones[model.model_name]
168
168
  if os.path.exists(os.path.join(NEST_DIR, 'isochrones')) == False:
169
- _download_isochrones(verbose=model.verbose)
169
+ download_isochrones(verbose=model.verbose)
170
170
 
171
171
  matching_version = True
172
172
  if os.path.exists(os.path.join(NEST_DIR, 'isochrones/version.txt')):
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: astro-nest
3
- Version: 1.0.6.dev0
3
+ Version: 1.0.6.dev2
4
4
  Summary: A python package that provides neural networks to estimate ages of stars.
5
5
  Author-email: Tristan Boin <tristan.boin@obspm.fr>
6
6
  License-Expression: MIT
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: astro-nest
3
- Version: 1.0.6.dev0
3
+ Version: 1.0.6.dev2
4
4
  Summary: A python package that provides neural networks to estimate ages of stars.
5
5
  Author-email: Tristan Boin <tristan.boin@obspm.fr>
6
6
  License-Expression: MIT
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "astro-nest"
7
- version = "1.0.6.dev0"
7
+ version = "1.0.6.dev2"
8
8
  authors = [
9
9
  { name="Tristan Boin", email="tristan.boin@obspm.fr" },
10
10
  ]
@@ -1 +0,0 @@
1
- __version__ = "1.0.6.dev0"