Skip to content

Commit

Permalink
Add changes for 040ca25
Browse files Browse the repository at this point in the history
  • Loading branch information
actions-user committed Aug 14, 2024
1 parent ad791ee commit 9a15248
Show file tree
Hide file tree
Showing 293 changed files with 10,320 additions and 10,367 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file modified _images/notebooks_Asymm_Gaussian_on_sphere_8_0.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified _images/notebooks_Band_10_0.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified _images/notebooks_Band_12_0.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified _images/notebooks_Band_8_0.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified _images/notebooks_Band_Calderone_10_0.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified _images/notebooks_Band_Calderone_12_0.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified _images/notebooks_Band_Calderone_8_0.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified _images/notebooks_Band_grbm_10_0.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified _images/notebooks_Band_grbm_12_0.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified _images/notebooks_Band_grbm_8_0.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified _images/notebooks_Beta_10_1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified _images/notebooks_Beta_8_1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified _images/notebooks_Blackbody_10_0.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified _images/notebooks_Blackbody_12_0.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified _images/notebooks_Blackbody_8_0.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified _images/notebooks_Broken_powerlaw_10_0.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified _images/notebooks_Broken_powerlaw_12_0.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified _images/notebooks_Broken_powerlaw_8_0.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified _images/notebooks_Cauchy_10_1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified _images/notebooks_Cauchy_8_1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified _images/notebooks_Constant_10_0.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified _images/notebooks_Constant_12_0.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified _images/notebooks_Constant_8_0.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified _images/notebooks_Cosine_Prior_10_1.png
Binary file modified _images/notebooks_Cosine_Prior_8_1.png
Binary file modified _images/notebooks_Cubic_10_0.png
Binary file modified _images/notebooks_Cubic_12_0.png
Binary file modified _images/notebooks_Cubic_8_0.png
Binary file modified _images/notebooks_Cutoff_powerlaw_10_0.png
Binary file modified _images/notebooks_Cutoff_powerlaw_12_0.png
Binary file modified _images/notebooks_Cutoff_powerlaw_8_0.png
Binary file modified _images/notebooks_Cutoff_powerlaw_Ep_10_0.png
Binary file modified _images/notebooks_Cutoff_powerlaw_Ep_12_0.png
Binary file modified _images/notebooks_Cutoff_powerlaw_Ep_8_0.png
Binary file modified _images/notebooks_DMFitFunction_10_0.png
Binary file modified _images/notebooks_DMFitFunction_12_0.png
Binary file modified _images/notebooks_DMFitFunction_8_0.png
Binary file modified _images/notebooks_DMSpectra_10_0.png
Binary file modified _images/notebooks_DMSpectra_12_0.png
Binary file modified _images/notebooks_DMSpectra_8_0.png
Binary file modified _images/notebooks_DiracDelta_10_0.png
Binary file modified _images/notebooks_DiracDelta_12_0.png
Binary file modified _images/notebooks_DiracDelta_8_0.png
Binary file modified _images/notebooks_Disk_on_sphere_8_0.png
Binary file modified _images/notebooks_DoubleSmoothlyBrokenPowerlaw_10_0.png
Binary file modified _images/notebooks_DoubleSmoothlyBrokenPowerlaw_12_0.png
Binary file modified _images/notebooks_DoubleSmoothlyBrokenPowerlaw_8_0.png
Binary file modified _images/notebooks_EBLattenuation_10_0.png
Binary file modified _images/notebooks_EBLattenuation_12_0.png
Binary file modified _images/notebooks_EBLattenuation_8_0.png
Binary file modified _images/notebooks_Ellipse_on_sphere_8_0.png
Binary file modified _images/notebooks_Exponential_10_1.png
Binary file modified _images/notebooks_Exponential_8_1.png
Binary file modified _images/notebooks_Exponential_cutoff_10_0.png
Binary file modified _images/notebooks_Exponential_cutoff_12_0.png
Binary file modified _images/notebooks_Exponential_cutoff_8_0.png
Binary file modified _images/notebooks_Gamma_10_1.png
Binary file modified _images/notebooks_Gamma_8_1.png
Binary file modified _images/notebooks_Gaussian_10_1.png
Binary file modified _images/notebooks_Gaussian_8_1.png
Binary file modified _images/notebooks_Gaussian_on_sphere_8_0.png
Binary file modified _images/notebooks_Inverse_cutoff_powerlaw_10_0.png
Binary file modified _images/notebooks_Inverse_cutoff_powerlaw_12_0.png
Binary file modified _images/notebooks_Inverse_cutoff_powerlaw_8_0.png
Binary file modified _images/notebooks_Latitude_galactic_diffuse_8_0.png
Binary file modified _images/notebooks_Line_10_0.png
Binary file modified _images/notebooks_Line_12_0.png
Binary file modified _images/notebooks_Line_8_0.png
Binary file modified _images/notebooks_Log_normal_10_1.png
Binary file modified _images/notebooks_Log_normal_8_1.png
Binary file modified _images/notebooks_Log_parabola_10_0.png
Binary file modified _images/notebooks_Log_parabola_12_0.png
Binary file modified _images/notebooks_Log_parabola_8_0.png
Binary file modified _images/notebooks_Log_uniform_prior_10_1.png
Binary file modified _images/notebooks_Log_uniform_prior_8_1.png
Binary file modified _images/notebooks_Model_tutorial_43_1.png
Binary file modified _images/notebooks_Model_tutorial_64_1.png
Binary file modified _images/notebooks_ModifiedBlackbody_10_0.png
Binary file modified _images/notebooks_ModifiedBlackbody_12_0.png
Binary file modified _images/notebooks_ModifiedBlackbody_8_0.png
Binary file modified _images/notebooks_NonDissipativePhotosphere_10_0.png
Binary file modified _images/notebooks_NonDissipativePhotosphere_12_0.png
Binary file modified _images/notebooks_NonDissipativePhotosphere_8_0.png
Binary file modified _images/notebooks_NonDissipativePhotosphere_Deep_10_0.png
Binary file modified _images/notebooks_NonDissipativePhotosphere_Deep_12_0.png
Binary file modified _images/notebooks_NonDissipativePhotosphere_Deep_8_0.png
Binary file modified _images/notebooks_PhAbs_10_0.png
Binary file modified _images/notebooks_PhAbs_12_0.png
Binary file modified _images/notebooks_PhAbs_8_0.png
Binary file modified _images/notebooks_Power_law_on_sphere_8_0.png
Binary file modified _images/notebooks_Powerlaw_10_0.png
Binary file modified _images/notebooks_Powerlaw_12_0.png
Binary file modified _images/notebooks_Powerlaw_8_0.png
Binary file modified _images/notebooks_Powerlaw_Eflux_10_0.png
Binary file modified _images/notebooks_Powerlaw_Eflux_12_0.png
Binary file modified _images/notebooks_Powerlaw_Eflux_8_0.png
Binary file modified _images/notebooks_Powerlaw_Prior_10_1.png
Binary file modified _images/notebooks_Powerlaw_Prior_8_1.png
Binary file modified _images/notebooks_Powerlaw_flux_10_0.png
Binary file modified _images/notebooks_Powerlaw_flux_12_0.png
Binary file modified _images/notebooks_Powerlaw_flux_8_0.png
Binary file modified _images/notebooks_Priors_for_Bayesian_analysis_8_1.png
Binary file modified _images/notebooks_Priors_for_Bayesian_analysis_9_1.png
Binary file modified _images/notebooks_Quadratic_10_0.png
Binary file modified _images/notebooks_Quadratic_12_0.png
Binary file modified _images/notebooks_Quadratic_8_0.png
Binary file modified _images/notebooks_Quartic_10_0.png
Binary file modified _images/notebooks_Quartic_12_0.png
Binary file modified _images/notebooks_Quartic_8_0.png
Binary file modified _images/notebooks_Quick_start_6_1.png
Binary file modified _images/notebooks_Sin_10_0.png
Binary file modified _images/notebooks_Sin_12_0.png
Binary file modified _images/notebooks_Sin_8_0.png
Binary file modified _images/notebooks_SmoothlyBrokenPowerLaw_10_0.png
Binary file modified _images/notebooks_SmoothlyBrokenPowerLaw_12_0.png
Binary file modified _images/notebooks_SmoothlyBrokenPowerLaw_8_0.png
Binary file modified _images/notebooks_StepFunctionUpper_10_0.png
Binary file modified _images/notebooks_StepFunctionUpper_12_0.png
Binary file modified _images/notebooks_StepFunctionUpper_8_0.png
Binary file modified _images/notebooks_StepFunction_10_0.png
Binary file modified _images/notebooks_StepFunction_12_0.png
Binary file modified _images/notebooks_StepFunction_8_0.png
Binary file modified _images/notebooks_Super_cutoff_powerlaw_10_0.png
Binary file modified _images/notebooks_Super_cutoff_powerlaw_12_0.png
Binary file modified _images/notebooks_Super_cutoff_powerlaw_8_0.png
Binary file modified _images/notebooks_TbAbs_10_0.png
Binary file modified _images/notebooks_TbAbs_12_0.png
Binary file modified _images/notebooks_TbAbs_8_0.png
Binary file modified _images/notebooks_Truncated_gaussian_10_1.png
Binary file modified _images/notebooks_Truncated_gaussian_8_1.png
Binary file modified _images/notebooks_Uniform_prior_10_1.png
Binary file modified _images/notebooks_Uniform_prior_8_1.png
Binary file modified _images/notebooks_WAbs_10_0.png
Binary file modified _images/notebooks_WAbs_12_0.png
Binary file modified _images/notebooks_WAbs_8_0.png
Binary file modified _images/notebooks_ZDust_10_0.png
Binary file modified _images/notebooks_ZDust_12_0.png
Binary file modified _images/notebooks_ZDust_8_0.png
4 changes: 1 addition & 3 deletions _modules/astromodels/core/model.html
Original file line number Diff line number Diff line change
Expand Up @@ -99,12 +99,10 @@ <h1>Source code for astromodels.core.model</h1><div class="highlight"><pre>
<span class="kn">import</span> <span class="nn">os</span>
<span class="kn">import</span> <span class="nn">warnings</span>
<span class="kn">from</span> <span class="nn">dataclasses</span> <span class="kn">import</span> <span class="n">dataclass</span>
<span class="kn">from</span> <span class="nn">typing</span> <span class="kn">import</span> <span class="n">Any</span><span class="p">,</span> <span class="n">Dict</span><span class="p">,</span> <span class="n">Iterable</span><span class="p">,</span> <span class="n">List</span><span class="p">,</span> <span class="n">Optional</span><span class="p">,</span> <span class="n">Tuple</span><span class="p">,</span> <span class="n">Union</span>
<span class="kn">from</span> <span class="nn">typing</span> <span class="kn">import</span> <span class="n">Dict</span><span class="p">,</span> <span class="n">Iterable</span><span class="p">,</span> <span class="n">List</span><span class="p">,</span> <span class="n">Tuple</span><span class="p">,</span> <span class="n">Union</span>

