-
Notifications
You must be signed in to change notification settings - Fork 10
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
Code replication in module oracle.py #8
Comments
My original intent was to have the basic FactorOracle as the parent class. FO and MO inherited FactOracle. For VMO, it`s a variant of MO that is still under experiment. I agree that right now it is pretty difficult to update everything consistently, so please let me know your suggestions. |
I'm currently looking at it to see to which extent we can take advantage of the inheritance mechanism to simplify everything. Might not be super easy, but it'll save us some hassle in the future! |
For starters, I think the function With this done, -- if I'm not mistaken -- the processing can be done on an abstract level, regardless of the underlying data's type. |
What do you mean by modifying them to be uniform? Thanks! |
Have it become an explicit function within the base class Is it clear? |
The codes for classes
FactorOracle
,MO
andVMO
are all very close and share many identical lines, making it hard to uniformly update it.This could probably be fixed by refactoring the code.
The text was updated successfully, but these errors were encountered: