bump version to verify new pypi workflow
- nzshm-model to 0.10.6
- fixes for above
- removed twine from tox config
- nzshm-common now ^0.8.1
- use python3.9 compatible typing syntax (
Union
vs|
)
SetOperationEnum
for set joining operationsInversionSolutionOperations.get_rupture_ids_for_fault_names
InversionSolutionOperations.get_rupture_ids_for_location_radius
- Updated dependencies:
- nzhsm-common to ^0.7
- nzshm-model to ^0.6 (will need further refactoring for higher versions)
circle_polygon
radius typed for float, so it can work work floats or ints
get_ruptures_intersecting
renamed toget_rupture_ids_intersecting
get_ruptures_for_parent_fault
renamed toget_rupture_ids_for_parent_fault
- Support for Python 3.10, 3.11
- MkDocs 1.6 and documentation configuration
- Docstrings, examples and type hinting for a variety of functions
- CONTRIBUTING.md
- Documentation stubs for installation, testing, usage, scripts.
solvis.geometry.resolve_azimuth
function forrefine_dip_direction
edge cases
- Support for Python 3.8, soon to be EOL
- mfd_hist function updated for pandas v2 compatibility
- remove unnecessary poetry groups from pyproject.toml
- fix missing indices error
- *.to_archive() base_archive_path can None if we already have a valid self._archive
- internal changes to _archive representation (now BytesIO)
- remove unneeded opensha artefacts from FaultSystemSolution
- FaultSystemSolution.to_archive() adds a solution/rates.csv file, with Annual rates from rate_weighted_mean aggregate.
- change class property names to clarify if rates are rupture rates or slip rates
- remove units from DataFrame column names
- solution slip rate property and method (fault_sections_with_solution_slip_rates, get_solution_slip_rates_for_parent_fault)
- patch version bump for GHA changes
- new solivs method parent_fault_names
- utility script for MFD calculaton checks
- fault_system_solution now uses fast_indices.csv instead of indices.csv
- remove dtype arg to from_csv to improve load performance
- updated nzshm_model
- added perf test to CLI
- FaultSystemSolution.filter_solution method
- removed solvis helps new_sol and filter_solution, these must be used as the respective class methods
- CompositeSolution with aggregate rates;
- to_archive() with compatible mode
- solution.filter_solution is preferred; .new_sol is deprecated;
- InversionSolution is now composed from three modules.
- typing improvements
- geometric surface projections from fault sections
- 3D distance calculation for both crustal and subduction subduction faults systems
- new_solution helper function in InversionSolution class (used by solvis.new_sol)
- add some performance tests using
pytest.mark.performance
- helper functions for dip-direction, bearing etc in geometry package
pytest.mark.slow
for some potentially slow tests- surfaces now use LineString (not Polygon) for Faults with dip-deg=90. eg Fowlers
- module package refactoring
- refactored project structure for packaging
- changelog format for bump2version
- poetry with: pytest, coverage, tox, flake8, mypy, black, isort, bump2version
- improvements to mfd_hist