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

Docs #4

Closed
wants to merge 249 commits into from
Closed

Docs #4

wants to merge 249 commits into from

Conversation

ioannis-vm
Copy link
Owner

This is a test!

zsarnoczay and others added 30 commits May 22, 2022 14:02
azs - minor update to avoid saving logs by default
Add `dmg_process`, `block_batch_size`, and `scaling_specification`
descriptions.
Introduces `ComponentLevelAssessment`, `SubAssemblyLevelAssessment`,
and `PortfolioLevelAssessment` classes.
Adds `calculate_damage`, `calculate_loss`, and `aggregate_loss`
methods.
Will be modified in future commits.
We initialize `out_files` as [] and then check if the existing files
are in this empty list. They would never be members of the empty list,
so the deletion code is uncreachable.
This commit simply removes it. The expectation now is that existing
files would be overwritten if the output filename already exists for
some output, or left alone otherwise.
Rename `PAL` to `assessment`
Run pelicun no longer returns an int.
The idea behind this is to ensure the config is valid and contains
whatever it should (this is the goal with this method), but its
contents shouldn't be read into variables. Once the config is
validated/modified/extended, the rest of the code can use it directly
to get the needed information. Data retrieval from dictionaries is
really fast and there is practically no penalty in doing it multiple
times, so there is no need to extract data into variables.
To avoid the double-negative `if not is_unspecified(...)`
Use `config` directly.
It's just an empty list. No need for it to be instantiated in there.
`custom_dl_file_path = custom_model_dir`. No other change is made to
it. Therefore we can just use `custom_model_dir` directly when needed.
Simplify functions by getting the demand sample directly from the
demand model when needed instead of having it appear in function
arguments and returned variables.
Adds `color_codes` argument in `log_msg`. If specified, it expects a
tuple with `cpref`, `csuff`, the color codes obtained via `colorama`
for RED. There is definitely room for improvement here, but this is a
bit better than what we had before.
Moves config updating operations outside of `_loss` and into
`_parse_config_file` where they belong.
jinyan1214 and others added 29 commits November 22, 2024 18:16
- The lines in the docstring for _handle_operation_list were too long
- The keys of the parsed_scaling_specification dict do not need to be initialized
- Streamline part of the new test for capacity scaling
- Initialize the list in the nested dict when the scaling specs are parsed.
- move updates from unreleased to v3.4 in release notes
- update version number in init
Remove redundant material which is now available in the documentation.
- Eliminate redundant line breaks in notebook output.
- Convert validation tests into examples, which can be refined later.
They result in warnings when the documentation is built.
@ioannis-vm ioannis-vm closed this Dec 5, 2024
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.

3 participants