-
Notifications
You must be signed in to change notification settings - Fork 132
Numpy+images #141
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
Closed
Closed
Numpy+images #141
Changes from all commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
c31e417
find_threshold_f() now takes parameters regarding the necessary preci…
tcld d6f7764
Added a custom equality check and made other small changes.
tcld 4716947
Double-checked the switch from Python array to numpy array for the ir…
tcld 671b01d
Replaced ocean-, elevation-, precipitation- and water-map with numpy …
tcld aa5c63e
Replaced humidity, permeability-, temperature-, sea_depth-, lake- and…
tcld 0d62c77
Small changes to astar.py.
tcld e66b38e
Tiny changes.
tcld 452db57
Removed calls to numpy.transpose() where it didn't give any benefit i…
tcld de4ac88
Replaced the biome-map with a numpy-array and fixed two small errors …
tcld 1f14c41
Applied psi29s suggestions.
tcld ebb2435
While at it I replaced calls to is_land() and is_ocean() which were r…
tcld 3ae6ea2
Replaced two calls to array_to_matrix() with numpy-methods.
tcld e219b53
Tried to polish all image-exporting functins.
tcld 7541e7d
Small fixes.
tcld 6e633ea
More numpy-replacements and some very small typo-corrections.
tcld 86e62f2
Made raw export the default for GDAL.
tcld ef1018e
Small optimization.
tcld 396fe8e
Added PyPNG to the list of requirements.
tcld 74eaf97
Commented two unused variables.
tcld 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 hidden or 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 |
|---|---|---|
|
|
@@ -4,4 +4,5 @@ numpy==1.9.2 | |
| Pillow==2.8.2 | ||
| PyPlatec==1.4.0 | ||
| protobuf==3.0.0a3 | ||
| six==1.10.0 | ||
| pypng==0.0.18 | ||
| six==1.10.0 | ||
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 |
|---|---|---|
|
|
@@ -11,6 +11,7 @@ deps = | |
| nose | ||
| protobuf | ||
| six | ||
| pypng | ||
|
|
||
| [testenv] | ||
| deps = | ||
|
|
||
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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.
The
_equalcode doesn't seem to be used by the WE library. Can this be moved__init__.pyin tests?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.
It is also used as World.operator== - I am not sure if there are any world-comparisons in the code outside of the tests. But I guess it is worth a try and the code can be moved, yes.
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.
On second thought the removal would leave the world-class without a functioning equality-operator. At the same time it is not only usable for that class... I wouldn't feel good about moving this to the tests, I prefer it here. (I found quite a lot of functions spread over various files that are never called or even referenced... maybe it is time for a bit of cleanup, though.)