parameters: (self)
docstring: check if default save directory is accessible for writing
docstring_summary: check if default save directory is accessible for writing
docstring_tokens: check if default save directory is accessible for writing
function: def _check_ouptut_dir(self):
          """ check if default save directory is accessible for writing """
          targ_dir = config['defaultsave.directory']
          test_file = os.path.join(targ_dir,'test_file.txt')
          try:
              fp = open(test_file,'w')
              fp.close()
              os.remove(test_file)
              return (True,'')
  #pylint: disable=bare-except
          except:
              return (False,'Can not write to default save directory {0}.\n Reduction results can be lost'.format(targ_dir))
function_tokens: def _check_ouptut_dir ( self ) : targ_dir = config [ 'defaultsave.directory' ] test_file = os . path . join ( targ_dir , 'test_file.txt' ) try : fp = open ( test_file , 'w' ) fp . close ( ) os . remove ( test_file ) return ( True , '' ) #pylint: disable=bare-except except : return ( False , 'Can not write to default save directory {0}.\n Reduction results can be lost' . format ( targ_dir ) )