Skip to content

Feat: improve frontend#195

Merged
philipp-seitz merged 18 commits into
mainfrom
feat/improve-nested
Sep 17, 2025
Merged

Feat: improve frontend#195
philipp-seitz merged 18 commits into
mainfrom
feat/improve-nested

Conversation

@philipp-seitz
Copy link
Copy Markdown
Collaborator

@philipp-seitz philipp-seitz commented Sep 12, 2025

This contains various quality of life improvements and bugfixes:

@philipp-seitz
Copy link
Copy Markdown
Collaborator Author

I added a first draft for the times I'm not entirely happy
Screenshot 2025-09-12 at 17 01 57

@philipp-seitz philipp-seitz requested a review from mwpb September 12, 2025 16:13
@philipp-seitz philipp-seitz marked this pull request as ready for review September 12, 2025 16:13
Copy link
Copy Markdown
Collaborator

@mwpb mwpb left a comment

Choose a reason for hiding this comment

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

I'll trust the JS part; some small comments on the Python that aren't vital.

if not self._error_logs_path(node_location).exists():
if self._error_path(node_location).exists():
print(self._error_path(node_location))
with open(self._error_path(node_location), "r") as fh:
Copy link
Copy Markdown
Collaborator

@mwpb mwpb Sep 16, 2025

Choose a reason for hiding this comment

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

Okay with this in the short-term, although I'd prefer in future that _error_path be the indicator of whether an error has occurred (and never have contents). In this direction, we should probably change to something like the following in future:-

  • the executor handles error (and logs) redirection
  • if the exit code is non-zero then it touches _error_path
  • it pipes stderr to _error_logs_path

(Also there is an extra print on the line above...)

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Adgreed, I just noticed that some nodes didn't have their correct error message attached. I opened #201 to keep track of this

if not node_def.exists():
return None
since_epoch = node_def.stat().st_mtime
return datetime.fromtimestamp(since_epoch).strftime("%Y-%m-%d %H:%M:%S")
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Slight preference for isoformat() here but not a big thing.

@philipp-seitz philipp-seitz enabled auto-merge (squash) September 17, 2025 00:50
@philipp-seitz philipp-seitz merged commit dc964d0 into main Sep 17, 2025
2 checks passed
@philipp-seitz philipp-seitz deleted the feat/improve-nested branch September 17, 2025 05:45
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

Successfully merging this pull request may close these issues.

[BUG] Running the visualiser with an empty checkpoints directory can result in an error

2 participants