@@ -24,11 +24,14 @@ def __init__(self, experiments_api, logger=None):
2424 self .logger = logger or default_logger
2525
2626 @staticmethod
27- def _retrieve_file_paths (dir_name , ignored_files = '' ):
27+ def _retrieve_file_paths (dir_name , ignored_files = None ):
2828 # setup file paths variable
2929 file_paths = {}
30- ignored_files = ignored_files .split (',' )
31- exclude = ['.git' , '.idea' , '.pytest_cache' ] + ignored_files
30+
31+ exclude = ['.git' , '.idea' , '.pytest_cache' ]
32+ if ignored_files is not None :
33+ exclude += ignored_files .split (',' )
34+
3235 # Read all directory, subdirectories and file lists
3336 for root , dirs , files in os .walk (dir_name , topdown = True ):
3437 dirs [:] = [d for d in dirs if d not in exclude ]
@@ -39,7 +42,7 @@ def _retrieve_file_paths(dir_name, ignored_files=''):
3942 file_path = filename
4043 else :
4144 file_path = os .path .join (os .path .relpath (root , dir_name ), filename )
42- if file_path not in ignored_files :
45+ if file_path not in exclude :
4346 file_paths [file_path ] = os .path .join (root , filename )
4447
4548 return file_paths
@@ -105,6 +108,8 @@ def upload_workspace(self, input_data):
105108 if workspace_archive :
106109 archive_path = os .path .abspath (workspace_archive )
107110 else :
111+ self .logger .log ('Archiving your working directory for upload as your experiment workspace...'
112+ '(See https://docs.paperspace.com/gradient/experiments/run-experiments for more information.)' )
108113 archive_path = self ._zip_workspace (workspace_path , ignore_files )
109114
110115 file_name = os .path .basename (archive_path )
0 commit comments