Skip to content

Commit

Permalink
fix when using clean_tempdir=True parameter and directory was readily…
Browse files Browse the repository at this point in the history
… removed
  • Loading branch information
erdogant committed May 30, 2022
1 parent 9ac5140 commit f375fba
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion undouble/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

__author__ = 'Erdogan Tasksen'
__email__ = 'erdogant@gmail.com'
__version__ = '1.2.5'
__version__ = '1.2.6'

# module level doc-string
__doc__ = """
Expand Down
10 changes: 5 additions & 5 deletions undouble/undouble.py
Original file line number Diff line number Diff line change
Expand Up @@ -360,11 +360,11 @@ def clean_files(self, clean_tempdir=False):
os.remove(self.results['pathnames'][i])
self.results['filenames'][i]=None
self.results['pathnames'][i]=None
if clean_tempdir:
logger.info('Removing the entire temp directory %s', self.clustimage.params['tempdir'])
shutil.rmtree(self.clustimage.params['tempdir'])
self.results['filenames'] = None
self.results['pathnames'] = None
if clean_tempdir:
logger.info('Removing the entire temp directory %s', self.clustimage.params['tempdir'])
shutil.rmtree(self.clustimage.params['tempdir'])
self.results['filenames'] = None
self.results['pathnames'] = None

def import_example(self, data='flowers', url=None):
"""Import example dataset from github source.
Expand Down

0 comments on commit f375fba

Please sign in to comment.