Skip to content

Commit 3d9899d

Browse files
committed
Adjust PrimaryData to removed uuid entries
1 parent 9cef355 commit 3d9899d

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

pypsdm/models/primary_data.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -179,16 +179,13 @@ def _write_ts_df(
179179
f"Expected entity type to be TypeSeriesEnum but is {key.ts_type}. Can not determine file name."
180180
)
181181
ts_name = key.ts_type.get_csv_input_file_name(key.ts_uuid)
182-
data["uuid"] = [str(uuid.uuid4()) for _ in range(len(ts))]
183-
data["time"] = data.index
184-
data.set_index("uuid", inplace=True)
185182
df_to_csv(
186183
data,
187184
path,
188185
ts_name,
189186
mkdirs=mkdirs,
190187
delimiter=delimiter,
191-
index_label="uuid",
188+
index_label="time",
192189
)
193190
return None
194191
except Exception as e:

0 commit comments

Comments
 (0)