wind_ae 2.0.1__tar.gz → 2.0.2__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 (129) hide show
  1. {wind_ae-2.0.1/wind_ae.egg-info → wind_ae-2.0.2}/PKG-INFO +1 -1
  2. {wind_ae-2.0.1 → wind_ae-2.0.2}/pyproject.toml +1 -1
  3. {wind_ae-2.0.1 → wind_ae-2.0.2}/wind_ae/wrapper/wrapper_utils/plots.py +7 -3
  4. {wind_ae-2.0.1 → wind_ae-2.0.2}/wind_ae/wrapper/wrapper_utils/windsoln.py +10 -4
  5. {wind_ae-2.0.1 → wind_ae-2.0.2/wind_ae.egg-info}/PKG-INFO +1 -1
  6. {wind_ae-2.0.1 → wind_ae-2.0.2}/LICENSE +0 -0
  7. {wind_ae-2.0.1 → wind_ae-2.0.2}/MANIFEST.in +0 -0
  8. {wind_ae-2.0.1 → wind_ae-2.0.2}/README.md +0 -0
  9. {wind_ae-2.0.1 → wind_ae-2.0.2}/docs/conf.py +0 -0
  10. {wind_ae-2.0.1 → wind_ae-2.0.2}/setup.cfg +0 -0
  11. {wind_ae-2.0.1 → wind_ae-2.0.2}/tests/__init__.py +0 -0
  12. {wind_ae-2.0.1 → wind_ae-2.0.2}/tests/test_bcs.py +0 -0
  13. {wind_ae-2.0.1 → wind_ae-2.0.2}/tests/test_load_planet.py +0 -0
  14. {wind_ae-2.0.1 → wind_ae-2.0.2}/tests/test_metals.py +0 -0
  15. {wind_ae-2.0.1 → wind_ae-2.0.2}/tests/test_misc.py +0 -0
  16. {wind_ae-2.0.1 → wind_ae-2.0.2}/tests/test_physics.py +0 -0
  17. {wind_ae-2.0.1 → wind_ae-2.0.2}/tests/test_polish_bcs.py +0 -0
  18. {wind_ae-2.0.1 → wind_ae-2.0.2}/tests/test_ramp_to.py +0 -0
  19. {wind_ae-2.0.1 → wind_ae-2.0.2}/tests/test_run_wind.py +0 -0
  20. {wind_ae-2.0.1 → wind_ae-2.0.2}/tests/test_spectrum.py +0 -0
  21. {wind_ae-2.0.1 → wind_ae-2.0.2}/tests/test_system.py +0 -0
  22. {wind_ae-2.0.1 → wind_ae-2.0.2}/tests/test_windsoln.py +0 -0
  23. {wind_ae-2.0.1 → wind_ae-2.0.2}/wind_ae/McAstro/__init__.py +0 -0
  24. {wind_ae-2.0.1 → wind_ae-2.0.2}/wind_ae/McAstro/atoms/Lodders.dat +0 -0
  25. {wind_ae-2.0.1 → wind_ae-2.0.2}/wind_ae/McAstro/atoms/Verner.csv +0 -0
  26. {wind_ae-2.0.1 → wind_ae-2.0.2}/wind_ae/McAstro/atoms/__init__.py +0 -0
  27. {wind_ae-2.0.1 → wind_ae-2.0.2}/wind_ae/McAstro/atoms/atomic_masses.csv +0 -0
  28. {wind_ae-2.0.1 → wind_ae-2.0.2}/wind_ae/McAstro/atoms/atomic_species.py +0 -0
  29. {wind_ae-2.0.1 → wind_ae-2.0.2}/wind_ae/McAstro/atoms/atomic_table.txt +0 -0
  30. {wind_ae-2.0.1 → wind_ae-2.0.2}/wind_ae/McAstro/atoms/solarZ_mass_fracs.csv +0 -0
  31. {wind_ae-2.0.1 → wind_ae-2.0.2}/wind_ae/McAstro/planets/Ballistic.py +0 -0
  32. {wind_ae-2.0.1 → wind_ae-2.0.2}/wind_ae/McAstro/planets/__init__.py +0 -0
  33. {wind_ae-2.0.1 → wind_ae-2.0.2}/wind_ae/McAstro/planets/atmosphere.py +0 -0
  34. {wind_ae-2.0.1 → wind_ae-2.0.2}/wind_ae/McAstro/planets/insolation/euv.py +0 -0
  35. {wind_ae-2.0.1 → wind_ae-2.0.2}/wind_ae/McAstro/planets/insolation/glq_rates.py +0 -0
  36. {wind_ae-2.0.1 → wind_ae-2.0.2}/wind_ae/McAstro/planets/insolation/glq_spectrum.py +0 -0
  37. {wind_ae-2.0.1 → wind_ae-2.0.2}/wind_ae/McAstro/planets/insolation/stellar_euv.py +0 -0
  38. {wind_ae-2.0.1 → wind_ae-2.0.2}/wind_ae/McAstro/radiation/__init__.py +0 -0
  39. {wind_ae-2.0.1 → wind_ae-2.0.2}/wind_ae/McAstro/radiation/image_plane.py +0 -0
  40. {wind_ae-2.0.1 → wind_ae-2.0.2}/wind_ae/McAstro/radiation/imaging.py +0 -0
  41. {wind_ae-2.0.1 → wind_ae-2.0.2}/wind_ae/McAstro/radiation/lines/CII_1.py +0 -0
  42. {wind_ae-2.0.1 → wind_ae-2.0.2}/wind_ae/McAstro/radiation/lines/chiantiline.py +0 -0
  43. {wind_ae-2.0.1 → wind_ae-2.0.2}/wind_ae/McAstro/radiation/lines/lyman_alpha.py +0 -0
  44. {wind_ae-2.0.1 → wind_ae-2.0.2}/wind_ae/McAstro/radiation/radiative_transfer.py +0 -0
  45. {wind_ae-2.0.1 → wind_ae-2.0.2}/wind_ae/McAstro/radiation/ray_generators/relax_ray.py +0 -0
  46. {wind_ae-2.0.1 → wind_ae-2.0.2}/wind_ae/McAstro/radiation/ray_generators/yt_ray.py +0 -0
  47. {wind_ae-2.0.1 → wind_ae-2.0.2}/wind_ae/McAstro/radiation/ray_trace.py +0 -0
  48. {wind_ae-2.0.1 → wind_ae-2.0.2}/wind_ae/McAstro/radiation/rtw.py +0 -0
  49. {wind_ae-2.0.1 → wind_ae-2.0.2}/wind_ae/McAstro/stars/__init__.py +0 -0
  50. {wind_ae-2.0.1 → wind_ae-2.0.2}/wind_ae/McAstro/stars/classification/mass_classification.py +0 -0
  51. {wind_ae-2.0.1 → wind_ae-2.0.2}/wind_ae/McAstro/stars/relations/colour_relation.py +0 -0
  52. {wind_ae-2.0.1 → wind_ae-2.0.2}/wind_ae/McAstro/stars/relations/colour_relation_models/Mamajek2008.py +0 -0
  53. {wind_ae-2.0.1 → wind_ae-2.0.2}/wind_ae/McAstro/stars/relations/mass_relation.py +0 -0
  54. {wind_ae-2.0.1 → wind_ae-2.0.2}/wind_ae/McAstro/stars/relations/mass_relation_models/Eker2018.py +0 -0
  55. {wind_ae-2.0.1 → wind_ae-2.0.2}/wind_ae/McAstro/stars/relations/temperature_relation.py +0 -0
  56. {wind_ae-2.0.1 → wind_ae-2.0.2}/wind_ae/McAstro/stars/relations/temperature_relation_models/Ballesteros2012.py +0 -0
  57. {wind_ae-2.0.1 → wind_ae-2.0.2}/wind_ae/McAstro/stars/relations/temperature_relation_models/Sung2013.py +0 -0
  58. {wind_ae-2.0.1 → wind_ae-2.0.2}/wind_ae/McAstro/stars/spectrum/black_body.py +0 -0
  59. {wind_ae-2.0.1 → wind_ae-2.0.2}/wind_ae/McAstro/stars/spectrum/high_energy.py +0 -0
  60. {wind_ae-2.0.1 → wind_ae-2.0.2}/wind_ae/McAstro/stars/spectrum/high_energy_models/Chadney2015.py +0 -0
  61. {wind_ae-2.0.1 → wind_ae-2.0.2}/wind_ae/McAstro/stars/spectrum/high_energy_models/Jackson2012.py +0 -0
  62. {wind_ae-2.0.1 → wind_ae-2.0.2}/wind_ae/McAstro/stars/spectrum/high_energy_models/Linsky2014.py +0 -0
  63. {wind_ae-2.0.1 → wind_ae-2.0.2}/wind_ae/McAstro/stars/spectrum/high_energy_models/SanzForcada2011.py +0 -0
  64. {wind_ae-2.0.1 → wind_ae-2.0.2}/wind_ae/McAstro/stars/spectrum/high_energy_models/Tu2015.py +0 -0
  65. {wind_ae-2.0.1 → wind_ae-2.0.2}/wind_ae/McAstro/stars/spectrum/high_energy_models/Wright2018.py +0 -0
  66. {wind_ae-2.0.1 → wind_ae-2.0.2}/wind_ae/McAstro/stars/spectrum/lisird.py +0 -0
  67. {wind_ae-2.0.1 → wind_ae-2.0.2}/wind_ae/McAstro/stars/spectrum/phoenix.py +0 -0
  68. {wind_ae-2.0.1 → wind_ae-2.0.2}/wind_ae/McAstro/stars/winds/isentropic.py +0 -0
  69. {wind_ae-2.0.1 → wind_ae-2.0.2}/wind_ae/McAstro/stars/winds/polytropic.py +0 -0
  70. {wind_ae-2.0.1 → wind_ae-2.0.2}/wind_ae/McAstro/utils/__init__.py +0 -0
  71. {wind_ae-2.0.1 → wind_ae-2.0.2}/wind_ae/McAstro/utils/constants.py +0 -0
  72. {wind_ae-2.0.1 → wind_ae-2.0.2}/wind_ae/McAstro/utils/data_download.py +0 -0
  73. {wind_ae-2.0.1 → wind_ae-2.0.2}/wind_ae/McAstro/utils/fetch_core_data.py +0 -0
  74. {wind_ae-2.0.1 → wind_ae-2.0.2}/wind_ae/McAstro/utils/timedate.py +0 -0
  75. {wind_ae-2.0.1 → wind_ae-2.0.2}/wind_ae/__init__.py +0 -0
  76. {wind_ae-2.0.1 → wind_ae-2.0.2}/wind_ae/bin/relaxed_ae +0 -0
  77. {wind_ae-2.0.1 → wind_ae-2.0.2}/wind_ae/inputs/add_params.inp +0 -0
  78. {wind_ae-2.0.1 → wind_ae-2.0.2}/wind_ae/inputs/bcs.inp +0 -0
  79. {wind_ae-2.0.1 → wind_ae-2.0.2}/wind_ae/inputs/goal_spectrum.inp +0 -0
  80. {wind_ae-2.0.1 → wind_ae-2.0.2}/wind_ae/inputs/guess.inp +0 -0
  81. {wind_ae-2.0.1 → wind_ae-2.0.2}/wind_ae/inputs/phys_params.inp +0 -0
  82. {wind_ae-2.0.1 → wind_ae-2.0.2}/wind_ae/inputs/planet_params.inp +0 -0
  83. {wind_ae-2.0.1 → wind_ae-2.0.2}/wind_ae/inputs/spectrum.inp +0 -0
  84. {wind_ae-2.0.1 → wind_ae-2.0.2}/wind_ae/inputs/tech_params.inp +0 -0
  85. {wind_ae-2.0.1 → wind_ae-2.0.2}/wind_ae/inputs/term_ind.inp +0 -0
  86. {wind_ae-2.0.1 → wind_ae-2.0.2}/wind_ae/saves/temp.csv +0 -0
  87. {wind_ae-2.0.1 → wind_ae-2.0.2}/wind_ae/saves/test.csv +0 -0
  88. {wind_ae-2.0.1 → wind_ae-2.0.2}/wind_ae/saves/test_easy_output.csv +0 -0
  89. {wind_ae-2.0.1 → wind_ae-2.0.2}/wind_ae/saves/test_save.csv +0 -0
  90. {wind_ae-2.0.1 → wind_ae-2.0.2}/wind_ae/saves/windsoln.csv +0 -0
  91. {wind_ae-2.0.1 → wind_ae-2.0.2}/wind_ae/setup.py +0 -0
  92. {wind_ae-2.0.1 → wind_ae-2.0.2}/wind_ae/src/Makefile +0 -0
  93. {wind_ae-2.0.1 → wind_ae-2.0.2}/wind_ae/src/defs-master.h +0 -0
  94. {wind_ae-2.0.1 → wind_ae-2.0.2}/wind_ae/src/defs.h +0 -0
  95. {wind_ae-2.0.1 → wind_ae-2.0.2}/wind_ae/src/difeq.c +0 -0
  96. {wind_ae-2.0.1 → wind_ae-2.0.2}/wind_ae/src/globals.h +0 -0
  97. {wind_ae-2.0.1 → wind_ae-2.0.2}/wind_ae/src/glq_rates.c +0 -0
  98. {wind_ae-2.0.1 → wind_ae-2.0.2}/wind_ae/src/intode.c +0 -0
  99. {wind_ae-2.0.1 → wind_ae-2.0.2}/wind_ae/src/io.c +0 -0
  100. {wind_ae-2.0.1 → wind_ae-2.0.2}/wind_ae/src/ion_pots.h +0 -0
  101. {wind_ae-2.0.1 → wind_ae-2.0.2}/wind_ae/src/line_cooling_coeffs.h +0 -0
  102. {wind_ae-2.0.1 → wind_ae-2.0.2}/wind_ae/src/main.c +0 -0
  103. {wind_ae-2.0.1 → wind_ae-2.0.2}/wind_ae/src/prototypes.h +0 -0
  104. {wind_ae-2.0.1 → wind_ae-2.0.2}/wind_ae/src/rate_coeffs.h +0 -0
  105. {wind_ae-2.0.1 → wind_ae-2.0.2}/wind_ae/src/recombo_vars.h +0 -0
  106. {wind_ae-2.0.1 → wind_ae-2.0.2}/wind_ae/src/relax.c +0 -0
  107. {wind_ae-2.0.1 → wind_ae-2.0.2}/wind_ae/src/soe.c +0 -0
  108. {wind_ae-2.0.1 → wind_ae-2.0.2}/wind_ae/src/utils.c +0 -0
  109. {wind_ae-2.0.1 → wind_ae-2.0.2}/wind_ae/src/wind.h +0 -0
  110. {wind_ae-2.0.1 → wind_ae-2.0.2}/wind_ae/wrapper/__init__.py +0 -0
  111. {wind_ae-2.0.1 → wind_ae-2.0.2}/wind_ae/wrapper/relax_wrapper.py +0 -0
  112. {wind_ae-2.0.1 → wind_ae-2.0.2}/wind_ae/wrapper/wrapper_utils/__init__.py +0 -0
  113. {wind_ae-2.0.1 → wind_ae-2.0.2}/wind_ae/wrapper/wrapper_utils/atmosphere.py +0 -0
  114. {wind_ae-2.0.1 → wind_ae-2.0.2}/wind_ae/wrapper/wrapper_utils/constants.py +0 -0
  115. {wind_ae-2.0.1 → wind_ae-2.0.2}/wind_ae/wrapper/wrapper_utils/constants_compare.py +0 -0
  116. {wind_ae-2.0.1 → wind_ae-2.0.2}/wind_ae/wrapper/wrapper_utils/dere_table29.dat +0 -0
  117. {wind_ae-2.0.1 → wind_ae-2.0.2}/wind_ae/wrapper/wrapper_utils/inputs.py +0 -0
  118. {wind_ae-2.0.1 → wind_ae-2.0.2}/wind_ae/wrapper/wrapper_utils/ion_pots.dat +0 -0
  119. {wind_ae-2.0.1 → wind_ae-2.0.2}/wind_ae/wrapper/wrapper_utils/line_cooling_coeffs.dat +0 -0
  120. {wind_ae-2.0.1 → wind_ae-2.0.2}/wind_ae/wrapper/wrapper_utils/metals.py +0 -0
  121. {wind_ae-2.0.1 → wind_ae-2.0.2}/wind_ae/wrapper/wrapper_utils/observations.py +0 -0
  122. {wind_ae-2.0.1 → wind_ae-2.0.2}/wind_ae/wrapper/wrapper_utils/physics.py +0 -0
  123. {wind_ae-2.0.1 → wind_ae-2.0.2}/wind_ae/wrapper/wrapper_utils/recombo_vars.dat +0 -0
  124. {wind_ae-2.0.1 → wind_ae-2.0.2}/wind_ae/wrapper/wrapper_utils/spectrum.py +0 -0
  125. {wind_ae-2.0.1 → wind_ae-2.0.2}/wind_ae/wrapper/wrapper_utils/system.py +0 -0
  126. {wind_ae-2.0.1 → wind_ae-2.0.2}/wind_ae.egg-info/SOURCES.txt +0 -0
  127. {wind_ae-2.0.1 → wind_ae-2.0.2}/wind_ae.egg-info/dependency_links.txt +0 -0
  128. {wind_ae-2.0.1 → wind_ae-2.0.2}/wind_ae.egg-info/requires.txt +0 -0
  129. {wind_ae-2.0.1 → wind_ae-2.0.2}/wind_ae.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: wind_ae
