Skip to content
Snippets Groups Projects

Automatically select sample rate

Closed Imported Sander Snoo requested to merge github/fork/eendebakpt/plot_sample_rate into master

Created by: eendebakpt

When plotting with the default sample rate (1e9) python can crash because of the large amount of memory used. For a CSD scan with 100 ms scan time a 1e9 samplerate results in 1e8 elements for each channel.

In this PR we automatically select the samplerate such that the number of points plotted is below 1e5 (unless the user specifies the samplerate manually). @sldesnoo-Delft

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Author Owner

    Created by: sldesnoo-Delft

    This is not the desired way to change the code. It changes default behavior and will certainly result in confused users. The safe solution is to print a warning when there are many points (>1e5) and raise an Exception when there are too many points (>1e6)

  • Sander Snoo closed · Imported

    closed

Please register or sign in to reply
Loading