From 1dcf220a860247166ab48a03bf5be949bbd1682b Mon Sep 17 00:00:00 2001 From: Randy Heiland Date: Sun, 19 May 2024 13:09:37 -0400 Subject: [PATCH 1/2] handle >| if only svg --- bin/vis_base.py | 24 +++++++++++++++--------- 1 file changed, 15 insertions(+), 9 deletions(-) diff --git a/bin/vis_base.py b/bin/vis_base.py index 25ec6840..a5468db0 100644 --- a/bin/vis_base.py +++ b/bin/vis_base.py @@ -2198,6 +2198,9 @@ def first_plot_cb(self, text): # print("\n>>> calling update_plots() from "+ inspect.stack()[0][3]) self.update_plots() + def last_svg_plot(self): + pass + def last_plot_cb(self, text): if self.reset_model_flag: self.reset_model() @@ -2216,11 +2219,12 @@ def last_plot_cb(self, text): num_xml = len(xml_files) if num_xml == 0: print("last_plot_cb(): WARNING: no output*.xml files present") - return - - xml_files.sort() - # print('last_plot_cb():xml_files (after sort)= ',xml_files) - last_xml = int(xml_files[-1][-12:-4]) + last_xml = None + # return + else: + xml_files.sort() + # print('last_plot_cb():xml_files (after sort)= ',xml_files) + last_xml = int(xml_files[-1][-12:-4]) # svg_pattern = "snapshot*.svg" @@ -2244,10 +2248,12 @@ def last_plot_cb(self, text): # print('num_xml, num_svg = ',num_xml, num_svg) # last_xml = int(xml_files[-1][-12:-4]) last_svg = int(svg_files[-1][-12:-4]) - # print('last_xml, _svg = ',last_xml,last_svg) - self.current_svg_frame = last_xml - if last_svg < last_xml: - self.current_svg_frame = last_svg + self.current_svg_frame = last_svg + print('last_xml, _svg = ',last_xml,last_svg) + if last_xml: + self.current_svg_frame = last_xml + if last_svg < last_xml: + self.current_svg_frame = last_svg self.current_frame = self.current_svg_frame From fcd1333f1c20971d344ca96f0dce485b5bf96f95 Mon Sep 17 00:00:00 2001 From: Randy Heiland Date: Sun, 19 May 2024 13:10:28 -0400 Subject: [PATCH 2/2] bump --- VERSION.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/VERSION.txt b/VERSION.txt index 3a00ed61..37c17e2d 100644 --- a/VERSION.txt +++ b/VERSION.txt @@ -1 +1 @@ -2.37.6 +2.37.7