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

Add feature to shift fragility by a certain given percentage #554

Open
pramodit13 opened this issue May 6, 2024 · 0 comments
Open

Add feature to shift fragility by a certain given percentage #554

pramodit13 opened this issue May 6, 2024 · 0 comments

Comments

@pramodit13
Copy link

Add a function shift_fragility(fragilityCurveSet, percent), which

  • takes the json file for mapping,
  • extracts the fragility sets,
  • extracts parameters, "expression" from the fragility and,
  • shifts the fragility with the above function by the given percentage
  • replaces the expressions with the new updated expression and substitute it back to the modified_fragilityCurveSet with copy.deepcopy(fragilityCurveSet) and saves the new jsons to the local disk or upload to get id.
  • create newMappingSet from the new fragility sets by copying back to the original mapping json
  • store locally or create id (provide options)
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

No branches or pull requests

1 participant