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

Initialize meta data via constructor or set defaults from saver #7

Open
casabre opened this issue Feb 1, 2024 · 0 comments
Open

Initialize meta data via constructor or set defaults from saver #7

casabre opened this issue Feb 1, 2024 · 0 comments

Comments

@casabre
Copy link
Member

casabre commented Feb 1, 2024

If a waveform is created from a greenfield and no data were loaded, the meta data are empty. In order to give some hints to the user what meta data are relevant, a pre-filled dictionary should be set with e.g. None values. Maybe the saver can provide the defaults.

Furthermore, it would be useful to use kwargs in order to populate the meta data dictionary while construction, e.g.

>>> wv = rsb_waveform.RsWaveform(clock=1e9)
>>> wav.meta[0].clock
1e9
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

No branches or pull requests

1 participant