Skip to content

Fixes related to ISRF changes#255

Merged
astrofrog merged 3 commits into
hyperion-rt:mainfrom
astrofrog:spectrum-fixes
Jul 22, 2026
Merged

Fixes related to ISRF changes#255
astrofrog merged 3 commits into
hyperion-rt:mainfrom
astrofrog:spectrum-fixes

Conversation

@astrofrog

Copy link
Copy Markdown
Contributor

@dnarayanan - these are a couple of fixes related to the ISRF functionality you added:

  • Only allocate specific_energy_spectrum if we actually need it
  • When in 'cap' dust sublimation mode, only reset the spectra in empty cells, not in all cells
  • Avoid determining idx in every cell - we can just do it at the start of a single integration since the photon frequency doesn't change during one integration

…d the sublimation threshold when the sublimation mode is cap, rather than wiping it in every cell
… are requested, guarding whole-array operations with allocated checks, which also avoids referencing the first dust type in models with no dust
…grid_integrate rather than at every cell crossing since the photon frequency cannot change during the call
@astrofrog
astrofrog merged commit 52811f8 into hyperion-rt:main Jul 22, 2026
22 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant