Skip to content

Conversation

@tasnimxvi
Copy link
Contributor

No description provided.

Copy link
Collaborator

@RemDelaporteMathurin RemDelaporteMathurin left a comment

Choose a reason for hiding this comment

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

I tested this locally and confirm the data can be downloaded (tested on chrome) and plotted without issue.

I just have a few requests (see comments below)

src/backend.py Outdated
Comment on lines 116 to 127
csv_payload = {
"time": [],
"series": {}
}
max_len = 0
for scope in scopes:
time, values = scope.read()
max_len = max(max_len, len(time))
csv_payload["time"] = time.tolist()
for i, series in enumerate(values):
label = scope.labels[i] if i < len(scope.labels) else f"{scope.label} {i}"
csv_payload["series"][label] = series.tolist()
Copy link
Collaborator

Choose a reason for hiding this comment

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

This could be its own function make_csv_payload(scopes) that can then be tested in the CI

@RemDelaporteMathurin RemDelaporteMathurin linked an issue Jul 31, 2025 that may be closed by this pull request
Copy link
Collaborator

@RemDelaporteMathurin RemDelaporteMathurin left a comment

Choose a reason for hiding this comment

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

LGTM, we can probably work later on making the results graph a bit smaller in some cases. Feel free to merge it if you're happy with it

@tasnimxvi tasnimxvi merged commit 8c8be40 into main Aug 1, 2025
3 checks passed
@RemDelaporteMathurin RemDelaporteMathurin deleted the csv_download branch August 7, 2025 15:00
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.

Save data to csv

3 participants