Skip to content

Commit

Permalink
Update __init__.py
Browse files Browse the repository at this point in the history
  • Loading branch information
lukeshingles committed Dec 18, 2024
1 parent 9b796be commit 7da0e17
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion artisatomic/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1485,7 +1485,11 @@ def write_output_files(

log_and_print(flog, f"\n===========> Z={atomic_number} {ionstr} output:")

dfenergylevels_ion = leveltuples_to_pldataframe(energy_levels[i]).with_row_index(name="levelid")
dfenergylevels_ion = (
leveltuples_to_pldataframe(energy_levels[i])
.with_row_index(name="levelid")
.with_columns(pl.col("levelid").cast(pl.Int64))
)

dftransitions_ion = dftransitions_allions[i]

Expand Down

0 comments on commit 7da0e17

Please sign in to comment.