-
Notifications
You must be signed in to change notification settings - Fork 42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Towards 0.7 support #143
Merged
Merged
Towards 0.7 support #143
Changes from all commits
Commits
Show all changes
29 commits
Select commit
Hold shift + click to select a range
10cf55f
work towards 0.7 support
Evizero 216c0d9
Use Val() syntax in tests
mbauman 2376678
Type stable constructors
mbauman 2e0b174
lastindex, range, and squeeze deprecations...
mbauman c75b67e
Core tests pass!
mbauman 51da9a5
fixup
mbauman 6c7f562
Try using a tuple of AxisArrays as "axes"-ish objects from reduced_in…
mbauman 40fe310
fixup
mbauman 5f458db
Minor ntuple and axes/indices fixes
mbauman 71948c5
update travis yml
Evizero f3df570
drop 0.6 support
Evizero 548854d
fix more deprecation warnings
Evizero a4a0453
More qualifications of axes
mbauman 4f34739
Replace _nextaxistype with _default_axis
mbauman 14d28f8
Make default_axes support different numbers of axes, move errors into…
mbauman 42fe1a5
Indexing fixes:
mbauman 6723577
fixup
mbauman d735145
Indexing tests pass!
mbauman 65e82a7
Fix SortedVector tests (random seeding has changed)
mbauman cad080a
Same deal with categorical vectors
mbauman 34accd9
find->findall, axes qualification
mbauman cf3409f
Combine and join fixes
mbauman 4c83704
Disable problematic inference failures
mbauman 8b24170
final fixes for v"1.0"
mbauman ec8d2de
Try deploying with 1.0; add Unitful for the example
mbauman b9a1d1d
Add a notice regarding the `axes` function to the README
mbauman e7a9f46
Test and fix String(::IOBuffer) deprecation
mbauman 8afaac2
Re-enable ambiguity tests on 1.0
mbauman 343d9ee
Re-enable disabled tests - just don't test at-inferred
mbauman File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
julia 0.6 | ||
julia 0.7 | ||
IntervalSets 0.1 | ||
IterTools | ||
RangeArrays | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -43,17 +43,13 @@ struct CategoricalVector{T, A<:AbstractVector{T}} <: AbstractVector{T} | |
data::A | ||
end | ||
|
||
function CategoricalVector(data::AbstractVector{T}) where T | ||
CategoricalVector{T, typeof(data)}(data) | ||
end | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. the default constructor takes care of this. so this caused a redefinition warning. |
||
|
||
Base.getindex(v::CategoricalVector, idx::Int) = v.data[idx] | ||
Base.getindex(v::CategoricalVector, idx::AbstractVector) = CategoricalVector(v.data[idx]) | ||
|
||
Base.length(v::CategoricalVector) = length(v.data) | ||
Base.size(v::CategoricalVector) = size(v.data) | ||
Base.size(v::CategoricalVector, i) = size(v.data, i) | ||
Base.indices(v::CategoricalVector) = indices(v.data) | ||
Base.axes(v::CategoricalVector) = Base.axes(v.data) | ||
|
||
axistrait(::Type{CategoricalVector{T,A}}) where {T,A} = Categorical | ||
checkaxis(::CategoricalVector) = nothing | ||
|
@@ -65,7 +61,7 @@ checkaxis(::CategoricalVector) = nothing | |
axisindexes(ax::Axis{S,CategoricalVector{T,A}}, idx) where {T<:Tuple,S,A} = axisindexes(ax, (idx,)) | ||
|
||
function axisindexes(ax::Axis{S,CategoricalVector{T,A}}, idx::Tuple) where {T<:Tuple,S,A} | ||
collect(filter(ax_idx->_tuple_matches(ax.val[ax_idx], idx), indices(ax.val)...)) | ||
collect(filter(ax_idx->_tuple_matches(ax.val[ax_idx], idx), Base.axes(ax.val)...)) | ||
end | ||
|
||
function _tuple_matches(element::Tuple, idx::Tuple) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Evizero: If you do this, you also need to bump REQUIRE to 0.7. I recommend that since a lot of packages drop 0.6 support on master. (@mbauman for attention)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
right