taurex 3.2.0__tar.gz → 3.2.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 (147) hide show
  1. {taurex-3.2.0 → taurex-3.2.2}/PKG-INFO +1 -1
  2. {taurex-3.2.0 → taurex-3.2.2}/pyproject.toml +1 -1
  3. {taurex-3.2.0 → taurex-3.2.2}/src/taurex/contributions/leemie.py +73 -1
  4. {taurex-3.2.0 → taurex-3.2.2}/src/taurex/mixin/mixins.py +2 -1
  5. {taurex-3.2.0 → taurex-3.2.2}/LICENSE +0 -0
  6. {taurex-3.2.0 → taurex-3.2.2}/README.md +0 -0
  7. {taurex-3.2.0 → taurex-3.2.2}/src/taurex/__init__.py +0 -0
  8. {taurex-3.2.0 → taurex-3.2.2}/src/taurex/_citation.py +0 -0
  9. {taurex-3.2.0 → taurex-3.2.2}/src/taurex/_version.py +0 -0
  10. {taurex-3.2.0 → taurex-3.2.2}/src/taurex/binning/__init__.py +0 -0
  11. {taurex-3.2.0 → taurex-3.2.2}/src/taurex/binning/binner.py +0 -0
  12. {taurex-3.2.0 → taurex-3.2.2}/src/taurex/binning/fluxbinner.py +0 -0
  13. {taurex-3.2.0 → taurex-3.2.2}/src/taurex/binning/lightcurvebinner.py +0 -0
  14. {taurex-3.2.0 → taurex-3.2.2}/src/taurex/binning/nativebinner.py +0 -0
  15. {taurex-3.2.0 → taurex-3.2.2}/src/taurex/binning/simplebinner.py +0 -0
  16. {taurex-3.2.0 → taurex-3.2.2}/src/taurex/cache/__init__.py +0 -0
  17. {taurex-3.2.0 → taurex-3.2.2}/src/taurex/cache/ciaacache.py +0 -0
  18. {taurex-3.2.0 → taurex-3.2.2}/src/taurex/cache/globalcache.py +0 -0
  19. {taurex-3.2.0 → taurex-3.2.2}/src/taurex/cache/ktablecache.py +0 -0
  20. {taurex-3.2.0 → taurex-3.2.2}/src/taurex/cache/opacitycache.py +0 -0
  21. {taurex-3.2.0 → taurex-3.2.2}/src/taurex/cache/singleton.py +0 -0
  22. {taurex-3.2.0 → taurex-3.2.2}/src/taurex/chemistry.py +0 -0
  23. {taurex-3.2.0 → taurex-3.2.2}/src/taurex/cia/__init__.py +0 -0
  24. {taurex-3.2.0 → taurex-3.2.2}/src/taurex/cia/cia.py +0 -0
  25. {taurex-3.2.0 → taurex-3.2.2}/src/taurex/cia/hitrancia.py +0 -0
  26. {taurex-3.2.0 → taurex-3.2.2}/src/taurex/cia/picklecia.py +0 -0
  27. {taurex-3.2.0 → taurex-3.2.2}/src/taurex/constants.py +0 -0
  28. {taurex-3.2.0 → taurex-3.2.2}/src/taurex/contributions/__init__.py +0 -0
  29. {taurex-3.2.0 → taurex-3.2.2}/src/taurex/contributions/absorption.py +0 -0
  30. {taurex-3.2.0 → taurex-3.2.2}/src/taurex/contributions/cia.py +0 -0
  31. {taurex-3.2.0 → taurex-3.2.2}/src/taurex/contributions/contribution.py +0 -0
  32. {taurex-3.2.0 → taurex-3.2.2}/src/taurex/contributions/flatmie.py +0 -0
  33. {taurex-3.2.0 → taurex-3.2.2}/src/taurex/contributions/hm.py +0 -0
  34. {taurex-3.2.0 → taurex-3.2.2}/src/taurex/contributions/rayleigh.py +0 -0
  35. {taurex-3.2.0 → taurex-3.2.2}/src/taurex/contributions/simpleclouds.py +0 -0
  36. {taurex-3.2.0 → taurex-3.2.2}/src/taurex/core/__init__.py +0 -0
  37. {taurex-3.2.0 → taurex-3.2.2}/src/taurex/core/priors.py +0 -0
  38. {taurex-3.2.0 → taurex-3.2.2}/src/taurex/data/__init__.py +0 -0
  39. {taurex-3.2.0 → taurex-3.2.2}/src/taurex/data/citation.py +0 -0
  40. {taurex-3.2.0 → taurex-3.2.2}/src/taurex/data/fittable.py +0 -0
  41. {taurex-3.2.0 → taurex-3.2.2}/src/taurex/data/planet.py +0 -0
  42. {taurex-3.2.0 → taurex-3.2.2}/src/taurex/data/profiles/__init__.py +0 -0
  43. {taurex-3.2.0 → taurex-3.2.2}/src/taurex/data/profiles/chemistry/__init__.py +0 -0
  44. {taurex-3.2.0 → taurex-3.2.2}/src/taurex/data/profiles/chemistry/autochemistry.py +0 -0
  45. {taurex-3.2.0 → taurex-3.2.2}/src/taurex/data/profiles/chemistry/chemistry.py +0 -0
  46. {taurex-3.2.0 → taurex-3.2.2}/src/taurex/data/profiles/chemistry/filechemistry.py +0 -0
  47. {taurex-3.2.0 → taurex-3.2.2}/src/taurex/data/profiles/chemistry/gas/__init__.py +0 -0
  48. {taurex-3.2.0 → taurex-3.2.2}/src/taurex/data/profiles/chemistry/gas/arraygas.py +0 -0
  49. {taurex-3.2.0 → taurex-3.2.2}/src/taurex/data/profiles/chemistry/gas/constantgas.py +0 -0
  50. {taurex-3.2.0 → taurex-3.2.2}/src/taurex/data/profiles/chemistry/gas/gas.py +0 -0
  51. {taurex-3.2.0 → taurex-3.2.2}/src/taurex/data/profiles/chemistry/gas/powergas.py +0 -0
  52. {taurex-3.2.0 → taurex-3.2.2}/src/taurex/data/profiles/chemistry/gas/twolayergas.py +0 -0
  53. {taurex-3.2.0 → taurex-3.2.2}/src/taurex/data/profiles/chemistry/gas/twopointgas.py +0 -0
  54. {taurex-3.2.0 → taurex-3.2.2}/src/taurex/data/profiles/chemistry/taurexchemistry.py +0 -0
  55. {taurex-3.2.0 → taurex-3.2.2}/src/taurex/data/profiles/pressure/__init__.py +0 -0
  56. {taurex-3.2.0 → taurex-3.2.2}/src/taurex/data/profiles/pressure/arraypressure.py +0 -0
  57. {taurex-3.2.0 → taurex-3.2.2}/src/taurex/data/profiles/pressure/filepressure.py +0 -0
  58. {taurex-3.2.0 → taurex-3.2.2}/src/taurex/data/profiles/pressure/pressureprofile.py +0 -0
  59. {taurex-3.2.0 → taurex-3.2.2}/src/taurex/data/profiles/temperature/__init__.py +0 -0
  60. {taurex-3.2.0 → taurex-3.2.2}/src/taurex/data/profiles/temperature/file.py +0 -0
  61. {taurex-3.2.0 → taurex-3.2.2}/src/taurex/data/profiles/temperature/guillot.py +0 -0
  62. {taurex-3.2.0 → taurex-3.2.2}/src/taurex/data/profiles/temperature/isothermal.py +0 -0
  63. {taurex-3.2.0 → taurex-3.2.2}/src/taurex/data/profiles/temperature/npoint.py +0 -0
  64. {taurex-3.2.0 → taurex-3.2.2}/src/taurex/data/profiles/temperature/rodgers.py +0 -0
  65. {taurex-3.2.0 → taurex-3.2.2}/src/taurex/data/profiles/temperature/temparray.py +0 -0
  66. {taurex-3.2.0 → taurex-3.2.2}/src/taurex/data/profiles/temperature/tprofile.py +0 -0
  67. {taurex-3.2.0 → taurex-3.2.2}/src/taurex/data/spectrum/__init__.py +0 -0
  68. {taurex-3.2.0 → taurex-3.2.2}/src/taurex/data/spectrum/array.py +0 -0
  69. {taurex-3.2.0 → taurex-3.2.2}/src/taurex/data/spectrum/iraclis.py +0 -0
  70. {taurex-3.2.0 → taurex-3.2.2}/src/taurex/data/spectrum/lightcurve.py +0 -0
  71. {taurex-3.2.0 → taurex-3.2.2}/src/taurex/data/spectrum/observed.py +0 -0
  72. {taurex-3.2.0 → taurex-3.2.2}/src/taurex/data/spectrum/spectrum.py +0 -0
  73. {taurex-3.2.0 → taurex-3.2.2}/src/taurex/data/spectrum/taurex.py +0 -0
  74. {taurex-3.2.0 → taurex-3.2.2}/src/taurex/data/stellar/__init__.py +0 -0
  75. {taurex-3.2.0 → taurex-3.2.2}/src/taurex/data/stellar/phoenix.py +0 -0
  76. {taurex-3.2.0 → taurex-3.2.2}/src/taurex/data/stellar/star.py +0 -0
  77. {taurex-3.2.0 → taurex-3.2.2}/src/taurex/exceptions.py +0 -0
  78. {taurex-3.2.0 → taurex-3.2.2}/src/taurex/instruments/__init__.py +0 -0
  79. {taurex-3.2.0 → taurex-3.2.2}/src/taurex/instruments/instrument.py +0 -0
  80. {taurex-3.2.0 → taurex-3.2.2}/src/taurex/instruments/instrumentfile.py +0 -0
  81. {taurex-3.2.0 → taurex-3.2.2}/src/taurex/instruments/snr.py +0 -0
  82. {taurex-3.2.0 → taurex-3.2.2}/src/taurex/log/__init__.py +0 -0
  83. {taurex-3.2.0 → taurex-3.2.2}/src/taurex/log/logger.py +0 -0
  84. {taurex-3.2.0 → taurex-3.2.2}/src/taurex/mixin/__init__.py +0 -0
  85. {taurex-3.2.0 → taurex-3.2.2}/src/taurex/mixin/core.py +0 -0
  86. {taurex-3.2.0 → taurex-3.2.2}/src/taurex/model/__init__.py +0 -0
  87. {taurex-3.2.0 → taurex-3.2.2}/src/taurex/model/directimage.py +0 -0
  88. {taurex-3.2.0 → taurex-3.2.2}/src/taurex/model/emission.py +0 -0
  89. {taurex-3.2.0 → taurex-3.2.2}/src/taurex/model/lightcurve/__init__.py +0 -0
  90. {taurex-3.2.0 → taurex-3.2.2}/src/taurex/model/lightcurve/lightcurve.py +0 -0
  91. {taurex-3.2.0 → taurex-3.2.2}/src/taurex/model/lightcurve/lightcurvedata.py +0 -0
  92. {taurex-3.2.0 → taurex-3.2.2}/src/taurex/model/model.py +0 -0
  93. {taurex-3.2.0 → taurex-3.2.2}/src/taurex/model/simplemodel.py +0 -0
  94. {taurex-3.2.0 → taurex-3.2.2}/src/taurex/model/transmission.py +0 -0
  95. {taurex-3.2.0 → taurex-3.2.2}/src/taurex/mpi.py +0 -0
  96. {taurex-3.2.0 → taurex-3.2.2}/src/taurex/opacity/__init__.py +0 -0
  97. {taurex-3.2.0 → taurex-3.2.2}/src/taurex/opacity/exotransmit.py +0 -0
  98. {taurex-3.2.0 → taurex-3.2.2}/src/taurex/opacity/fakeopacity.py +0 -0
  99. {taurex-3.2.0 → taurex-3.2.2}/src/taurex/opacity/hdf5opacity.py +0 -0
  100. {taurex-3.2.0 → taurex-3.2.2}/src/taurex/opacity/interpolateopacity.py +0 -0
  101. {taurex-3.2.0 → taurex-3.2.2}/src/taurex/opacity/ktables/__init__.py +0 -0
  102. {taurex-3.2.0 → taurex-3.2.2}/src/taurex/opacity/ktables/hdfktable.py +0 -0
  103. {taurex-3.2.0 → taurex-3.2.2}/src/taurex/opacity/ktables/ktable.py +0 -0
  104. {taurex-3.2.0 → taurex-3.2.2}/src/taurex/opacity/ktables/nemesisktables.py +0 -0
  105. {taurex-3.2.0 → taurex-3.2.2}/src/taurex/opacity/ktables/picklektable.py +0 -0
  106. {taurex-3.2.0 → taurex-3.2.2}/src/taurex/opacity/opacity.py +0 -0
  107. {taurex-3.2.0 → taurex-3.2.2}/src/taurex/opacity/pickleopacity.py +0 -0
  108. {taurex-3.2.0 → taurex-3.2.2}/src/taurex/opacity/radisopacity.py +0 -0
  109. {taurex-3.2.0 → taurex-3.2.2}/src/taurex/optimizer/__init__.py +0 -0
  110. {taurex-3.2.0 → taurex-3.2.2}/src/taurex/optimizer/dypolychord.py +0 -0
  111. {taurex-3.2.0 → taurex-3.2.2}/src/taurex/optimizer/multinest.py +0 -0
  112. {taurex-3.2.0 → taurex-3.2.2}/src/taurex/optimizer/nestle.py +0 -0
  113. {taurex-3.2.0 → taurex-3.2.2}/src/taurex/optimizer/optimizer.py +0 -0
  114. {taurex-3.2.0 → taurex-3.2.2}/src/taurex/optimizer/polychord.py +0 -0
  115. {taurex-3.2.0 → taurex-3.2.2}/src/taurex/output/__init__.py +0 -0
  116. {taurex-3.2.0 → taurex-3.2.2}/src/taurex/output/hdf5.py +0 -0
  117. {taurex-3.2.0 → taurex-3.2.2}/src/taurex/output/output.py +0 -0
  118. {taurex-3.2.0 → taurex-3.2.2}/src/taurex/output/writeable.py +0 -0
  119. {taurex-3.2.0 → taurex-3.2.2}/src/taurex/parameter/__init__.py +0 -0
  120. {taurex-3.2.0 → taurex-3.2.2}/src/taurex/parameter/classfactory.py +0 -0
  121. {taurex-3.2.0 → taurex-3.2.2}/src/taurex/parameter/factory.py +0 -0
  122. {taurex-3.2.0 → taurex-3.2.2}/src/taurex/parameter/parameterparser.py +0 -0
  123. {taurex-3.2.0 → taurex-3.2.2}/src/taurex/planet.py +0 -0
  124. {taurex-3.2.0 → taurex-3.2.2}/src/taurex/plot/__init__.py +0 -0
  125. {taurex-3.2.0 → taurex-3.2.2}/src/taurex/plot/corner.py +0 -0
  126. {taurex-3.2.0 → taurex-3.2.2}/src/taurex/plot/plotter.py +0 -0
  127. {taurex-3.2.0 → taurex-3.2.2}/src/taurex/plugins/__init__.py +0 -0
  128. {taurex-3.2.0 → taurex-3.2.2}/src/taurex/pressure.py +0 -0
  129. {taurex-3.2.0 → taurex-3.2.2}/src/taurex/spectrum.py +0 -0
  130. {taurex-3.2.0 → taurex-3.2.2}/src/taurex/stellar.py +0 -0
  131. {taurex-3.2.0 → taurex-3.2.2}/src/taurex/taurex.py +0 -0
  132. {taurex-3.2.0 → taurex-3.2.2}/src/taurex/taurexdefs.py +0 -0
  133. {taurex-3.2.0 → taurex-3.2.2}/src/taurex/temperature.py +0 -0
  134. {taurex-3.2.0 → taurex-3.2.2}/src/taurex/types.py +0 -0
  135. {taurex-3.2.0 → taurex-3.2.2}/src/taurex/util/__init__.py +0 -0
  136. {taurex-3.2.0 → taurex-3.2.2}/src/taurex/util/emission.py +0 -0
  137. {taurex-3.2.0 → taurex-3.2.2}/src/taurex/util/fitting.py +0 -0
  138. {taurex-3.2.0 → taurex-3.2.2}/src/taurex/util/fortran.py +0 -0
  139. {taurex-3.2.0 → taurex-3.2.2}/src/taurex/util/geometry.py +0 -0
  140. {taurex-3.2.0 → taurex-3.2.2}/src/taurex/util/hdf5.py +0 -0
  141. {taurex-3.2.0 → taurex-3.2.2}/src/taurex/util/math.py +0 -0
  142. {taurex-3.2.0 → taurex-3.2.2}/src/taurex/util/math_numba.py +0 -0
  143. {taurex-3.2.0 → taurex-3.2.2}/src/taurex/util/module.py +0 -0
  144. {taurex-3.2.0 → taurex-3.2.2}/src/taurex/util/output.py +0 -0
  145. {taurex-3.2.0 → taurex-3.2.2}/src/taurex/util/scattering.py +0 -0
  146. {taurex-3.2.0 → taurex-3.2.2}/src/taurex/util/spectrum.py +0 -0
  147. {taurex-3.2.0 → taurex-3.2.2}/src/taurex/util/util.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: taurex
