Skip to content

Commit

Permalink
Reformat using Ruff and Black
Browse files Browse the repository at this point in the history
  • Loading branch information
atharva-2001 committed Aug 21, 2024
1 parent 4bdacd9 commit 1a81691
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions tardis/conftest.py
Original file line number Diff line number Diff line change
@@ -1,16 +1,15 @@
import os
from pathlib import Path

import pandas as pd
import pytest
from astropy.version import version as astropy_version

from tardis import run_tardis
from tardis.io.configuration.config_reader import Configuration
from tardis.io.util import YAMLLoader, yaml_load_file
from tardis.simulation import Simulation
from tardis.tests.fixtures.atom_data import *
from tardis.tests.fixtures.regression_data import regression_data
from tardis import run_tardis

# ensuring that regression_data is not removed by ruff
assert regression_data is not None
Expand Down Expand Up @@ -165,6 +164,7 @@ def tardis_snapshot_path(request):
os.path.expandvars(os.path.expanduser(tardis_snapshot_path))
)


@pytest.fixture(scope="function")
def tardis_config_verysimple():
return yaml_load_file(
Expand Down
10 changes: 5 additions & 5 deletions tardis/gui/tests/test_gui.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
import os

import pytest

from tardis.io.configuration.config_reader import Configuration
from tardis.simulation import Simulation
import astropy.units as u

if "QT_API" in os.environ:
from PyQt5 import QtWidgets
from tardis.gui.widgets import Tardis

from tardis.gui.datahandler import SimpleTableModel
from tardis.gui.widgets import Tardis


@pytest.fixture(scope="module")
Expand All @@ -18,9 +20,7 @@ def config():


@pytest.fixture(scope="module")
def simulation_one_loop(
atomic_data_fname, config
):
def simulation_one_loop(atomic_data_fname, config):
config.atom_data = atomic_data_fname
config.montecarlo.iterations = 2
config.montecarlo.no_of_packets = int(4e4)
Expand Down

0 comments on commit 1a81691

Please sign in to comment.