-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Goodness-of-Fit Scoring, QOL, and Functional Updates (#22)
* Fix multiple curve plotting Remove mandatory creation of new fig and ax in Multiple_Curves.plot() to allow for superclass Curve's plot() function to handle plotting according to documentation * Revert "Fix multiple curve plotting" This reverts commit f5e4873. * Fix multiple curve plotting Remove mandatory creation of new fig and ax in Multiple_Curves.plot() to make functionality consistent with documentation * Modify rho calculation for edge surface layer case Prevent unphysical rho calculations due to low overburden pressure for a thin surface layer * Update filter kernel to use SOS representation As per scipy.signal.butter, "If the transfer function form [b, a] is requested, numerical problems can occur since the conversion between roots and the polynomial coefficients is a numerically sensitive operation" * Fix nonlinear simulation dummy curve curve issue Even though the dummy curves are not simulation significant, since the ggmax and damping parameters are calibrated separately, allows for the proper curves to be created by their corresponding calibrated parameters to avoid triggering a ValueError related to unrealistic damping curves created from the parameters calibrated for the ggmax curves * Batch nonlinear simulation modifications: catch ValueErrors and control verbosity settings Adds option to capture ValueErrors when running batch simulation, so a single failed simulation won't halt the entire batch process. In addition, adjusts the verbose settings to capture output if verbose is false, so multiple parallel processes won't all be printing the nonlinear simulation progress bar over each other. * Transition function edge case handling + minor stylistic edit Handles situations in which the optimizer searches very large or small values of the 'a' parameter, which may result in a RuntimeWarning due to the exponential in the expression * Create goodness-of-fit score files Class file and file to hold helper functions * Sync with laptop * Base functional gof version * Added gof score plotting and verbose options * Edits to make Python gof results match Matlabs within floating pt. error * Added batch score calculation * Fix score array datatype, remove batch verbose printing * Minor bug fix, imports and plotting * Gof working update * Added GoF example * Added forkserver context Added option to use the forkserver context for spawning subprocesses using the multiprocessing module. * Updated batch simulation example Added forkserver example usage * Delete examples/test-gof.ipynb * Documentation and tests update Updated documentation of new code to meet contribution requirements. Updated tests to reflect minor changes in code. Updated formatting to meet tox requirements. * Update example files Fixed filepath error, updated to match recent changes * Documentation update Added relevant files to docs/ * Added PyWavelets to setup * Update build-and-deploy-docs.yml
- Loading branch information
Showing
32 changed files
with
32,907 additions
and
123 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
# Author: Jian Shi | ||
|
||
__version__ = 'v0.5.4' | ||
__version__ = 'v0.6.0' |
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
Oops, something went wrong.