Skip to content

Commit

Permalink
map coordinates correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
codingfabi committed Dec 27, 2023
1 parent 8c1b84f commit 907ffdf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hetpy/models/hetGraph.py
Original file line number Diff line number Diff line change
Expand Up @@ -471,7 +471,7 @@ def export_to_json(self, filepath: str, layout_function='auto'):
node_dict = {n: getattr(node, n) for n in dir(node) if not n.startswith('__')}
node_dict["position"] = {
"x": layout.coords[index][0],
"y": layout.coords[index][0]
"y": layout.coords[index][1]
}
nodes_json.append(node_dict)

Expand Down

0 comments on commit 907ffdf

Please sign in to comment.