Skip to content

Commit

Permalink
Fix unused arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
lukeshingles committed Dec 18, 2024
1 parent f88368d commit 85c4f7e
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion artisatomic/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@ def process_files(ion_handlers: list[tuple[int, list[int | tuple[int, str]]]], a
energy_levels[i],
transitions[i],
transition_count_of_level_name[i],
) = readboyledata.read_levels_and_transitions(atomic_number, ion_stage, flog)
) = readboyledata.read_levels_and_transitions(atomic_number, ion_stage)

elif handler == "qub_cobalt":
if ion_stage in [3, 4]: # QUB levels and transitions, or single-level Co IV
Expand Down
2 changes: 1 addition & 1 deletion artisatomic/readboyledata.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ def read_lines_data(atomic_number, ion_stage):
return transitions, transition_count_of_level_name


def read_levels_and_transitions(atomic_number, ion_stage, flog):
def read_levels_and_transitions(atomic_number, ion_stage):
assert atomic_number == 2
# energy_levels = ['IGNORE']
# artisatomic.log_and_print(flog, 'Reading atomic-data-He')
Expand Down
2 changes: 0 additions & 2 deletions artisatomic/readnahardata.py
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,6 @@ def read_nahar_configurations(fenlist, flog):


def get_naharphotoion_upperlevelids(
energy_level,
energy_levels_upperion,
nahar_core_states,
nahar_configurations_upperion,
Expand Down Expand Up @@ -354,7 +353,6 @@ def get_photoiontargetfractions(
for lowerlevelid, energy_level in enumerate(energy_levels[1:], 1):
# find the upper level ids from the Nahar core state
upperionlevelids = get_naharphotoion_upperlevelids(
energy_level,
energy_levels_upperion,
nahar_core_states,
nahar_configurations_upperion,
Expand Down

0 comments on commit 85c4f7e

Please sign in to comment.