kalekundert / stepwise

Modular, command-line scientific protocols
GNU General Public License v3.0
3 stars 0 forks source link

Allow adding objects with a 'protocol' attribute to protocols. #37

Closed kalekundert closed 2 years ago

kalekundert commented 3 years ago

This could be a convenient idiom:

@autoprop
class Pcr:
    def get_protocol(self):
        p = stepwise.Protocol()
        ...
        return p

p = stepwise.Protocol()
p += Pcr()
p.print()
kalekundert commented 2 years ago

Fixed by 953536d.