diff options
author | root <root@ot-dev.in-silico.ch> | 2011-03-03 12:16:51 +0000 |
---|---|---|
committer | root <root@ot-dev.in-silico.ch> | 2011-03-03 12:16:51 +0000 |
commit | 6e9d20a1417ad2f4548194d226f6b3f2b3c47036 (patch) | |
tree | a5631c4a535ecd270e165974ee443f9364e576d8 | |
parent | dcd0a5a659c303c50a59d1271947851245db10e7 (diff) |
contradicting multiple measurements ignored
-rwxr-xr-x | lib/ot_predictions.rb | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/ot_predictions.rb b/lib/ot_predictions.rb index eb80205..f812854 100755 --- a/lib/ot_predictions.rb +++ b/lib/ot_predictions.rb @@ -162,8 +162,12 @@ module Lib raise "no array "+v.class.to_s+" : '"+v.to_s+"'" unless v.is_a?(Array) if v.size>1 v.uniq! - raise "not yet implemented: multiple non-equal values "+compound.to_s+" "+v.inspect if v.size>1 - v = v[0] + if v.size>1 + v = nil + LOGGER.warn "not yet implemented: multiple non-equal values "+compound.to_s+" "+v.inspect + else + v = v[0] + end elsif v.size==1 v = v[0] else |