We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
intersect
UnitRange
MWE:
julia> import DimensionalData as DD; using DimensionalData julia> intersect(DD.Dimensions.DimUnitRange(1:5, X()), DD.Dimensions.DimUnitRange(3:7, X())) 3:5 julia> typeof(ans) UnitRange{Int64}
Ideally this should return a DimUnitRange. Maybe it could also check that dimensions match. Let me know if this makes sense, and I can PR it.
The text was updated successfully, but these errors were encountered:
Probably makes sense
Sorry, something went wrong.
Also, should dims2indices on an extent return a DimUnitRange?
dims2indices
That would mean selectors also returning DimUnitRange.
DimUnitRange
There's a compilation overhead to doing that.
What would be the benefit?
We will need to use promote_dim on the dimensions to get the right type back.
promote_dim
And also check that the lookup values match after the intersection.
No branches or pull requests
MWE:
Ideally this should return a DimUnitRange. Maybe it could also check that dimensions match. Let me know if this makes sense, and I can PR it.
The text was updated successfully, but these errors were encountered: