Skip to content

Commit

Permalink
Merge pull request #290 from ngiger/master
Browse files Browse the repository at this point in the history
#287: Workaround for import_bsv
  • Loading branch information
zdavatz authored Dec 3, 2024
2 parents eff979c + 1a41f83 commit c64e15c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/plugin/bsv_xml.rb
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ def identify_sequence registration, name, substances
seqs = registration.sequences.values
sequence = seqs.find do |seq|
subs.size == seq.active_agents.size && subs.all? do |sub, dose|
seq.active_agents.any? do |act| act.same_as?(sub) && act.dose == dose end
seq.active_agents.any? do |act| act.respond_to?(:same_as?) && act.same_as?(sub) && act.dose == dose end
end
end
sequence ||= seqs.find do |seq| seq.active_agents.empty? end
Expand Down

0 comments on commit c64e15c

Please sign in to comment.