What's new in Hyperion 1.0
==========================

Hyperion 1.0 is the first release since 0.9.11 (April 2024), and includes
improvements to performance, a number of new features, many bug fixes, and
updates to the documentation. This page summarizes the main changes: for the
full list, see the `changelog
<https://github.com/hyperion-rt/hyperion/blob/main/CHANGES.md>`_.

Performance
-----------

When compiled with gfortran, the Fortran code is now optimized by default
(with ``-O2`` and link-time optimization), whereas previous versions were not
optimized unless optimization flags were explicitly passed when compiling.

There are also several new options that can make computing images and SEDs
for very optically thick models much faster: the optical depth to the observer
for peeled photons can be limited (see
:meth:`~hyperion.model.Model.set_max_peeloff_optical_depth`), the minimum
column density for photons to escape each cell can be computed (see
:meth:`~hyperion.model.Model.set_compute_escape_column_density`), and in
:ref:`monochromatic-rt`, dust emission from cells that photons cannot escape
from can be skipped, and the emission can be sampled across cells in a way
that reduces the noise when the flux is dominated by faint cells (see the
``emission_max_escape_optical_depth`` and ``emission_sampling_exponent``
arguments of :meth:`~hyperion.model.Model.set_monochromatic`).

New features
------------

The spectrum of the energy absorbed in each cell, from which the radiation
field in each cell can be derived, can now be computed and written out in
addition to the total specific energy (see :doc:`../setup/setup_conf`). Thanks
to Desika Narayanan for providing this new feature.

Voronoi grids can now be bounded by a spherical wall, so that the cells of
models that fill a sphere do not extend into the corners of the rectangular
domain (see :doc:`../tutorials/example_voronoi`).

Hyperion now also checks that the wavelength ranges of SEDs and images are
covered by the dust properties, includes the names of filters in SED and image
objects, and makes use of the standard Python logging module (see
:doc:`../advanced/logger`).

Dust models
-----------

The library of dust models is now available as the `hyperion-dust
<https://github.com/hyperion-rt/hyperion-dust>`_ package, which can be
installed with ``pip install hyperion-dust``, instead of having to download the
dust files separately (see :doc:`../dust/dust`). Dust objects from this
package can be passed directly to Hyperion when setting up models.

Documentation
-------------

The documentation includes new tutorials on :doc:`setting up a model on a
Voronoi grid <../tutorials/example_voronoi>` and :doc:`computing vertical
hydrostatic equilibrium in disks <../tutorials/howto_hydrostatic_equilibrium>`,
a :doc:`troubleshooting page <../troubleshooting/troubleshooting>` describing
known problems when running Hyperion, an example of launching the MPI code on
clusters that use SLURM, and updated documentation for importing datasets from
`yt <https://yt-project.org>`_.

Bug fixes and compatibility
---------------------------

This release includes many bug fixes, some of which affect results in specific
situations (for example in parallel runs with many MPI processes), so we
recommend that all users upgrade. See the `changelog
<https://github.com/hyperion-rt/hyperion/blob/main/CHANGES.md>`_ for details.

Hyperion 1.0 requires Python 3.11 or later, and can be built against HDF5 2.
