Commit 40fc8488 authored by Olivier Sauter's avatar Olivier Sauter
Browse files

avoid only NaNs data

parent e873daa8
Pipeline #104094 passed with stages
in 2 minutes and 10 seconds
......@@ -2406,7 +2406,7 @@ elseif strcmp(mapping_for_tcv.method,'switchcase')
% thus should take it from conf if present
mdsopen(shot);
ptot_ohm = tdi('\results::conf:ptot_ohm');
if ~isempty(ptot_ohm.data) && ~ischar(ptot_ohm.data) && ~isempty(ptot_ohm.dim)
if ~isempty(ptot_ohm.data) && ~ischar(ptot_ohm.data) && ~isempty(ptot_ohm.dim) && any(~isnan(ptot_ohm.data))
gdat_data.ohm.data = ptot_ohm.data;
gdat_data.ohm.t = ptot_ohm.dim{1};
gdat_data.ohm.dim = ptot_ohm.dim;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment