Skip to content

Commit

Permalink
Merge pull request #4586 from neutrinoceros/avoid_divide_by_zero_warning
Browse files Browse the repository at this point in the history
  • Loading branch information
neutrinoceros authored Jul 21, 2023
2 parents 8f5b8a4 + 48a71c3 commit 50637fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion yt/utilities/amr_kdtree/amr_kdtree.py
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@ def get_brick_data(self, node):
for i, field in enumerate(self.fields):
if self.log_fields[i]:
v = vcd[field].astype("float64")
v[v < 0] = np.nan
v[v <= 0] = np.nan
dds.append(np.log10(v))
else:
dds.append(vcd[field].astype("float64"))
Expand Down

0 comments on commit 50637fe

Please sign in to comment.