Skip to content

Commit

Permalink
Make Save module try to inspect visual_name attribute of visuals
Browse files Browse the repository at this point in the history
  • Loading branch information
klarh committed Apr 2, 2022
1 parent 2b06362 commit 2370a73
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions flowws_analysis/Save.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ def run(self, scope, storage):
modifiers = []
if isinstance(vis, flowws.Stage):
modifiers.append(type(vis).__name__)
elif hasattr(vis, 'visual_name'):
modifiers.append(vis.visual_name)
modifiers.extend(self.arguments.get('file_modifiers', []))
self._update_modifiers(filename, modifiers)

Expand Down Expand Up @@ -75,6 +77,8 @@ def run(self, scope, storage):
modifiers = []
if isinstance(vis, flowws.Stage):
modifiers.append(type(vis).__name__)
elif hasattr(vis, 'visual_name'):
modifiers.append(vis.visual_name)
modifiers.extend(self.arguments.get('file_modifiers', []))
self._update_modifiers(filename, modifiers)

Expand Down

0 comments on commit 2370a73

Please sign in to comment.