Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 9 additions & 4 deletions process/physics.py
Original file line number Diff line number Diff line change
Expand Up @@ -6775,10 +6775,15 @@ def output_confinement_comparison(self, istell: int) -> None:
physics_variables.zeff,
)

# Calculate the H-factor for the same confinement time in other scalings
physics_variables.hfac[i_confinement_time - 1] = self.find_other_h_factors(
i_confinement_time
)
try:
# Calculate the H-factor for the same confinement time in other scalings
physics_variables.hfac[i_confinement_time - 1] = (
self.find_other_h_factors(i_confinement_time)
)
except ValueError:
# This is only used for a table in the OUT.DAT so if it fails
# just write a NaN--its not worth crashing PROCESS over.
physics_variables.hfac[i_confinement_time - 1] = np.nan

po.ocmmnt(
self.outfile,
Expand Down