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
* work towards 0.7 support
* Use Val() syntax in tests
* Type stable constructors
* lastindex, range, and squeeze deprecations...
the squeeze deprecation will need some more work to be type-stable using a varargs kwarg
* Core tests pass!
* fixup
* Try using a tuple of AxisArrays as "axes"-ish objects from reduced_indices
* fixup
* Minor ntuple and axes/indices fixes
* update travis yml
* drop 0.6 support
* fix more deprecation warnings
* More qualifications of axes
* Replace _nextaxistype with _default_axis
* Make default_axes support different numbers of axes, move errors into AxisArray constructor. Simplify make_axes_match.
* Indexing fixes:
* More axes qualifiers
* Fixup an earlier findall replacement
* Simplify reaxis and explicitly implement linear indexing there
* fixup
* Indexing tests pass!
* Fix SortedVector tests (random seeding has changed)
* Same deal with categorical vectors
* find->findall, axes qualification
* Combine and join fixes
* Disable problematic inference failures
* final fixes for v"1.0"
* Try deploying with 1.0; add Unitful for the example
* Add a notice regarding the `axes` function to the README
* Test and fix String(::IOBuffer) deprecation
* Re-enable ambiguity tests on 1.0
* Re-enable disabled tests - just don't test at-inferred
Copy file name to clipboardExpand all lines: README.md
+27-2Lines changed: 27 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,6 +10,31 @@ In contrast to similar approaches in [Images.jl](https://github.com/timholy/Imag
10
10
11
11
Collaboration is welcome! This is still a work-in-progress. See [the roadmap](https://github.com/JuliaArrays/AxisArrays.jl/issues/7) for the project's current direction.
12
12
13
+
### Notice regarding `axes`
14
+
15
+
Since Julia version 0.7, the name `axes` is exported by default from `Base`
16
+
with a meaning (and behavior) that is distinct from how AxisArrays has been
17
+
using it. Since you cannot simultaneously be `using` the same name from the two
18
+
different modules, Julia will issue a warning, and it'll error if you try to
19
+
use `axes` without qualification:
20
+
21
+
```julia
22
+
julia>axes([])
23
+
WARNING: both AxisArrays and Base export"axes"; uses of it inmodule Main must be qualified
24
+
ERROR: UndefVarError: axes not defined
25
+
```
26
+
27
+
Packages that are upgrading to support 0.7+ and use AxisArrays should follow
28
+
this upgrade path:
29
+
30
+
* Replace all uses of the `axes` function with the fully-qualified `AxisArrays.axes`
31
+
* Replace all uses of the deprecated `indices` function with the un-qualified `axes`
32
+
* Immediately after `using AxisArrays`, add `const axes = Base.axes`
33
+
34
+
In the future, AxisArrays will be looking for a new name for its functionality.
35
+
This will allow you to use the idiomatic `Base` name and offers an easy upgrade
36
+
path to whatever the new name will be.
37
+
13
38
## Example of currently-implemented behavior:
14
39
15
40
```julia
@@ -97,7 +122,7 @@ And data, a 7-element Array{Float64,1}:
functionaxismerge(method::Symbol, axes::Axis{name,T}...) where {name,T}
29
32
@@ -122,7 +125,7 @@ Combines AxisArrays with matching axis names into a single AxisArray. Unlike `me
122
125
If an array value in the output array is not defined in any of the input arrays (i.e. in the case of a left, right, or outer join), it takes the value of the optional `fillvalue` keyword argument (default zero).
123
126
"""
124
127
function Base.join(As::AxisArray{T,N,D,Ax}...; fillvalue::T=zero(T),
0 commit comments