Skip to content
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

various fixes for 0.6 #12

Merged
merged 4 commits into from
Apr 6, 2017
Merged

various fixes for 0.6 #12

merged 4 commits into from
Apr 6, 2017

Conversation

tlnagy
Copy link
Member

@tlnagy tlnagy commented Apr 6, 2017

@@ -26,11 +26,11 @@ BoundingBox(width, height, depth) = BoundingBox(0mm, 0mm, 0mm, width, height, de

isabsolute{P1, P2}(b::BoundingBox{P1, P2}) = isabsolute(b.x0) && isabsolute(b.a)

typealias AbsoluteBox{N} BoundingBox{NTuple{N, Length{:mm, Float64}},
const AbsoluteBox{N} = BoundingBox{NTuple{N, Length{:mm, Float64}},
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This needs a @compat to work on 0.5 right?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, working on it rn

src/point.jl Outdated
typealias Vec{N} NTuple{N, Measure}
typealias Vec2 Vec{2}
typealias Vec3 Vec{3}
const Vec{N} = NTuple{N, Measure}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same here

src/point.jl Outdated
typealias AbsoluteVec{N} NTuple{N, Length{:mm, Float64}}
typealias AbsoluteVec2 AbsoluteVec{2}
typealias AbsoluteVec3 AbsoluteVec{3}
const AbsoluteVec{N} = NTuple{N, Length{:mm, Float64}}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And here

src/point.jl Outdated
typealias Vec{N} NTuple{N, Measure}
typealias Vec2 Vec{2}
typealias Vec3 Vec{3}
const Vec{N} = NTuple{N, Measure}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i think an @compat is needed when both sides are parameterized

@codecov-io
Copy link

codecov-io commented Apr 6, 2017

Codecov Report

Merging #12 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@          Coverage Diff           @@
##           master     #12   +/-   ##
======================================
  Coverage    33.8%   33.8%           
======================================
  Files           6       6           
  Lines          71      71           
======================================
  Hits           24      24           
  Misses         47      47
Impacted Files Coverage Δ
src/operations.jl 57.14% <ø> (ø) ⬆️
src/point.jl 0% <ø> (ø) ⬆️
src/boundingbox.jl 33.33% <ø> (ø) ⬆️
src/Measures.jl 0% <ø> (ø) ⬆️
src/length.jl 70.58% <ø> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update e147ef9...f7f3550. Read the comment docs.

@tlnagy
Copy link
Member Author

tlnagy commented Apr 6, 2017

Thank you all for the quick feedback, it looks like everything is passing on both 0.5 and 0.6. I'll wait for the mac os builds to pass before merging.

NTuple{N, Length{:mm, Float64}}}
typealias Absolute2DBox BoundingBox{Tuple{AbsoluteLength, AbsoluteLength},
@compat const Absolute2DBox = BoundingBox{Tuple{AbsoluteLength, AbsoluteLength},
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

might not be important, but i don't think @compat is needed here since the left hand side is not parameterized

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let me try without it, I guess we should limit the number of calls to @compat to be safe

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if it works without, then there are a few other places it can be removed as well

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, it seems to be working. I'll remove it for all nonparamterized typealiasing calls

@tlnagy
Copy link
Member Author

tlnagy commented Apr 6, 2017

All green, LGTM

@tlnagy tlnagy merged commit 8abb515 into JuliaGraphics:master Apr 6, 2017
@tlnagy tlnagy deleted the 0.6-fixes branch April 6, 2017 22:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants