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

1st draft for Python Measurement Writer. #1291

Closed
wants to merge 1 commit into from

Conversation

KerstinKeller
Copy link
Contributor

Description

Add high level API for writing measurements in Python

This was a first draft used in some Python tooling, and I thought it would be useful to bring it to the repo.
However, not yet 100% happy with the API, wouldn't want to make it stable. However the functionality may be valuable.

@FlorianReimold FlorianReimold added this to the eCAL 5.13 milestone Jan 9, 2024
self._protobuf_type = protobuf_type
self._binary_writer = BinaryChannelWriter(channel_name, meas=meas, encoding = self.encoding, type = self.type, descriptor = self.descriptor)

def write_entry(self, data, rcv_timestamp: float, snd_timestamp: float):
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Suggested change
def write_entry(self, data, rcv_timestamp: float, snd_timestamp: float):
def write_entry(self, data, rcv_timestamp: int, snd_timestamp: int):

self._meas.set_channel_description(channel_name, descriptor)
self._meas.set_channel_type(channel_name, combine_encoding_and_type(encoding, type))

def write_entry(self, data, rcv_timestamp: float, snd_timestamp: float):
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Suggested change
def write_entry(self, data, rcv_timestamp: float, snd_timestamp: float):
def write_entry(self, data, rcv_timestamp: int, snd_timestamp: int):

@FlorianReimold FlorianReimold marked this pull request as ready for review January 23, 2024 09:29
@KerstinKeller KerstinKeller deleted the feature/py-hdf5-write branch February 2, 2024 10:56
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.

2 participants