Commit 84c8f967 authored by Christoph Sommer's avatar Christoph Sommer

remove reference to bif

parent 63489a52
......@@ -42,6 +42,9 @@ class GuiParams(dict):
with open(self.__class__._file, "w") as save_file:
json.dump(self, save_file)
def is_loaded(self):
return self.__class__._file is not None
def initialize(self):
self.clear()
self["in_dir"] = "."
......@@ -62,7 +65,7 @@ params = GuiParams()
params.initialize()
### GUI widgets
def select_project(default_name="./bif_care.json", params=params):
def select_project(default_name="./careless_care.json", params=params):
btn_new_proj = widgets.Button(description="New")
btn_load_proj = widgets.Button(description="Load")
......@@ -93,6 +96,10 @@ def select_project(default_name="./bif_care.json", params=params):
def select_input():
if not params.is_loaded():
print("Please create or load a project first..")
return
### Input directory
###################
btn_in_dir = widgets.Button(description="Select input folder")
......
......@@ -7,11 +7,11 @@ def gui_fsavename(directory='./'):
the chosen filename"""
# run this exact file in a separate process, and grab the result
file = check_output([executable, __file__, directory])
return file.strip().decode("utf-8")
return file.strip().decode("utf-8")
if __name__ == "__main__":
directory = argv[1]
app = QApplication([directory])
fname = QFileDialog.getSaveFileName(None, "Create a new file...",
directory, filter="BifCare (*.json)")
fname = QFileDialog.getSaveFileName(None, "Create a new file...",
directory, filter="Careless (*.json)")
print(fname[0])
\ No newline at end of file
......@@ -211,7 +211,7 @@ class BFListReader(object):
res = []
for fn in self.img_fns:
dims = get_pixel_dimensions(fn)
print(" -- ", fn, dims)
#print(" -- ", fn, dims)
ir = bf.ImageReader(str(fn))
......@@ -235,7 +235,7 @@ class BFListReader(object):
for fn in self.img_fns:
dims = get_pixel_dimensions(fn)
print(" -- ", fn, dims)
#print(" -- ", fn, dims)
ir = bf.ImageReader(str(fn))
......@@ -255,8 +255,6 @@ class BFListReader(object):
ir.close()
class Timer(object):
def __init__(self, name=None):
self.name = name
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment