From 827462dc215128269e3fe520b14fe3aadabdc3a5 Mon Sep 17 00:00:00 2001 From: BerndR <20151553+bernd1995@users.noreply.github.com> Date: Wed, 19 May 2021 20:33:33 +0200 Subject: [PATCH] NaN checking in backends/gr.jl (#3514) * Updated .zenodo.json infos * resolved NaN-checking --- .zenodo.json | 4 +++- src/backends/gr.jl | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.zenodo.json b/.zenodo.json index e6cd78b4..91bd3d82 100644 --- a/.zenodo.json +++ b/.zenodo.json @@ -452,8 +452,10 @@ "type": "Other" }, { + "affiliation": "University of Graz", "name": "Bernd Riederer", - "type": "Other" + "type": "Other", + "orcid": "0000-0001-8390-0087" }, { "name": "Christina Lee", diff --git a/src/backends/gr.jl b/src/backends/gr.jl index 161ac190..4083444e 100644 --- a/src/backends/gr.jl +++ b/src/backends/gr.jl @@ -401,7 +401,7 @@ end function gr_nans_to_infs!(z) for (i,zi) in enumerate(z) - if zi == NaN + if isnan(zi) z[i] = Inf end end