forked from OasisLMF/OasisLMF
-
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.
Introducing
gulmc
: full monte carlo loss engine (OasisLMF#1137)
* [mcgul] first implementation of full MC gul * [modelpy] montecarlo implementation in modelpy * stop tracking mcgul * [modelpy] fixes * simplify algorithm * remove unused imports * use numba, process last areaperil id, cleanup * [modelpy] add docstrings * [modelpy] function namechange * [modelpy] add TODOs not to forget * [gulpy] bugfix in calling read_getmodel_data * [gulpy] drafting monte carlo implementation * [mcgul] Add major modelpy and gulpy rewrite as one tool * [mcgul] do not sample haz if no haz uncertainty * [mcgul] cleanup * [mcgul] good working implementation * [mcgul] perfectly reproduces effective damageability * [mcgul] further simplification * [mcgul] wip * [mcgul] compute haz cdf in map_areaperil_ids_in_footprint * [gulmc] update cli * [getmodel] reverting full mc modifications * [gul] reverting mc modifications * [getmodel] reverting mc modifications * [getmodel] Reverting unused mc modifications * [gul] updating docstring * [getmode;] update docstring * [gulmc] dynamic buff_size * [gulmc] imports cleanup * [gulmc] cleanup * [gulmc] dynamic buff size * [gulmc] compute effective damageability * [gulmc] effective damageability with numba * [gulpy] minor bugfix * [gulmc] bugfix: use 4 as item size in int32_mv * [gulmc] minor cleanup * [gulmc] fix conflicts with stashed edits * [gulmc] cleanup * [gulmc] remove unused imports * [modelpy] remove one blank line * [gulmc] add effective_damageability optional arg * [gulmc] bugfix effective damageability * [gulmc] add tests * [gulmc] add tests for effective damageability * [gulmc] move gulpy tests to separate module * [tests] add test_model_1 to the tests assets * [tests] use typing.Tuple for type hints * [gulmc] better tests, tiv set to float64 * [gulmc] log info about effective_damageabilty * [gulmc] cleaning up, adding docs (WIP). * [gulmc] adding documentation and docstrings * [gulmc] bugfix * [gulmc] adding docs * [gulmc] add docs * [gulmc] rewrite complex outputs as tuples * [gulmc] add final docs * [gulmc] remove unused import * [gulmc] Improve --debug flag * [gulmc] raise ValueError if alloc_rule>0 when debug is 1 or 2 * [gulmc] cleanup * [flake8] fix error code in ignore config * [requirements] testing unpinning virtualenv * [requirements] testing unpinning virtualenv * [requirements] fixing package clash * [gulmc] test ValueError if alloc_rule is invalid * [gulmc] improve tests * [gulmc] remove unnecessary binary files * [requirements] removing unnecessary virtualenv * [CI] specify pip-compile resolver for py 3.7 * [CI] fix bug in CI * [CI] bugfix * [gulmc] update following review comments * [gulmc] implement fixes following review * [gulmc] bugfix in logging
- Loading branch information
Showing
133 changed files
with
5,818 additions
and
38 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
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,7 @@ | ||
""" | ||
This file defines quantities reused across the pytools stack. | ||
""" | ||
|
||
# streams | ||
PIPE_CAPACITY = 65536 # bytes |
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
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
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,5 @@ | ||
import logging | ||
from logging import NullHandler | ||
|
||
logger = logging.getLogger(__name__) | ||
logger.addHandler(NullHandler()) |
Oops, something went wrong.