Reaction.product now accepts a list of Species#704
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## fenicsx #704 +/- ##
===========================================
+ Coverage 99.05% 99.15% +0.09%
===========================================
Files 26 26
Lines 1168 1183 +15
===========================================
+ Hits 1157 1173 +16
+ Misses 11 10 -1 ☔ View full report in Codecov by Sentry. |
Reaction.product now accepts a list of Species
|
@jhdark this is now ready for review |
jhdark
left a comment
There was a problem hiding this comment.
This looks great to me, just some small suggestions but not necessary changes
There was a problem hiding this comment.
Does this need its own file or can it go into the test_reaction file?
There was a problem hiding this comment.
I'd rather keep it seperate for now to 1) avoid super long files 2) keep things seperated until we have a discussion on how to organise tests
There was a problem hiding this comment.
Would it be worth adding another test where we have A -> B + C?
There was a problem hiding this comment.
This kind of reaction is currently not implemented
Proposed changes
This PR fixes #702 by allowing users to give a list of
Speciesfor the product of aReaction.This gives us the ability to implement reactions of the type:
A + B <-> C + D
Need to merge #703 first since the tests use some of the functionality....
Types of changes
What types of changes does your code introduce to FESTIM?
Checklist