You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using the pyinterval package to represent unions of open intervals. Thus I would like to have an easy way to get rid of components whose inf and sup are identical. Is there a more elegant way to do it than the following?
b = interval()
for i in a:
if i.sup > i.inf:
b |= i
a = b
The text was updated successfully, but these errors were encountered:
I'm using the
pyinterval
package to represent unions of open intervals. Thus I would like to have an easy way to get rid of components whoseinf
andsup
are identical. Is there a more elegant way to do it than the following?The text was updated successfully, but these errors were encountered: