Skip to content

Commit

Permalink
commit stable
Browse files Browse the repository at this point in the history
  • Loading branch information
joelyancey committed Mar 30, 2023
1 parent f6e4127 commit 076fb03
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 7 deletions.
8 changes: 4 additions & 4 deletions src/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,9 +99,7 @@ def delete_recursive(dir):
cfg.main_window.setPbarText('Deleting Files...')

to_delete = []
to_delete.extend(glob(dir +'/img_aligned.zarr/s*'))
to_delete.extend(glob(dir +'/img_src.zarr/s*'))
to_delete.append(dir +'/thumbnails')

scales = glob(dir + '/scale_*')
if scales:
for s in natural_sort(scales)[::-1]:
Expand All @@ -117,7 +115,9 @@ def delete_recursive(dir):
to_delete.append(os.path.join(dir, s, 'thumbnails_aligned'))
if os.path.exists(os.path.join(dir, s, 'img_src')):
to_delete.append(os.path.join(dir, s, 'img_src'))

to_delete.extend(glob(dir +'/img_aligned.zarr/s*'))
to_delete.extend(glob(dir +'/img_src.zarr/s*'))
to_delete.append(dir +'/thumbnails')
to_delete.append(dir)
to_delete.append(dir) #delete twice
cfg.nCompleted = 0
Expand Down
1 change: 0 additions & 1 deletion src/ui/main_window.py
Original file line number Diff line number Diff line change
Expand Up @@ -1359,7 +1359,6 @@ def apply_default_style(self):
self.hud.set_theme_light()



def reset_groupbox_styles(self):
logger.info('reset_groupbox_styles:')

Expand Down
2 changes: 1 addition & 1 deletion src/ui/tab_project.py
Original file line number Diff line number Diff line change
Expand Up @@ -1450,7 +1450,7 @@ def fn():
self.w_ng_extended_toolbar.addAction(cfg.main_window.ngShowYellowFrameAction)
self.w_ng_extended_toolbar.addAction(cfg.main_window.ngShowAxisLinesAction)
self.w_ng_extended_toolbar.addAction(self.showHudOverlayAction)
self.w_ng_extended_toolbar.addWidget(QLabel(' '))
self.w_ng_extended_toolbar.addWidget(ExpandingWidget(self))
self.w_ng_extended_toolbar.addWidget(self.labNgLayout)
self.w_ng_extended_toolbar.addWidget(self.comboNgLayout)
self.w_ng_extended_toolbar.addWidget(ExpandingWidget(self))
Expand Down
2 changes: 1 addition & 1 deletion src/viewer_em.py
Original file line number Diff line number Diff line change
Expand Up @@ -517,7 +517,7 @@ def initViewerSlim(self, nglayout=None):

if getData('state,ng_layout') == 'xy':
# logger.info('Initializing zoom for xy plane ...')
w = cfg.project_tab.webengine.width()
w = cfg.main_window.width()
h = cfg.project_tab.webengine.height()
self.initZoom(w=w, h=h, adjust=1.10)

Expand Down

0 comments on commit 076fb03

Please sign in to comment.