Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ruff on tardis/simulation #2847

Merged
merged 2 commits into from
Oct 8, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 5 additions & 7 deletions tardis/simulation/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,11 @@
parse_simulation_state,
)
from tardis.io.util import HDFWriterMixin
from tardis.plasma.radiation_field import DilutePlanckianRadiationField
from tardis.opacities.macro_atom.macroatom_solver import MacroAtomSolver
from tardis.opacities.macro_atom.macroatom_state import MacroAtomState
from tardis.opacities.opacity_solver import OpacitySolver
from tardis.plasma.assembly.legacy_assembly import assemble_plasma
from tardis.plasma.radiation_field import DilutePlanckianRadiationField
from tardis.simulation.convergence import ConvergenceSolver
from tardis.spectrum.base import SpectrumSolver
from tardis.spectrum.formal_integral import FormalIntegrator
Expand All @@ -28,9 +31,6 @@
from tardis.transport.montecarlo.estimators.continuum_radfield_properties import (
MCContinuumPropertiesSolver,
)
from tardis.opacities.opacity_solver import OpacitySolver
from tardis.opacities.macro_atom.macroatom_solver import MacroAtomSolver
from tardis.opacities.macro_atom.macroatom_state import MacroAtomState
from tardis.util.base import is_notebook
from tardis.visualization import ConvergencePlots

Expand Down Expand Up @@ -152,9 +152,7 @@ def __init__(
show_progress_bars,
spectrum_solver,
):
super(Simulation, self).__init__(
iterations, simulation_state.no_of_shells
)
super().__init__(iterations, simulation_state.no_of_shells)

self.converged = False
self.iterations = iterations
Expand Down
Loading