Skip to content

Commit b6cacdb

Browse files
authored
Update for isrealdomain and \ deprecation (#684)
1 parent f836312 commit b6cacdb

4 files changed

Lines changed: 6 additions & 3 deletions

File tree

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name = "ApproxFunBase"
22
uuid = "fbd15aa5-315a-5a7d-a8a4-24992e37be05"
3-
version = "0.9.34"
3+
version = "0.9.35"
44

55
[deps]
66
AbstractFFTs = "621f4979-c628-5d54-868e-fcf4e3e8185c"

src/ApproxFunBase.jl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@ import Statistics: mean
2424
@static if !isdefined(DomainSets, :cartesianproduct)
2525
const cartesianproduct = ×
2626
end
27+
@static if !isdefined(DomainSets, :isrealdomain)
28+
const isrealdomain = isreal
29+
end
2730

2831
import DomainSets: Domain, indomain, UnionDomain, ProductDomain, Point, ∂,
2932
SetdiffDomain, Interval, ChebyshevInterval, boundary,

src/Domains/Domains.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ function _affine_setdiff(d::Domain, pts)
7070
filter!(p->p d,pts)
7171

7272
isempty(pts) && return d
73-
length(pts) == 1 && return d \ pts[1]
73+
length(pts) == 1 && return d \ DomainRef(pts[1])
7474

7575
ret = Array{Domain}(undef, length(pts)+1)
7676
ret[1] = Domain(leftendpoint(d) .. pts[1])

src/Operators/banded/CalculusOperator.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ function linesum(f::Fun)
163163
cd=canonicaldomain(f)
164164
d=domain(f)
165165

166-
if isreal(d)
166+
if isrealdomain(d)
167167
a,b=leftendpoint(d),rightendpoint(d)
168168
sign(last(b)-first(a))*sum(f)
169169
elseif typeof(cd)==typeof(d) || isperiodic(d)

0 commit comments

Comments
 (0)