<span class="kn">import</span> <span class="nn">numpy</span> <span class="k">as</span> <span class="nn">np</span>
<span class="kn">import</span> <span class="nn">pandas</span> <span class="k">as</span> <span class="nn">pd</span>
<span class="kn">import</span> <span class="nn">scipy.integrate</span>
<span class="kn">from</span> <span class="nn">astromodels.core.memoization</span> <span class="kn">import</span> <span class="n">use_astromodels_memoization</span>
<span class="kn">from</span> <span class="nn">astromodels.core.my_yaml</span> <span class="kn">import</span> <span class="n">my_yaml</span>
<span class="kn">from</span> <span class="nn">astromodels.core.parameter</span> <span class="kn">import</span> <span class="n">IndependentVariable</span><span class="p">,</span> <span class="n">Parameter</span>
<span class="kn">from</span> <span class="nn">astromodels.core.property</span> <span class="kn">import</span> <span class="n">FunctionProperty</span>
Expand Down
2 changes: 1 addition & 1 deletion _modules/astromodels/core/model_parser.html
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ <h1>Source code for astromodels.core.model_parser</h1><div class="highlight"><pr

<span class="kn">import</span> <span class="nn">re</span>
<span class="kn">import</span> <span class="nn">warnings</span>
<span class="kn">from</span> <span class="nn">typing</span> <span class="kn">import</span> <span class="n">Any</span><span class="p">,</span> <span class="n">Dict</span><span class="p">,</span> <span class="n">List</span><span class="p">,</span> <span class="n">Optional</span><span class="p">,</span> <span class="n">Union</span>
<span class="kn">from</span> <span class="nn">typing</span> <span class="kn">import</span> <span class="n">Dict</span><span class="p">,</span> <span class="n">List</span>