3
- Version: 3.2.0
3
+ Version: 3.2.2
4
4
  Summary: TauREx3
5
5
  Home-page: https://github.com/ahmed-f-alrefaie/taurex3
6
6
  License: BSDv3
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "taurex"
3
- version = "3.2.0"
3
+ version = "3.2.2"
4
4
  description = "TauREx3"
5
5
  authors = ["Ahmed Faris Al-Refaie <ahmed.al-refaie.12@ucl.ac.uk>"]
6
6
  license = "BSDv3"
@@ -10,6 +10,13 @@ from taurex.output import OutputGroup
10
10
 
11
11
  from .contribution import Contribution
12
12
 
13
+ if t.TYPE_CHECKING:
14
+ from taurex.model.model import ForwardModel
15
+ else:
16
+ ForwardModel = object
17
+
18
+ from .contribution import contribute_tau
19
+
13
20
 
14
21
  class LeeMieContribution(Contribution):
15
22
  """Computes Mie scattering contribution to optica depth.
@@ -26,7 +33,7 @@ class LeeMieContribution(Contribution):
26
33
  Extinction coefficient
27
34
 
28
35
  lee_mie_mix_ratio: float
29
- Mixing ratio in atmosphere
36
+ Mixing ratio in atmosphere in particles/m3
30
37
 
31
38
  lee_mie_bottomP: float
32
39
  Bottom of cloud deck in Pa
@@ -37,6 +44,71 @@ class LeeMieContribution(Contribution):
37
44
 
38
45
  """
