@@ -613,7 +613,7 @@ def process_args():
613
613
default = __version__ ,
614
614
help = 'specify the version of the tool this submission is done with' )
615
615
616
- parser .add_argument ('--no_upload ' ,
616
+ parser .add_argument ('--no_data_upload ' ,
617
617
default = False ,
618
618
action = "store_true" ,
619
619
help = 'Indicate if no upload should be performed and you like to submit a RUN object (e.g. if uploaded was done separately).' )
@@ -713,16 +713,12 @@ def main():
713
713
# a dictionary of filename:file_path
714
714
# ? do I have to define the absolute path
715
715
df = schema_targets ['run' ]
716
-
717
- if args .no_upload :
718
- file_paths = {}
719
- print ("No files will be uploaded, remove `--no_upload' argument to perform upload." )
720
- else : # check supplied datafiles only if doing upload
721
- file_paths = {os .path .basename (path ): os .path .abspath (path )
722
- for path in args .data }
723
- # check if file names identical between command line and table
724
- # if not, system exits
725
- check_filenames (file_paths , df )
716
+
717
+ file_paths = {os .path .basename (path ): os .path .abspath (path )
718
+ for path in args .data }
719
+ # check if file names identical between command line and table
720
+ # if not, system exits
721
+ check_filenames (file_paths , df )
726
722
727
723
# generate MD5 sum if not supplied in table
728
724
if not check_file_checksum (df ):
@@ -738,8 +734,10 @@ def main():
738
734
schema_targets ['run' ] = df
739
735
740
736
# submit data to webin ftp server
741
- if not args .no_upload :
737
+ if not args .no_data_upload :
742
738
submit_data (file_paths , password , webin_id )
739
+ else :
740
+ print ("No files will be uploaded, remove `--no_data_upload' argument to perform upload." )
743
741
744
742
# when adding sample
745
743
# update schema_targets with taxon ids or scientific names
0 commit comments