diff options
author | Christoph Helma <helma@in-silico.ch> | 2016-04-26 17:38:15 +0200 |
---|---|---|
committer | Christoph Helma <helma@in-silico.ch> | 2016-04-26 17:38:15 +0200 |
commit | cfc64a2966ab38698e499f0b44f41208ee77a07f (patch) | |
tree | 408d4518e808a3e52a96e9e68cfe0723404dbf8b /lib/nanoparticle.rb | |
parent | 6890687df6de0a6eaa3d35c6be66639614ea2ef2 (diff) |
first nanomaterial prediction
Diffstat (limited to 'lib/nanoparticle.rb')
-rw-r--r-- | lib/nanoparticle.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/nanoparticle.rb b/lib/nanoparticle.rb index b934bb3..b5de5b9 100644 --- a/lib/nanoparticle.rb +++ b/lib/nanoparticle.rb @@ -16,9 +16,11 @@ module OpenTox when "P-CHEM" physchem_descriptors[feature.id.to_s] ||= [] physchem_descriptors[feature.id.to_s] << value + physchem_descriptors[feature.id.to_s].uniq! when "TOX" toxicities[feature.id.to_s] ||= [] toxicities[feature.id.to_s] << value + toxicities[feature.id.to_s].uniq! else warn "Unknown feature type '#{feature.category}'. Value '#{value}' not inserted." end |