Skip to content

Commit

Permalink
Start removing astropy
Browse files Browse the repository at this point in the history
  • Loading branch information
lukeshingles committed Dec 18, 2024
1 parent 09e9911 commit 6c72dc1
Show file tree
Hide file tree
Showing 7 changed files with 1 addition and 18 deletions.
3 changes: 1 addition & 2 deletions artisatomic/converttopythonrt.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
from pathlib import Path

import artistools as at
from astropy import constants as const

selectedelements: None | list[int]
# selectedelements = [27]
Expand All @@ -15,7 +14,7 @@

def main():
modelpath = Path()
hc = (const.h * const.c).to("eV Angstrom").value
hc_in_ev_angstrom = 12398.419843320025

ionlist = []
compositiondata = at.get_composition_data(modelpath)
Expand Down
2 changes: 0 additions & 2 deletions artisatomic/readdreamdata.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@

import artisatomic

# from astropy import units as u

# the h5 file comes from Andreas Floers's DREAM parser
dreamdatapath = Path(
os.path.dirname(os.path.abspath(__file__)), "..", "atomic-data-dream", "DREAM_atomic_data_20241106-1325.h5"
Expand Down
5 changes: 0 additions & 5 deletions artisatomic/readfacdata.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,6 @@

import artisatomic

# from astropy import units as u
# import os.path
# import pandas as pd
# from carsus.util import parse_selected_species

USE_CALIBRATED = True

BASEPATH = str(
Expand Down
3 changes: 0 additions & 3 deletions artisatomic/readlisbondata.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@

import artisatomic

# from astropy import units as u


hc_in_ev_cm = 0.0001239841984332003


Expand Down
2 changes: 0 additions & 2 deletions artisatomic/readtanakajpltdata.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@

import artisatomic

# from astropy import units as u

# the h5 file comes from Andreas Floers's DREAM parser
jpltpath = (Path(__file__).parent.resolve() / ".." / "atomic-data-tanaka-jplt" / "data_v1.1").resolve()
hc_in_ev_cm = 0.0001239841984332003
Expand Down
2 changes: 0 additions & 2 deletions artisatomic/recombinationrateintegralsnahar.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@
# import os
# import numexpr as ne
# import pandas as pd
# from astropy import constants as const
# from astropy import units as u
# from scipy import interpolate

# PYDIR = os.path.dirname(os.path.abspath(__file__))
Expand Down
2 changes: 0 additions & 2 deletions artisatomic/test_artisatomic.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@
from artisatomic import reduce_configuration
from artisatomic import score_config_match

# from astropy import constants as const


def test_reduce_configuration():
assert reduce_configuration("3d64s (6D ) 8p j5Fo") == "3d64s8p_5Fo"
Expand Down

0 comments on commit 6c72dc1

Please sign in to comment.