Skip to content

Make the button "Download job.zip" available for all calculations - #11684

Open
ptormene wants to merge 5 commits into
masterfrom
down_job
Open

Make the button "Download job.zip" available for all calculations#11684
ptormene wants to merge 5 commits into
masterfrom
down_job

Conversation

@ptormene

@ptormene ptormene commented Aug 4, 2026

Copy link
Copy Markdown
Member

@ptormene ptormene added this to the Engine 3.27.0 milestone Aug 4, 2026
@ptormene
ptormene requested a review from micheles August 4, 2026 12:59
@ptormene ptormene self-assigned this Aug 4, 2026
@ptormene ptormene changed the title Down job Make the button "Download job.zip" available for all calculations Aug 5, 2026
('exposure', 'zip'), dstore)
inputs['exposure'] = exposure_xml
except KeyError:
pass

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This is terrible. How is it possible for an exposure to be present but not exportable?

if os.path.exists(fname):
dfs.append(pandas.read_csv(fname))
else:
logging.warning(

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

No, missing consequences is the normal situation, it should not log a warning

out.write(csv)
inputs['rupture_model'] = dest
except Exception:
pass

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Errors should never pass silently
And we need a comment explain when and why this happens

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.

Make sure the button "Download job.zip" works for all calculations

2 participants