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

azs - lots of updates until version 2.0 #9

Merged
merged 52 commits into from
Oct 15, 2019

Conversation

zsarnoczay
Copy link
Collaborator

No description provided.

- dropped support for Python 2.x
- made changes to be compatible with the latest numpy, scipy, and pandas version
notable changes:
- store the type of distribution for fragility functions / used to assume lognormal
- only read population data and sample population if injuries are requested / used to do it every time
- a hazard attribute identifies the type of analysis for HAZUS assessments
- speed is added to the units to handle wind speed units
adjusted acceptance limits to pay more attention to important results and remove a few false alarms
Used to be a gradient-descent based algorithm; now it starts with global optimization using differential evolution and only relies on gradient descent for the final polishing.
Also added a pre and post-processing step that standardizes the samples (and detection and truncation limits).
These two improvements lead to much better estimates at the cost of longer calculation time. Fitting shall not take more than a few minutes.
This was already implemented for HAZUS and now it was extended to P58
- made the json formatting human-readable
- replaced KV, AP, CF, and TN with ea in QuantityUnit
@coveralls
Copy link

coveralls commented Oct 15, 2019

Pull Request Test Coverage Report for Build 78

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • 489 unchanged lines in 4 files lost coverage.
  • Overall coverage decreased (-5.6%) to 76.771%

Files with Coverage Reduction New Missed Lines %
home/travis/build/NHERI-SimCenter/pelicun/pelicun/base.py 11 86.9%
home/travis/build/NHERI-SimCenter/pelicun/pelicun/uq.py 65 88.06%
home/travis/build/NHERI-SimCenter/pelicun/pelicun/file_io.py 165 78.6%
home/travis/build/NHERI-SimCenter/pelicun/pelicun/control.py 248 70.41%
Totals Coverage Status
Change from base Build 77: -5.6%
Covered Lines: 2168
Relevant Lines: 2824

💛 - Coveralls

@zsarnoczay zsarnoczay merged commit 88665f6 into NHERI-SimCenter:master Oct 15, 2019
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.

None yet

2 participants