diff --git a/tardis/opacities/macro_atom/macroatom_solver.py b/tardis/opacities/macro_atom/macroatom_solver.py index 8dc44912597..27924ec7557 100644 --- a/tardis/opacities/macro_atom/macroatom_solver.py +++ b/tardis/opacities/macro_atom/macroatom_solver.py @@ -75,7 +75,7 @@ def solve( return MacroAtomState( transition_probabilities, macro_atom_info["transition_type"], - macro_atom_info["destination_level_id"], + macro_atom_info["destination_level_idx"], macro_atom_info["lines_idx"], macro_block_references, legacy_plasma.atomic_data.lines_upper2macro_reference_idx, @@ -172,7 +172,7 @@ def solve( return MacroAtomState( transition_probabilities, macro_atom_info["transition_type"], - macro_atom_info["destination_level_id"], + macro_atom_info["destination_level_idx"], macro_atom_info["lines_idx"], macro_block_references, legacy_plasma.atomic_data.lines_upper2macro_reference_idx,