3
- Version: 2.0.1
3
+ Version: 2.0.2
4
4
  Summary: 1D relaxation Parker wind model with metal and X-ray physics based on Murray-Clay et al. (2009)
5
5
  Author: Madelyn Broome, John McCann, Ruth Murray-Clay
6
6
  License-Expression: BSD-3-Clause
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "wind_ae"
7
- version = "2.0.1"
7
+ version = "2.0.2"
8
8
  authors = [
9
9
  { name = "Madelyn Broome" },
10
10
  { name = "John McCann" },
@@ -605,13 +605,17 @@ def energy_plot(windsoln, ax=None, alpha=1, plot_dom_lines=True, N_top_lines=2,
605
605
  r = windsoln.soln_norm['r']
606
606
 
607
607
  profiles = {}
608
- for species in ['OI', 'OII', 'CI', 'CII', 'FeI', 'MgI','CaII', 'NeII']:
608
+ for species in ['OI', 'OII', 'CI', 'CII', 'FeI','FeII', 'MgI','MgII','CaI','CaII','NeII','NeIII']:
609
609
  if species in windsoln.species_list_unspaced:
610
610
  species_spaced = McAtom.formatting_species_list([species])[0]
611
611
  element_name, lowest_state = species_spaced.split()
612
612
  highest_state = McAtom.arabic_to_roman(McAtom.roman_to_arabic(lowest_state) + 1)
613
- ion_name = element_name + highest_state
614
-
613
+ lower_ion = element_name + lowest_state
614
+ higher_ion = element_name + highest_state
615
+ if lower_ion in coeff_table['Species'].values:
616
+ ion_name = lower_ion
617
+ else:
618
+ ion_name = higher_ion
615
619
  lines = coeff_table.loc[coeff_table['Species'] == ion_name, 'Line'].astype(int).tolist()
616
620
  for line_num in lines:
617
621
  key = f'cool_{ion_name}_{line_num:.0f}A'
@@ -368,7 +368,7 @@ class wind_solution:
368
368
  self.R_exo = np.nan
369
369
  # Skip unnecessary calculations when users is expediting windsoln
370
370
  if calc_postfacto:
371
- self.add_user_vars(expedite = expedite_postfacto)
371
+ self.add_user_vars(expedite = expedite_postfacto, print_warnings=print_warnings)
372
372
 
373
373
 
374
374
  def _rate_coeff_interpolater(self,species):
@@ -881,8 +881,12 @@ class wind_solution:
881
881
  highest_state = McAtom.arabic_to_roman(
882
882
  McAtom.roman_to_arabic(lowest_state) + 1
883
883
  )
884
-
885
- ion_name = element_name + highest_state
884
+ lower_ion = element_name + lowest_state
885
+ higher_ion = element_name + highest_state
886
+ if lower_ion in coeff_table['Species'].values:
887
+ ion_name = lower_ion
888
+ else:
889
+ ion_name = higher_ion
886
890
  mask = (coeff_table['Species'] == ion_name)
887
891
  line, A, T_line, nc = (
888
892
  coeff_table[mask]["Line"],
@@ -892,6 +896,7 @@ class wind_solution:
892
896
  )
893
897
  nIONj = self.soln["n_"+ion_name]
894
898
  for idx in range(len(A.T)):
899
+ # print(ion_name)
895
900
  line_cool_cols[f'cool_{ion_name}_{line.iloc[idx]:.0f}A'] = (
896
901
  -nIONj
897
902
  * n_e
@@ -900,8 +905,9 @@ class wind_solution:
900
905
  / (n_e * (1 + nc.iloc[idx] / n_e))
901
906
  )
902
907
 
903
- for species in ['OI', 'OII', 'CI', 'CII', 'FeI', 'MgI', 'CaI', 'NeII']:
908
+ for species in ['OI', 'OII', 'CI', 'CII', 'FeI', 'FeII', 'MgI', 'MgII', 'CaI', 'CaII', 'NeII', 'NeIII']:
904
909
  if species in self.species_list_unspaced:
910
+ # print(f"Computing line cooling for species: {species}")
905
911
  compute_line_cool(species)
906
912
 
907
913
  _assign_soln_cols(line_cool_cols)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: wind_ae
3
- Version: 2.0.1
3
+ Version: 2.0.2
4
4
  Summary: 1D relaxation Parker wind model with metal and X-ray physics based on Murray-Clay et al. (2009)
5
5
  Author: Madelyn Broome, John McCann, Ruth Murray-Clay
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
File without changes
File without changes