-
Notifications
You must be signed in to change notification settings - Fork 124
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
Feature/order samples unsequa #766
Feature/order samples unsequa #766
Conversation
Note: tests for petals fail due to the landslide module. This is unrelated to this PR.... |
@chahank Where in the notebook are the added examples? The table of contents is the same between the two versions. |
It is all the "advanced examples" at the bottom. I do not know why the sections do not show up in the t.o.c., I will have to fix this. Thank! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Without having used the unsequa module I think the the point comes across how one can (1) share an input parameter among multiple input variables and (2) using a global variable to avoid reloading files.
But a second reviewers opinion, who has used the unsequa module, is needed as I didn't follow the details in the code.
Regarding layout, if there is an option the not print the details (e.g. Cost Benefit table) for each variable combination it would improve the readability of the tutorial.
Lastly, would pulling the latest changes from the target branch feature/unsequa_multiprocessing
fix the failing tests as they seem to pass in PR #763 ?
climada/engine/unsequa/unc_output.py
Outdated
@@ -112,6 +112,22 @@ def __init__(self, samples_df, unit=None): | |||
self.samples_df = samples_df | |||
self.unit = unit | |||
|
|||
def order_samples(self, by): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The docstring has the argument name 'by_unc_params' instead of 'by'.
Thanks! For the printing from cost benefit, this is unfortunately backed in the module at the moment. But since this will be rewritten in the coming year, we should be able to solve this. For the tutorial I can simply remove it. And the failing test is puzzling, as it is completely unrelated. I will see to fix it. |
* Update pandas iteritems to items * Change pd append to concat * Fix minimal chunksize at 1 * Remove not needed parallel pool chunksize argument * Remove global matplotlib styles * Remove deprecated tot_value from unsequa * Add chunked version of parallel computing * Remove deprecated numpy vstack of objects * Feature/order samples unsequa (#766) * Allow to set loglevel * Add method to sort samples * Add advanced examples for unsequa * Remove logging control * Remove unecessary output prints * Update CHANGELOG.md --------- Co-authored-by: Chahan Kropf <chahan.kropf@posteo.com> Co-authored-by: emanuel-schmid <schmide@ethz.ch> Co-authored-by: Lukas Riedel <34276446+peanutfun@users.noreply.github.com>
Changes proposed in this PR:
Note: this pull requests uses the loglevel from #765 . All changes not in the tutorial file are due to the other pull requests. Please merge #765 first.PR Author Checklist
develop
)PR Reviewer Checklist