<span class="kn">from</span> <span class="nn">astromodels.core</span> <span class="kn">import</span> <span class="p">(</span>
<span class="n">model</span><span class="p">,</span>
Expand Down
1 change: 0 additions & 1 deletion _modules/astromodels/core/node_type.html
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,6 @@

<h1>Source code for astromodels.core.node_type</h1><div class="highlight"><pre>
<span></span><span class="kn">import</span> <span class="nn">collections</span>
<span class="kn">import</span> <span class="nn">itertools</span>
<span class="kn">from</span> <span class="nn">dataclasses</span> <span class="kn">import</span> <span class="n">dataclass</span><span class="p">,</span> <span class="n">field</span>
<span class="kn">from</span> <span class="nn">typing</span> <span class="kn">import</span> <span class="n">Dict</span><span class="p">,</span> <span class="n">List</span><span class="p">,</span> <span class="n">Optional</span><span class="p">,</span> <span class="n">Tuple</span><span class="p">,</span> <span class="n">Type</span><span class="p">,</span> <span class="n">Any</span>
<span class="kn">from</span> <span class="nn">rich.tree</span> <span class="kn">import</span> <span class="n">Tree</span>
Expand Down
2 changes: 1 addition & 1 deletion _modules/astromodels/core/parameter.html
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ <h1>Source code for astromodels.core.parameter</h1><div class="highlight"><pre>
<span class="kn">import</span> <span class="nn">contextlib</span>
<span class="kn">import</span> <span class="nn">copy</span>
<span class="kn">import</span> <span class="nn">warnings</span>
<span class="kn">from</span> <span class="nn">typing</span> <span class="kn">import</span> <span class="n">Any</span><span class="p">,</span> <span class="n">Dict</span><span class="p">,</span> <span class="n">List</span><span class="p">,</span> <span class="n">Optional</span><span class="p">,</span> <span class="n">Tuple</span>
<span class="kn">from</span> <span class="nn">typing</span> <span class="kn">import</span> <span class="n">Any</span><span class="p">,</span> <span class="n">Dict</span><span class="p">,</span> <span class="n">Optional</span><span class="p">,</span> <span class="n">Tuple</span>

<span class="kn">import</span> <span class="nn">astropy.units</span> <span class="k">as</span> <span class="nn">u</span>
<span class="kn">import</span> <span class="nn">numpy</span> <span class="k">as</span> <span class="nn">np</span>
Expand Down
2 changes: 1 addition & 1 deletion _modules/astromodels/core/property.html
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@
<h1>Source code for astromodels.core.property</h1><div class="highlight"><pre>
<span></span><span class="kn">import</span> <span class="nn">collections</span>
<span class="kn">import</span> <span class="nn">copy</span>
<span class="kn">from</span> <span class="nn">typing</span> <span class="kn">import</span> <span class="n">Any</span><span class="p">,</span> <span class="n">Dict</span><span class="p">,</span> <span class="n">List</span><span class="p">,</span> <span class="n">Optional</span><span class="p">,</span> <span class="n">Tuple</span><span class="p">,</span> <span class="n">Union</span>
<span class="kn">from</span> <span class="nn">typing</span> <span class="kn">import</span> <span class="n">Any</span><span class="p">,</span> <span class="n">Dict</span><span class="p">,</span> <span class="n">List</span><span class="p">,</span> <span class="n">Optional</span>

<span class="kn">from</span> <span class="nn">astromodels.utils.logging</span> <span class="kn">import</span> <span class="n">setup_logger</span>

Expand Down
4 changes: 1 addition & 3 deletions _modules/astromodels/core/tree.html
Original file line number Diff line number Diff line change
Expand Up @@ -92,9 +92,7 @@

<h1>Source code for astromodels.core.tree</h1><div class="highlight"><pre>
<span></span><span class="kn">import</span> <span class="nn">collections</span>
<span class="kn">import</span> <span class="nn">os</span>
<span class="kn">import</span> <span class="nn">uuid</span>
<span class="kn">from</span> <span class="nn">typing</span> <span class="kn">import</span> <span class="n">Any</span><span class="p">,</span> <span class="n">Dict</span><span class="p">,</span> <span class="n">List</span><span class="p">,</span> <span class="n">Optional</span><span class="p">,</span> <span class="n">Union</span>
<span class="kn">from</span> <span class="nn">typing</span> <span class="kn">import</span> <span class="n">Any</span><span class="p">,</span> <span class="n">Dict</span>

<span class="kn">from</span> <span class="nn">future</span> <span class="kn">import</span> <span class="n">standard_library</span>

Expand Down
1 change: 0 additions & 1 deletion _modules/astromodels/core/units.html
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,6 @@ <h1>Source code for astromodels.core.units</h1><div class="highlight"><pre>

<span class="kn">import</span> <span class="nn">astropy.units</span> <span class="k">as</span> <span class="nn">u</span>

<span class="kn">from</span> <span class="nn">astromodels.core.tree</span> <span class="kn">import</span> <span class="n">Node</span>
<span class="kn">from</span> <span class="nn">astromodels.utils.pretty_list</span> <span class="kn">import</span> <span class="n">dict_to_list</span>

<span class="c1"># This module keeps the configuration of the units used in astromodels</span>
Expand Down
1 change: 0 additions & 1 deletion _modules/astromodels/functions/dark_matter/dm_models.html
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,6 @@ <h1>Source code for astromodels.functions.dark_matter.dm_models</h1><div class="

<span class="kn">import</span> <span class="nn">astropy.units</span> <span class="k">as</span> <span class="nn">astropy_units</span>
<span class="kn">import</span> <span class="nn">numpy</span> <span class="k">as</span> <span class="nn">np</span>
<span class="kn">import</span> <span class="nn">six</span>
<span class="kn">from</span> <span class="nn">scipy.interpolate</span> <span class="kn">import</span> <span class="n">RegularGridInterpolator</span>

<span class="kn">from</span> <span class="nn">astromodels.functions.function</span> <span class="kn">import</span> <span class="n">Function1D</span><span class="p">,</span> <span class="n">FunctionMeta</span>
Expand Down
13 changes: 6 additions & 7 deletions _modules/astromodels/functions/function.html
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,6 @@ <h1>Source code for astromodels.functions.function</h1><div class="highlight"><p
<span class="kn">from</span> <span class="nn">astromodels.utils.logging</span> <span class="kn">import</span> <span class="n">setup_logger</span>
<span class="kn">from</span> <span class="nn">astromodels.utils.pretty_list</span> <span class="kn">import</span> <span class="n">dict_to_list</span>
<span class="kn">from</span> <span class="nn">astromodels.utils.table</span> <span class="kn">import</span> <span class="n">dict_to_table</span>
<span class="kn">from</span> <span class="nn">astromodels.utils.file_utils</span> <span class="kn">import</span> <span class="n">copy_if_needed</span>
<span class="kn">from</span> <span class="nn">yaml.reader</span> <span class="kn">import</span> <span class="n">ReaderError</span>

<span class="n">log</span> <span class="o">=</span> <span class="n">setup_logger</span><span class="p">(</span><span class="vm">__name__</span><span class="p">)</span>
Expand Down Expand Up @@ -1573,7 +1572,7 @@ <h1>Source code for astromodels.functions.function</h1><div class="highlight"><p

<span class="c1"># Transform the input to an array of floats. If x is a single number, this will be an array of size 1</span>

<span class="n">new_input</span> <span class="o">=</span> <span class="n">np</span><span class="o">.</span><span class="n">array</span><span class="p">(</span><span class="n">x</span><span class="p">,</span> <span class="n">dtype</span><span class="o">=</span><span class="nb">float</span><span class="p">,</span> <span class="n">ndmin</span><span class="o">=</span><span class="mi">1</span><span class="p">,</span> <span class="n">copy</span><span class="o">=</span><span class="n">copy_if_needed</span><span class="p">)</span>
<span class="n">new_input</span> <span class="o">=</span> <span class="n">np</span><span class="o">.</span><span class="n">array</span><span class="p">(</span><span class="n">x</span><span class="p">,</span> <span class="n">dtype</span><span class="o">=</span><span class="nb">float</span><span class="p">,</span> <span class="n">ndmin</span><span class="o">=</span><span class="mi">1</span><span class="p">,</span> <span class="n">copy</span><span class="o">=</span><span class="kc">False</span><span class="p">)</span>

<span class="c1"># Compute the function</span>

Expand Down Expand Up @@ -1799,8 +1798,8 @@ <h1>Source code for astromodels.functions.function</h1><div class="highlight"><p

<span class="c1"># Transform the input to an array of floats</span>

<span class="n">new_x</span> <span class="o">=</span> <span class="n">np</span><span class="o">.</span><span class="n">array</span><span class="p">(</span><span class="n">x</span><span class="p">,</span> <span class="n">dtype</span><span class="o">=</span><span class="nb">float</span><span class="p">,</span> <span class="n">ndmin</span><span class="o">=</span><span class="mi">1</span><span class="p">,</span> <span class="n">copy</span><span class="o">=</span><span class="n">copy_if_needed</span><span class="p">)</span>
<span class="n">new_y</span> <span class="o">=</span> <span class="n">np</span><span class="o">.</span><span class="n">array</span><span class="p">(</span><span class="n">y</span><span class="p">,</span> <span class="n">dtype</span><span class="o">=</span><span class="nb">float</span><span class="p">,</span> <span class="n">ndmin</span><span class="o">=</span><span class="mi">1</span><span class="p">,</span> <span class="n">copy</span><span class="o">=</span><span class="n">copy_if_needed</span><span class="p">)</span>
<span class="n">new_x</span> <span class="o">=</span> <span class="n">np</span><span class="o">.</span><span class="n">array</span><span class="p">(</span><span class="n">x</span><span class="p">,</span> <span class="n">dtype</span><span class="o">=</span><span class="nb">float</span><span class="p">,</span> <span class="n">ndmin</span><span class="o">=</span><span class="mi">1</span><span class="p">,</span> <span class="n">copy</span><span class="o">=</span><span class="kc">False</span><span class="p">)</span>
<span class="n">new_y</span> <span class="o">=</span> <span class="n">np</span><span class="o">.</span><span class="n">array</span><span class="p">(</span><span class="n">y</span><span class="p">,</span> <span class="n">dtype</span><span class="o">=</span><span class="nb">float</span><span class="p">,</span> <span class="n">ndmin</span><span class="o">=</span><span class="mi">1</span><span class="p">,</span> <span class="n">copy</span><span class="o">=</span><span class="kc">False</span><span class="p">)</span>

<span class="c1"># Compute the function</span>

Expand Down Expand Up @@ -1970,9 +1969,9 @@ <h1>Source code for astromodels.functions.function</h1><div class="highlight"><p
<span class="c1"># This is either a single number or a list</span>
<span class="c1"># Transform the input to an array of floats</span>

<span class="n">new_x</span> <span class="o">=</span> <span class="n">np</span><span class="o">.</span><span class="n">array</span><span class="p">(</span><span class="n">x</span><span class="p">,</span> <span class="n">dtype</span><span class="o">=</span><span class="nb">float</span><span class="p">,</span> <span class="n">ndmin</span><span class="o">=</span><span class="mi">1</span><span class="p">,</span> <span class="n">copy</span><span class="o">=</span><span class="n">copy_if_needed</span><span class="p">)</span>
<span class="n">new_y</span> <span class="o">=</span> <span class="n">np</span><span class="o">.</span><span class="n">array</span><span class="p">(</span><span class="n">y</span><span class="p">,</span> <span class="n">dtype</span><span class="o">=</span><span class="nb">float</span><span class="p">,</span> <span class="n">ndmin</span><span class="o">=</span><span class="mi">1</span><span class="p">,</span> <span class="n">copy</span><span class="o">=</span><span class="n">copy_if_needed</span><span class="p">)</span>
<span class="n">new_z</span> <span class="o">=</span> <span class="n">np</span><span class="o">.</span><span class="n">array</span><span class="p">(</span><span class="n">z</span><span class="p">,</span> <span class="n">dtype</span><span class="o">=</span><span class="nb">float</span><span class="p">,</span> <span class="n">ndmin</span><span class="o">=</span><span class="mi">1</span><span class="p">,</span> <span class="n">copy</span><span class="o">=</span><span class="n">copy_if_needed</span><span class="p">)</span>
<span class="n">new_x</span> <span class="o">=</span> <span class="n">np</span><span class="o">.</span><span class="n">array</span><span class="p">(</span><span class="n">x</span><span class="p">,</span> <span class="n">dtype</span><span class="o">=</span><span class="nb">float</span><span class="p">,</span> <span class="n">ndmin</span><span class="o">=</span><span class="mi">1</span><span class="p">,</span> <span class="n">copy</span><span class="o">=</span><span class="kc">False</span><span class="p">)</span>
<span class="n">new_y</span> <span class="o">=</span> <span class="n">np</span><span class="o">.</span><span class="n">array</span><span class="p">(</span><span class="n">y</span><span class="p">,</span> <span class="n">dtype</span><span class="o">=</span><span class="nb">float</span><span class="p">,</span> <span class="n">ndmin</span><span class="o">=</span><span class="mi">1</span><span class="p">,</span> <span class="n">copy</span><span class="o">=</span><span class="kc">False</span><span class="p">)</span>
<span class="n">new_z</span> <span class="o">=</span> <span class="n">np</span><span class="o">.</span><span class="n">array</span><span class="p">(</span><span class="n">z</span><span class="p">,</span> <span class="n">dtype</span><span class="o">=</span><span class="nb">float</span><span class="p">,</span> <span class="n">ndmin</span><span class="o">=</span><span class="mi">1</span><span class="p">,</span> <span class="n">copy</span><span class="o">=</span><span class="kc">False</span><span class="p">)</span>

<span class="c1"># Compute the function</span>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ <h1>Source code for astromodels.functions.functions_1D.absorption</h1><div class
<span></span><span class="kn">import</span> <span class="nn">math</span>
<span class="kn">from</span> <span class="nn">dataclasses</span> <span class="kn">import</span> <span class="n">dataclass</span>
<span class="kn">from</span> <span class="nn">pathlib</span> <span class="kn">import</span> <span class="n">Path</span>
<span class="kn">from</span> <span class="nn">typing</span> <span class="kn">import</span> <span class="n">Any</span><span class="p">,</span> <span class="n">Dict</span><span class="p">,</span> <span class="n">List</span><span class="p">,</span> <span class="n">Optional</span>
<span class="kn">from</span> <span class="nn">typing</span> <span class="kn">import</span> <span class="n">List</span>

<span class="kn">import</span> <span class="nn">astropy.units</span> <span class="k">as</span> <span class="nn">astropy_units</span>
<span class="kn">import</span> <span class="nn">numba</span> <span class="k">as</span> <span class="nn">nb</span>
Expand Down
3 changes: 0 additions & 3 deletions _modules/astromodels/functions/functions_1D/blackbody.html
Original file line number Diff line number Diff line change
Expand Up @@ -94,15 +94,12 @@ <h1>Source code for astromodels.functions.functions_1D.blackbody</h1><div class=
<span></span><span class="kn">from</span> <span class="nn">__future__</span> <span class="kn">import</span> <span class="n">division</span>

<span class="kn">import</span> <span class="nn">astropy.units</span> <span class="k">as</span> <span class="nn">astropy_units</span>
<span class="kn">import</span> <span class="nn">numpy</span> <span class="k">as</span> <span class="nn">np</span>
<span class="kn">from</span> <span class="nn">past.utils</span> <span class="kn">import</span> <span class="n">old_div</span>

<span class="kn">import</span> <span class="nn">astromodels.functions.numba_functions</span> <span class="k">as</span> <span class="nn">nb_func</span>
<span class="kn">from</span> <span class="nn">astromodels.core.units</span> <span class="kn">import</span> <span class="n">get_units</span>
<span class="kn">from</span> <span class="nn">astromodels.functions.function</span> <span class="kn">import</span> <span class="p">(</span>
<span class="n">Function1D</span><span class="p">,</span>
<span class="n">FunctionMeta</span><span class="p">,</span>
<span class="n">ModelAssertionViolation</span><span class="p">,</span>
<span class="p">)</span>


Expand Down
Loading

0 comments on commit 9a15248

Please sign in to comment.