Skip to content

Commit

Permalink
fix correct loop range in plot_current_profiles_over_time for PF circ…
Browse files Browse the repository at this point in the history
…uit extraction
  • Loading branch information
chris-ashe committed Feb 12, 2025
1 parent 94498d0 commit cd6b2cc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion process/io/plot_proc.py
Original file line number Diff line number Diff line change
Expand Up @@ -387,10 +387,11 @@ def plot_current_profiles_over_time(
ncirt = mfile_data.data["ncirt"].get_scan(scan)

# Extract PF circuit times
# ncirt contains the CS and plasma at the end so we subtract 2
pf_circuits = {}
for i in range(int(ncirt - 2)):
pf_circuits[f"PF Circuit {i}"] = [
mfile_data.data[f"pfc{i}t{j}"].get_scan(scan) for j in range(int(ncirt - 2))
mfile_data.data[f"pfc{i}t{j}"].get_scan(scan) for j in range(6)
]
# Change from 0 to 1 index to align with poloidal cross-section plot numbering
axis.plot(
Expand Down

0 comments on commit cd6b2cc

Please sign in to comment.