Skip to content

Commit

Permalink
Merge pull request #979 from ToFuProject/Issue978_plot_diagnostic_error
Browse files Browse the repository at this point in the history
[#978] fixed by removing return
  • Loading branch information
Didou09 authored Oct 26, 2024
2 parents 216164d + 0a5cd7a commit b816aff
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tofu/data/_class8_plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ def _plot_diagnostic_check(
# -------
# data

# default
defdata = 'etendue'
c0 = (
data is None
Expand All @@ -74,15 +75,15 @@ def _plot_diagnostic_check(
if c0:
data = defdata

# get data dict
out = coll.get_diagnostic_data(
key=key,
key_cam=key_cam,
data=data,
units=units,
)
if out is None:
return

# extract
ddata, dref, units, static, daxis = out

refz = None
Expand Down

0 comments on commit b816aff

Please sign in to comment.