Skip to content

Commit ffa057a

Browse files
authored
Merge pull request #1044 from arpastrana/fix/networkartist-ghpython
Fix/networkartist ghpython
2 parents 873de35 + b636944 commit ffa057a

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1919
* Added `Data.guid` to JSON serialization.
2020
* Added `Data.guid` to pickle state.
2121
* Added `Assembly.find_by_key` to locate parts by key.
22+
* Added `clear_edges` and `clear_nodes` to `NetworkArtist` for ghpython.
2223

2324
### Changed
2425

src/compas_ghpython/artists/networkartist.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,3 +95,13 @@ def draw_edges(self, edges=None, color=None):
9595
'name': "{}.edge.{}-{}".format(self.network.name, u, v)
9696
})
9797
return compas_ghpython.draw_lines(lines)
98+
99+
def clear_edges(self):
100+
"""GH Artists are state-less. Therefore, clear does not have any effect.
101+
"""
102+
pass
103+
104+
def clear_nodes(self):
105+
"""GH Artists are state-less. Therefore, clear does not have any effect.
106+
"""
107+
pass

0 commit comments

Comments
 (0)