-
Notifications
You must be signed in to change notification settings - Fork 213
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
Implement Projection classes to encapsulate arguments #379
Draft
sixy6e
wants to merge
31
commits into
GenericMappingTools:main
Choose a base branch
from
sixy6e:proj-classes
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from 1 commit
Commits
Show all changes
31 commits
Select commit
Hold shift + click to select a range
0c969bb
Initial commit for pygmt/projection.py; Contains a generic design/lay…
16819cc
Updated docstrings for class projection definitions.
979d057
Initial run of Black to reformat code.
c1161a3
Renamed lon0 to central_longitude and lat0 to central_latitude.
29e263d
Added the attribute to give meaning to the width argument (inches or…
129ae99
Updated example, and cleaned up docstring for unit description.
adef7ad
Removed center attribute from printed example.
97c836b
Specifying the projection code directly in the attrib creation, rathe…
a414f7e
Added the miscellaneous projections group; Mollweide, Sinusoidal, Eck…
c7ee1a2
Capitalised projection names where required, eg when named after the …
db7aca6
Added the Polyconic projection.
825cd66
Added the Miller and oblique 1, 2, 3 projections.
acaca7d
Added the Transverse Mercator and Universal Transverse Mercator Proje…
919102d
Added the equidistant cylindrical projection.
f5897a8
Fixed as per @leouieda suggestions.
7abe416
Missed one of the fixes as suggested by @leouieda
45abd59
Changed the default unit of inches to centimetres.
b9997c1
Removed superfluous comments regarding the private variables.
f92c7d1
Run Black formatting.
4161f9e
Update keyword args for the GeneralPerspective projection.
968b2cd
Initial unittests for the projection class configurations.
a77fd13
Added Polar and Linear projections. General cleanup.
d030593
Apply black formatting
cd38f61
Various reconfigs; some projs have updated, updated some that specifi…
4793155
Added a bunch more projections to the test suite.
0f24da2
Reworked the cylindrical projections to cater for the default and non…
a43d4c8
Added tests for the 3 oblique mercator projection options.
f39053a
Added tests for UTM, mercator, equidistant cylindrical. Minor additio…
f386b09
Applied black formatting.
8995715
Merge branch 'main' into proj-classes
20693e7
Caught test fails and updated.
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
Changed the default unit of inches to centimetres.
- Loading branch information
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
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.
No need to repeat the same comment everywhere. In fact,
_
is commonly used in Python to indicate "private" so there is no need for this comment at all. In general, our rule is that it's better to have code that doesn't need comments.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.
Fair comment. I'll remove them.