matthiaskoenig / pkdb

Pharmacokinetics database
https://alpha.pk-db.com
30 stars 7 forks source link

intervention.substance should be an InfoNode #540

Closed matthiaskoenig closed 4 years ago

matthiaskoenig commented 4 years ago

I noticed that the intervention.substance is still a string whereas timeourse.substance are already InfoNodes. This should be handled consistently.

I noticed this doing checkes in pk_calculation of the form

        if tc.substance.info_node.name != dosing.substance:
            # the dosing substance must correspond to the timecouse substance
            return outputs