Skip to content

Commit

Permalink
Resolves docs build issues
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewfullard committed Jul 17, 2024
1 parent c141355 commit 7d5a340
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
8 changes: 4 additions & 4 deletions docs/io/optional/how_to_custom_source.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -190,11 +190,11 @@
"outputs": [],
"source": [
"%matplotlib inline\n",
"plt.plot(mdl.transport.transport_state.spectrum_virtual.wavelength,\n",
" mdl.transport.transport_state.spectrum_virtual.luminosity_density_lambda,\n",
"plt.plot(mdl.spectrum_solver.spectrum_virtual_packets.wavelength,\n",
" mdl.spectrum_solver.spectrum_virtual_packets.luminosity_density_lambda,\n",
" color='red', label='truncated blackbody (custom packet source)')\n",
"plt.plot(mdl_norm.transport.transport_state.spectrum_virtual.wavelength,\n",
" mdl_norm.transport.transport_state.spectrum_virtual.luminosity_density_lambda,\n",
"plt.plot(mdl_norm.spectrum_solver.spectrum_virtual_packets.wavelength,\n",
" mdl_norm.spectrum_solver.spectrum_virtual_packets.luminosity_density_lambda,\n",
" color='blue', label='normal blackbody (default packet source)')\n",
"plt.xlabel('$\\lambda [\\AA]$')\n",
"plt.ylabel('$L_\\lambda$ [erg/s/$\\AA$]')\n",
Expand Down
4 changes: 2 additions & 2 deletions docs/physics/spectrum/basic.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
"source": [
"from tardis.io.configuration.config_reader import Configuration\n",
"from tardis.simulation import Simulation\n",
"from tardis.spectrum import TARDISSpectrum\n",
"from tardis.spectrum.spectrum import TARDISSpectrum\n",
"from tardis.io.atom_data.util import download_atom_data\n",
"from astropy import units as u\n",
"import numpy as np\n",
Expand Down Expand Up @@ -460,7 +460,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.11.5"
"version": "3.12.3"
}
},
"nbformat": 4,
Expand Down
6 changes: 3 additions & 3 deletions docs/physics/update_and_conv/update_and_conv.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -462,7 +462,7 @@
"#nu_lower = tardis_config.supernova.luminosity_wavelength_end.to(u.Hz, u.spectral)\n",
"#nu_upper = tardis_config.supernova.luminosity_wavelength_start.to(u.Hz, u.spectral)\n",
"\n",
"L_output = transport.transport_state.calculate_emitted_luminosity(0,np.inf)\n",
"L_output = sim.spectrum_solver.calculate_emitted_luminosity(0,np.inf)\n",
"L_output"
]
},
Expand Down Expand Up @@ -517,7 +517,7 @@
},
"outputs": [],
"source": [
"sim.advance_state()"
"sim.advance_state(emitted_luminosity=L_output)"
]
},
{
Expand Down Expand Up @@ -596,7 +596,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.11.5"
"version": "3.12.3"
},
"vscode": {
"interpreter": {
Expand Down

0 comments on commit 7d5a340

Please sign in to comment.