Skip to content

Commit

Permalink
Merge pull request #211 from PhysiCell-Tools/development
Browse files Browse the repository at this point in the history
Development
  • Loading branch information
rheiland authored May 19, 2024
2 parents 442e04f + fcd1333 commit fc4534f
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 10 deletions.
2 changes: 1 addition & 1 deletion VERSION.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.37.6
2.37.7
24 changes: 15 additions & 9 deletions bin/vis_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand All @@ -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"

Expand All @@ -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

Expand Down

0 comments on commit fc4534f

Please sign in to comment.