We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0056bc3 commit cba26c1Copy full SHA for cba26c1
src/domains.jl
@@ -1,4 +1,15 @@
1
-import DomainSets: Interval, Ball
+import DomainSets: Interval, Ball, infimum, supremum
2
3
@deprecate IntervalDomain(a,b) Interval(a,b)
4
-@deprecate CircleDomain() Ball()
+@deprecate CircleDomain() Ball()
5
+
6
+# type piracy on Interval for downstream compatibility to be reverted once upgrade is complete
7
+function Base.getproperty(domain::Interval, sym::Symbol)
8
+ if sym === :lower
9
+ return infimum(domain) # or domain.left also defined by IntervalSets.jl
10
+ elseif sym === :upper
11
+ return supremum(domain) # or domain.right
12
+ else
13
+ return getfield(domain, sym)
14
+ end
15
+end
0 commit comments