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

ARISTOTLE: improve format of losses table, plus other improvements #9863

Merged
merged 7 commits into from
Jul 29, 2024

Conversation

ptormene
Copy link
Member

@ptormene ptormene commented Jul 26, 2024

Losses table:

  • better text alignment
  • multi-line gsims
  • human-readable values

Other:

  • handle exceptions in case retrieving rupture data fails for any reason
  • if a rupture file is selected, disable dip and strike and get their values from the parsed rupture (we still need to check the management of dip and strike when the usgs shakemap is used, but it can be done in a separate PR)

image

image

@ptormene ptormene added this to the Engine 3.21.0 milestone Jul 26, 2024
@ptormene ptormene self-assigned this Jul 26, 2024
@@ -1740,7 +1740,7 @@ def view_aggrisk(token, dstore):
AVG = len(rlzs)
arr = numpy.zeros(AVG + 1, dt)
for r, rlz in enumerate(rlzs):
arr[r]['gsim'] = repr(repr(rlz.value[0]))
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@micheles I hope I did not break anything by replacing the double repr with a single one. If that's a problem, I can modify the string afterwards while presenting the data.

@ptormene ptormene merged commit 7a4f473 into master Jul 29, 2024
6 checks passed
@ptormene ptormene deleted the arist-losses branch July 29, 2024 09:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants