-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Refactor: Maybe GW should inherit from FGW instead of vice versa #716
Comments
so you would then throw |
But this problem also exists in current code. I can currently run
because gwp[('0','1')] is a OTProblem, gwp itself doesn't have set_xy and others. If you are talking about other methods, I didn't notice any method that only FGWProblem itself implements except these
which are the same for both. So moving these to the parent class should work always. |
I was wondering if it would make more sense to inherit
GWProblem
fromFGWProblem
since FGW kind of includes GW in itself. This is a problem since when GW inherites prepare it removes the linear arguments: (xy_callback
etc.). And because of this we need to useCompoundProblem.prepare
instead ofsuper().prepare
which is not ideal if you ask me.moscot/src/moscot/problems/generic/_generic.py
Lines 581 to 592 in d54060a
The text was updated successfully, but these errors were encountered: