-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* API improvements (#41) 0.8.0-alpha pre-release - new LatLon type definition for a (latitude, longitude) named tuple - nzshm_common.constants.DEFAULT_RESOLUTION (0.001 degree) - sorting for CodedLocation objects (N->S then W->E) - get_location_grid and get_location_grid_names functions for grids - get_location_list and get_location_list_names functions for location lists - CodedLocation (and new LatLon) can be imported directly from nzshm_common - several function signatures now use LatLon instead of Tuple[float, float] - a variety of documentation strings and typo fixups - included grids.region_grid in docs config - improving test coverage - does_not_raise test context manager moved into tests/helpers.py - housekeeping on some imports * Add binning of CodedLocation objects into a CodedLocationBin at coarser resolution. * Added 0.8.0-alpha.1 Changelog * Refactored get_location_grid to use native RegionGrid resolution. (#48) * update changelog; remove empty usage docs form mkdocs index. * Bump version: 0.7.0 → 0.8.0 --------- Co-authored-by: David Thompson <DrCuriosity@users.noreply.github.com> Co-authored-by: David Thompson <david.thompson@catalyst.net.nz>
- Loading branch information
1 parent
1ca3e9b
commit 8a81790
Showing
33 changed files
with
1,313 additions
and
100 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
[bumpversion] | ||
current_version = 0.7.0 | ||
current_version = 0.8.0 | ||
commit = True | ||
tag = True | ||
|
||
|
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
::: nzshm_common.constants |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
::: nzshm_common.grids.region_grid | ||
options: | ||
filters: ["!^_"] |
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
::: nzshm_common.location.coded_location | ||
options: | ||
filters: ["!^_"] | ||
docstring_options: | ||
ignore_init_summary: false | ||
merge_init_into_class: true |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
::: nzshm_common.location.types | ||
options: | ||
filters: ["!^_"] |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,9 @@ | ||
__author__ = "GNS Science" | ||
__email__ = 'nshm@gns.cri.nz' | ||
__version__ = '0.7.0' | ||
__version__ = '0.8.0' | ||
|
||
from .location import location | ||
|
||
# Common classes at the top level for convenience | ||
from .location.coded_location import CodedLocation, CodedLocationBin | ||
from .location.types import LatLon |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
""" | ||
Standard values that are useful in multiple places. | ||
""" | ||
|
||
DEFAULT_RESOLUTION = 0.001 | ||
""" | ||
Default coordinate resolution in degrees. | ||
This is typically used for | ||
[`CodedLocation`](location/coded_location.md#nzshm_common.location.coded_location.CodedLocation) values. | ||
""" |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
from .region_grid import RegionGrid, load_grid | ||
from .region_grid import RegionGrid, get_location_grid, get_location_grid_names, load_grid |
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
from .code_location import CodedLocation | ||
from .coded_location import CodedLocation, CodedLocationBin |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.