Skip to content

Commit

Permalink
feat(sample_generator): added variable name to metadata dict
Browse files Browse the repository at this point in the history
  • Loading branch information
this-is-sofia committed Nov 14, 2023
1 parent 9eafbb6 commit 3ef9319
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion causy/sample_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,10 @@ def generate(self, size):
output[i] = internal_repr[i].to_list()
for t in range(size):
graph.add_node(
f"{i} - t{t}", [output[i][t]], id_=f"{i}-t{t}", metadata={"time": t}
f"{i} - t{t}",
[output[i][t]],
id_=f"{i}-t{t}",
metadata={"time": t, "variable": i},
)

for t in range(1, size):
Expand Down

0 comments on commit 3ef9319

Please sign in to comment.