Skip to content

Commit

Permalink
Ruff on tardis/simulation (#2847)
Browse files Browse the repository at this point in the history
* Ruff on simulation

* black on simulation
  • Loading branch information
atharva-2001 authored Oct 8, 2024
1 parent 478604d commit 7e672b8
Showing 1 changed file with 5 additions and 7 deletions.
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

0 comments on commit 7e672b8

Please sign in to comment.