Skip to content
This repository has been archived by the owner on Oct 23, 2023. It is now read-only.

Commit

Permalink
Merge pull request #313 from CCBR/v3.0branch
Browse files Browse the repository at this point in the history
data/work folder is copy paste on gui... workflow error fix
  • Loading branch information
abdallahamr committed Jan 17, 2018
2 parents c22456b + ba1622c commit cc75e68
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 6 deletions.
13 changes: 10 additions & 3 deletions gui/frame.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ def __init__( self, parent, pipeline_name, annotation, *args, **kwargs ) :
self.annotation = annotation
self.genome = annotation.get()
self.nends = -1
self.n_set_data_directory = 0

l = Label( pipepanel, text="Data Directory:" )
l.grid(row=1, column=1, sticky=W, padx=0, pady=10 )
Expand Down Expand Up @@ -149,10 +150,12 @@ def __init__( self, parent, pipeline_name, annotation, *args, **kwargs ) :


def set_data_directory( self ):
fname = askdirectory( initialdir = USER_HOME,
fname=self.datapath.get()
if fname=='':
fname = askdirectory( initialdir = USER_HOME,
title="Select Data Directory")

self.datapath.set(fname)
self.datapath.set(fname)
self.n_set_data_directory += 1
self.datafiles = [fn for fn in listdir(fname) if fn.endswith(filetype)]
label_found=0
label_error=0
Expand Down Expand Up @@ -298,6 +301,10 @@ def sel_work_dir( self ) :
def init_work_dir( self ):
#Getting the work directory user input
#and basic emptyness checking

if self.nends == -1 and self.n_set_data_directory == 0:
self.set_data_directory()

fname = self.workpath.get()
if not fname :
#self.work_entry.config( state='normal' )
Expand Down
6 changes: 3 additions & 3 deletions gui/menu.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ def build_in_progress( msg="" ) :
def about():
info="""
CCBR Pipeliner
Version 2.0
Febrary 14, 2017
Version 3.0
December, 2017.
"""
showinfo("CCBR Pipeliner\nVersion 2.0",info)
showinfo("CCBR Pipeliner\nVersion 3.0",info)

def add_menubar( root ):
menubar = Menu(root)
Expand Down

0 comments on commit cc75e68

Please sign in to comment.