Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make it easier to use Buffers for input and output #770

Open
tim-shea opened this issue Aug 6, 2023 · 0 comments · May be fixed by #771
Open

Make it easier to use Buffers for input and output #770

tim-shea opened this issue Aug 6, 2023 · 0 comments · May be fixed by #771
Assignees
Labels
0-needs-review For all new issues 1-feature New feature request
Milestone

Comments

@tim-shea
Copy link
Contributor

tim-shea commented Aug 6, 2023

User story

As a user, I want to be able to store or write multiple inputs, outputs, or vars easily, without creating many different RingBuffer processes.

Conditions of satisfaction

  • Allow a buffer to dynamically create ports and vars when it is connected.
  • Ensure that multiple buffers with different connectivity do not interfere with each other (e.g. due to the use of class members).
  • Provide flexible, user-configurable options for what to do when a buffer overflows:
    • Raise an error, since we may assume the user intended to match the length of a buffer to the number of timesteps
    • Wrap around, as with the current RingBuffers
    • Reallocate, e.g. by doubling the available memory in the buffer (as in C++ standard library containers)
  • Allow the user to create and connect a buffer without any duplication of shape parameters from the connected ports
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0-needs-review For all new issues 1-feature New feature request
Projects
None yet
1 participant