Skip to content

Commit 6c72dc1

Browse files
committed
Start removing astropy
1 parent 09e9911 commit 6c72dc1

File tree

7 files changed

+1
-18
lines changed

7 files changed

+1
-18
lines changed

artisatomic/converttopythonrt.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
from pathlib import Path
44

55
import artistools as at
6-
from astropy import constants as const
76

87
selectedelements: None | list[int]
98
# selectedelements = [27]
@@ -15,7 +14,7 @@
1514

1615
def main():
1716
modelpath = Path()
18-
hc = (const.h * const.c).to("eV Angstrom").value
17+
hc_in_ev_angstrom = 12398.419843320025
1918

2019
ionlist = []
2120
compositiondata = at.get_composition_data(modelpath)

artisatomic/readdreamdata.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@
88

99
import artisatomic
1010

11-
# from astropy import units as u
12-
1311
# the h5 file comes from Andreas Floers's DREAM parser
1412
dreamdatapath = Path(
1513
os.path.dirname(os.path.abspath(__file__)), "..", "atomic-data-dream", "DREAM_atomic_data_20241106-1325.h5"

artisatomic/readfacdata.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,6 @@
77

88
import artisatomic
99

10-
# from astropy import units as u
11-
# import os.path
12-
# import pandas as pd
13-
# from carsus.util import parse_selected_species
14-
1510
USE_CALIBRATED = True
1611

1712
BASEPATH = str(

artisatomic/readlisbondata.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,6 @@
55

66
import artisatomic
77

8-
# from astropy import units as u
9-
10-
118
hc_in_ev_cm = 0.0001239841984332003
129

1310

artisatomic/readtanakajpltdata.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@
88

99
import artisatomic
1010

11-
# from astropy import units as u
12-
1311
# the h5 file comes from Andreas Floers's DREAM parser
1412
jpltpath = (Path(__file__).parent.resolve() / ".." / "atomic-data-tanaka-jplt" / "data_v1.1").resolve()
1513
hc_in_ev_cm = 0.0001239841984332003

artisatomic/recombinationrateintegralsnahar.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@
1515
# import os
1616
# import numexpr as ne
1717
# import pandas as pd
18-
# from astropy import constants as const
19-
# from astropy import units as u
2018
# from scipy import interpolate
2119

2220
# PYDIR = os.path.dirname(os.path.abspath(__file__))

artisatomic/test_artisatomic.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@
77
from artisatomic import reduce_configuration
88
from artisatomic import score_config_match
99

10-
# from astropy import constants as const
11-
1210

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

0 commit comments

Comments
 (0)