Skip to content

Commit

Permalink
fix PEP8 whitespace
Browse files Browse the repository at this point in the history
  • Loading branch information
jwreep authored and wtbarnes committed Jan 8, 2024
1 parent 1400368 commit 5cf35cc
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions fiasco/io/sources/ion_sources.py
Original file line number Diff line number Diff line change
Expand Up @@ -425,17 +425,23 @@ class AutoParser(GenericIonParser):
filetype = 'auto'
dtypes = [int, int, float, str, str]
units = [None, None, 1/u.s, None, None]
headings = ['lower_level', 'upper_level', 'autoionization_rate', 'lower_label', 'upper_label']
headings = [
'lower_level',
'upper_level',
'autoionization_rate',
'lower_label',
'upper_label'
]
descriptions = [
'lower level index',
'upper level index',
'autoionization rate',
'lower level label',
'lower level index',
'upper level index',
'autoionization rate',
'lower level label',
'upper level label'
]
fformat = fortranformat.FortranRecordReader('(2I7,E12.2,A30,A30)')

def preprocessor(self, table, line, index):
super().preprocessor(table, line, index)
# remove the dash in the second-to-last entry
table[-1][-2] = table[-1][-2].split('-')[0].strip()
table[-1][-2] = table[-1][-2].split('-')[0].strip()

0 comments on commit 5cf35cc

Please sign in to comment.