Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions src/lib/pyodide/pythonHelpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,9 @@ def _extract_scope_data(blocks, node_id_map, incremental=False):
'labels': labels
}
except Exception as e:
print(f"Error reading Scope: {e}")
# stderr (not stdout) so a failing recorder surfaces as an
# error in the console instead of an unexplained empty plot.
print(f"Error reading Scope: {e}", file=__import__('sys').stderr)
elif block_name == 'Subsystem':
if hasattr(block, 'blocks'):
find_scopes(block.blocks)
Expand Down Expand Up @@ -177,7 +179,9 @@ def _extract_spectrum_data(blocks, node_id_map):
'labels': labels
}
except Exception as e:
print(f"Error reading Spectrum: {e}")
# stderr (not stdout) so a failing recorder surfaces as an
# error in the console instead of an unexplained empty plot.
print(f"Error reading Spectrum: {e}", file=__import__('sys').stderr)
elif block_name == 'Subsystem':
if hasattr(block, 'blocks'):
find_spectrums(block.blocks)
Expand Down
Loading