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

updates up to v3.2 #34

Merged
merged 425 commits into from
Feb 27, 2024
Merged

updates up to v3.2 #34

merged 425 commits into from
Feb 27, 2024

Conversation

zsarnoczay
Copy link
Collaborator

No description provided.

ioannis-vm and others added 30 commits August 8, 2023 14:18
…tainty (0.4) rather than total uncertainty (0.65)
…mponent vulnerability databases used with a default DB

also allow "None" as a damage process to have a simple analysis without any interdependencies between damages
…nly those where damage occurred in at least one realization

control this through the options; the default is set to request only the realized damage states
…erence quantities other than 1 ea and constant median consequences (rather than multilinear functions)

median consequences for the above model types are properly scaled after this fix
Code linting and quality improvements
Fix but I introduced in an earlier commit:
  need to set the column names, so `=` rather than `==`
Ignore temporary flycheck files.
For what these are, see https://www.flycheck.org/
Adds the ability to scale the median capacity of specified performance
groups. Permitted operations include addition, subtraction,
multiplication, and division. Use of `eval` was avoided due to
security concerns. The median is directly modified at the stage of the
capacity RV definition, before sampling, to minimize codebase
expansion. Capacity scaling can only be applied to the
median (`theta_0`) of `normal` and `lognormal` RVs.  Includes a test
which may need to be expanded to maximize coverage, particularly for
possible exceptions.
I took the liberty to remove this now.
-JVM
This commit addresses issues identified with the unit tests and
increases the testing coverage.
Removes lines accidentally commited earlier
This commit includes changes made in an attempt to simplify the code
in `load_data`. Currently the tests pass but some example use cases
fail. Also this implementation appears to be slower than the previous
code in certain cases. I am investigating the issues and will resolve
them in subsequent commits.
Developers who clone the repo are expected to install the package in
development mode using `pip`, as follows:
```
python -m pip install -e .
```

The requirements are already specified in `setup.py`, and it's those
requirements that `pip` uses when installing the package. Therefore,
there is no need to include them again in the form of a
`requirements.txt` file.

`requirements_dev.txt` are maintained since they include optional
packages used for development purposes and are not needed for the
users. Those should be installed after installing `pelicun`, as
follows:
```
python -m pip install -r requirements_dev.txt
```
This file is no longer used. Coverage reports are managed through the
GitHub workflow (`.github/workflows/tests.yml`).
This commit includes a reqritten version of `load_data`.  Similar to
the prior version, it avoids transposing the dataframe, as this can be
a slow operation when changes are made to it.
The commit includes a new approach to inferring the data types of the
dataframe's contents. When `Units` are present, this typically forces
columns to have an `object` type. When removed, the data types of the
columns need to be reassigned. This is done with a new function in
`base`, `convert_dtypes`, and unit tests are added.
Unit conversions are handled by indiscriminately applying conversion
factors to all numeric data. Now it is handled in a vectorized
function, eliminating looping over units.
For cases where unit conversions are not required, the method
separates the unit row/column but does not apply conversion
factors. Instead of an empty list, now no conversion is specified by
`unit_conversion_factors` being None, which is more intuitive, and is
reflected in the updated docstring.
other changes include mistaken variable rename:
`adjusted_capacity_RV_reg`
Corrects an erroneous variable rename.
- Removes requirements.
- Adds installation instructions for users and developers
Recommend opening issue.
Switch to branch.
Remove unnecessary line
@codecov-commenter
Copy link

Welcome to Codecov 🎉

Once merged to your default branch, Codecov will compare your coverage reports and display the results in this comment.

Thanks for integrating Codecov - We've got you covered ☂️

@zsarnoczay zsarnoczay merged commit 92d2fac into NHERI-SimCenter:master Feb 27, 2024
9 checks passed
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.

5 participants