Skip to content

Commit

Permalink
Add more fields
Browse files Browse the repository at this point in the history
  • Loading branch information
HoangGiang93 committed Feb 10, 2025
1 parent 6048af4 commit e5c987f
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -104,9 +104,12 @@ def send_and_receive_data(self) -> None:
if len(attribute_values) == 1:
data_name = object_name + ":" + attribute_name
data[data_name] = receive_data[data_adr::data_size]
data_adr += 1
else:
print(f"Attribute {attribute_name} has more than one value. Skipping.")
data_adr += len(attribute_values)
for i in range(len(attribute_values)):
data_name = object_name + ":" + attribute_name + "_" + str(i)
data[data_name] = receive_data[data_adr::data_size]
data_adr += 1

import pandas as pd

Expand Down

0 comments on commit e5c987f

Please sign in to comment.