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
This works on newer versions of Julia, but not older versions. For example, that kind of syntax produces an error on the current LTS release of Julia, 1.6.7.
I think this code: ind = ind_l .|| ind_h
Could be replaced with this code to in order to work in more places: ind = collect(ind_l .| ind_h)
For a quick example, try running this test script with different Julia versions:
a=[true, false, true];
print("a = $a, typeof(a) = $(typeof(a))");
b = [true, false, false];
print("b = $b, typeof(b) = $(typeof(b))");
c = a .| b;
print("c = $c, typeof(c) = $(typeof(c))");
d = collect(a .| b);
print("d = $d, typeof(d) = $(typeof(d))");
e = a .|| b;
print("e = $e, typeof(e) = $(typeof(e))");
The text was updated successfully, but these errors were encountered:
Sorry, forgot this but I'm afraid there is nothing we can do here. GMT.jl does not build with Julia1.6 anymore since the introduction of the GMT_jll artifact because a chain of dependencies.
There's a bit of syntax that uses the
.
operator combined with the boolean||
operator here:https://github.com/GenericMappingTools/GMT.jl/blob/master/src/statplots.jl#L385
This works on newer versions of Julia, but not older versions. For example, that kind of syntax produces an error on the current LTS release of Julia, 1.6.7.
I think this code:
ind = ind_l .|| ind_h
Could be replaced with this code to in order to work in more places:
ind = collect(ind_l .| ind_h)
For a quick example, try running this test script with different Julia versions:
The text was updated successfully, but these errors were encountered: