summaryrefslogtreecommitdiff
path: root/lib/parser.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/parser.rb')
-rw-r--r--lib/parser.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/parser.rb b/lib/parser.rb
index 2c64f3b..2e1dc5d 100644
--- a/lib/parser.rb
+++ b/lib/parser.rb
@@ -502,9 +502,9 @@ module OpenTox
if val != nil
@dataset.add(compound.uri, feature, val)
- if type != OT.NumericFeature
+ if @feature_types[feature].include? OT.NominalFeature
@dataset.features[feature][OT.acceptValue] = [] unless @dataset.features[feature][OT.acceptValue]
- @dataset.features[feature][OT.acceptValue] << val.to_s unless @dataset.features[feature][OT.acceptValue].include?(val.to_s)
+ @dataset.features[feature][OT.acceptValue] << val unless @dataset.features[feature][OT.acceptValue].include?(val)
end
end