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

Add astUnitNormMap #1

Merged
merged 5 commits into from
Apr 28, 2016
Merged

Add astUnitNormMap #1

merged 5 commits into from
Apr 28, 2016

Conversation

timj
Copy link
Member

@timj timj commented Apr 26, 2016

Now that AST is standalone I've ported across @r-owen's patches from Starlink/starlink-pyast#13 to AST and added a Fortran wrapper.

I've also "fixed" spelling in a separate commit. If we are happy with "center" instead of "centre" then we can remove that commit.

r-owen and others added 4 commits April 26, 2016 16:07
Add new mapping UnitNormMap which takes a center
and maps a vector of the same dimensions
to a unit vector and norm relative to that center.
Thus the forward transform adds one dimension.
@r-owen
Copy link
Contributor

r-owen commented Apr 26, 2016

Thank you very much. I think centre is probably better for consistency; sorry I missed that earlier.

@dsberry
Copy link
Member

dsberry commented Apr 27, 2016

Consistency in the docs (and code) is good. The other issue is attribute names - not currently a problem for UnitNormMap, but it is possible to allow alternate spellings for attributes in AST. For instance the Plot class "Colour" attribute can also be specified as "Color". Maintaining this sort of bilingual facility is a good idea as attribute names are a run-time issue rather than just a documentation issue, and could potentially be supplied by users (as in Starlink graphics style files). But in general, life is easier if we try to stick to names with no transatlantic differences, maybe by using synonyms or abbreviations ("e.g."PcdCen" rather than "PcdCentre/er"). Although of course that's not always possible.

@dsberry dsberry merged commit 0bf598d into master Apr 28, 2016
@dsberry dsberry deleted the u/r-owen/unitnormmap branch April 28, 2016 12:07
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.

3 participants