From 4e6a420943dc0060e41b928cebec239d4d084f10 Mon Sep 17 00:00:00 2001 From: Pavel 'LEdoian' Turinsky Date: Thu, 20 Jul 2023 19:58:21 +0200 Subject: [PATCH] Remove weird default and warning. --- birdvisu/annotations/layout.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/birdvisu/annotations/layout.py b/birdvisu/annotations/layout.py index ccaebde..a24e1fe 100644 --- a/birdvisu/annotations/layout.py +++ b/birdvisu/annotations/layout.py @@ -49,12 +49,13 @@ class PlaceVerticesFromFile(StyleAnnotator): The filename is either given to the Annotator, or ./visualisation.visu is used.""" idempotent = False # The layout file could have changed, this is not covered by a TopologyV3 def __init__(self, filename): - if filename is None: - filename = r'./visualisation.visu' self.filename = filename def annotate(self, topo): self.topo = topo self.result = Annotation() + if self.filename is None: + self.result.for_topology = False + return self.result try: with open(self.filename, 'r') as f: positions = load(f)