39
46
 
47
+ def contribute(
48
+ self,
49
+ model: ForwardModel,
50
+ start_layer: int,
51
+ end_layer: int,
52
+ density_offset: int,
53
+ layer: int,
54
+ density: npt.NDArray[np.float64],
55
+ tau: npt.NDArray[np.float64],
56
+ path_length: t.Optional[npt.NDArray[np.float64]] = None,
57
+ ):
58
+ """Computes an integral for a single layer for the optical depth.
59
+
60
+ Parameters
61
+ ----------
62
+ model: :class:`~taurex.model.model.ForwardModel`
63
+ A forward model
64
+
65
+ start_layer: int
66
+ Lowest layer limit for integration
67
+
68
+ end_layer: int
69
+ Upper layer limit of integration
70
+
71
+ density_offset: int
72
+ offset in density layer
73
+
74
+ layer: int
75
+ atmospheric layer being computed
76
+
77
+ density: :obj:`array`
78
+ density profile of atmosphere
79
+
80
+ tau: :obj:`array`
81
+ optical depth to store result
82
+
83
+ path_length: :obj:`array`
84
+ integration length
85
+
86
+ """
87
+ self.debug("SIGMA %s", self.sigma_xsec.shape)
88
+ self.debug(
89
+ " %s %s %s %s %s %s %s",
90
+ start_layer,
91
+ end_layer,
92
+ density_offset,
93
+ layer,
94
+ 1,
95
+ tau,
96
+ self._ngrid,
97
+ )
98
+ contribute_tau(
99
+ start_layer,
100
+ end_layer,
101
+ density_offset,
102
+ self.sigma_xsec,
103
+ np.ones(self._nlayers),
104
+ path_length,
105
+ self._nlayers,
106
+ self._ngrid,
107
+ layer,
108
+ tau,
109
+ )
110
+ self.debug("DONE")
111
+
40
112
  def __init__(
41
113
  self,
42
114
  lee_mie_radius: t.Optional[float] = 0.01,
@@ -1,4 +1,5 @@
1
1
  """Some implemented mixins."""
2
+
2
3
  import typing as t
3
4
 
4
5
  import numpy as np
@@ -19,7 +20,7 @@ class MakeFreeMixin(ChemistryMixin):
19
20
 
20
21
  For example lets enhance ACE:
21
22
 
22
- >>> from taurex_ace import ACEChemistry
23
+ >>> from acepython.taurex import ACEChemistry
23
24
  >>> from taurex.mixin import enhance_class, MakeFreeMixin
24
25
  >>> old_ace = ACEChemistry()
25
26
  >>> new_ace = enhance_class(ACEChemistry, MakeFreeMixin)
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