-
Notifications
You must be signed in to change notification settings - Fork 33
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
Improve union method for a list of MOC #21
Comments
I tried to add a new method to the class AbstractMoc named union_moc_list for fast union of a list of moc
|
@ggreco77 What do you think of redefining the current AbstractMOC.union method like that: You can call the method like that: |
Or even like that |
That would be my preferred API, |
Let me show you an real application of such new method many thanks |
I got some troubles with the union method implemented as
How can obtain such statement using thanks! |
Union/difference/intersection are not static (hmm just thinking it may be a good idea to do static functions taking multiple mocs through *args). But for now if you have one |
Very clear, the method perfectly works in my scripts. |
It could be nice to improve the union method for a list of MOC - MOC.union(list).
The text was updated successfully, but these errors were encountered: