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

CSV to Launch file #74

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open

CSV to Launch file #74

wants to merge 6 commits into from

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

@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
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants