Skip to content

Conversation

@SuragNuthulapaty
Copy link
Contributor

Implements a method to take csv data and convert it to a launch file that can be streamed to MIDAS

To change what gets written, change the information in discriminant_to_field_names. Each sensor discriminant should return an array of column names, None if the data does not matter, 1 if the data should be 1, or 0 if the data is a boolean

To use, run python MIDAS/hilsim/data_converter.py <infile path> <outfile path>

rkontham24
rkontham24 previously approved these changes Feb 1, 2025
Copy link
Contributor

@rkontham24 rkontham24 left a comment

Choose a reason for hiding this comment

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

Looks good!




num = 0xf3626b6a
Copy link
Contributor

Choose a reason for hiding this comment

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

this is the checksum, add a note or rename the variable to specify what that is



num = 0xf3626b6a
buf = 0x00
Copy link
Contributor

Choose a reason for hiding this comment

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

What's this buf for?


for col in cols_to_save:
# Writes a 4 byte float
if col is None:
Copy link
Contributor

Choose a reason for hiding this comment

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

Add a comment to say that you noticed that most of the values with this parameter is a 4 byte float

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

Status: In review

Development

Successfully merging this pull request may close these issues.

5 participants