Changeset 24252


Ignore:
Timestamp:
10/17/19 20:43:19 (5 years ago)
Author:
jdquinn
Message:

BUG: Extra spaces (not quite finished, but committing progress)

Location:
issm/trunk-jpl/src/m
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/m/classes/clusters/generic.py

    r24240 r24252  
    147147                #Add - -    gen - suppressions = all to get suppression lines
    148148                #fid.write('LD_PRELOAD={} \\\n'.format(self.valgrindlib))
    149                 fid.write('mpiexec - np {} {} --leak -check=full --suppressions={} {}/kriging.exe {}/{} {} 2 > {}.errlog > {}.outlog ' .format
     149                fid.write('mpiexec -np {} {} --leak -check=full --suppressions={} {}/kriging.exe {}/{} {} 2 > {}.errlog > {}.outlog ' .format
    150150                          (self.np, self.valgrind, self.valgrindsup, self.codepath, self.executionpath, modelname, modelname, modelname, modelname))
    151151            if not io_gather:    #concatenate the output files:
  • issm/trunk-jpl/src/m/os/issmdir.py

    r24213 r24252  
    1616        ISSM_DIR = os.environ['ISSM_DIR_WIN']
    1717        if m.strcmpi(ISSM_DIR[-1], '/') or m.strcmpi(ISSM_DIR[-1], '\\'):
    18             ISSM_DIR = ISSM_DIR[: - 1]  #shave off the last '/'
     18            ISSM_DIR = ISSM_DIR[:-1]  #shave off the last '/'
    1919
    2020    if not ISSM_DIR:
  • issm/trunk-jpl/src/m/os/issmscpin.py

    r24251 r24252  
    5555            for package in packages:
    5656                if not os.path.exists(os.path.join('.', package)):
    57                     raise OSError("issmscpin error message: could not call scp on * nix system for file '{}'".format(package))
     57                    raise OSError("issmscpin error message: could not call scp on *nix system for file '{}'".format(package))
  • issm/trunk-jpl/src/m/os/issmscpout.py

    r24213 r24252  
    3232            #get ISSM_DIR variable
    3333            if 'ISSM_DIR_WIN' in os.environ:
    34                 ISSM_DIR = os.environ['ISSM_DIR_WIN'][1: - 2]
     34                ISSM_DIR = os.environ['ISSM_DIR_WIN'][1:-2]
    3535            else:
    3636                raise OSError("issmscpout error message: could not find ISSM_DIR_WIN environment variable.")
     
    5454
    5555            if port:
    56                 subprocess.call('scp - P %d %s %s@localhost:%s' % (port, string, login, path), shell=True)
     56                subprocess.call('scp -P %d %s %s@localhost:%s' % (port, string, login, path), shell=True)
    5757            else:
    5858                subprocess.call('scp %s %s@%s:%s' % (string, login, host, path), shell=True)
  • issm/trunk-jpl/src/m/os/issmssh.py

    r24228 r24252  
    2525            #get ISSM_DIR variable
    2626            if 'ISSM_DIR_WIN' in os.environ:
    27                 ISSM_DIR = os.environ['ISSM_DIR_WIN'][1: - 2]
     27                ISSM_DIR = os.environ['ISSM_DIR_WIN'][1:-2]
    2828            else:
    2929                raise OSError("issmssh error message: could not find ISSM_DIR_WIN environment variable.")
     
    4444    # "IOError: [Errno 35] Resource temporarily unavailable"
    4545    # on the Mac when trying to display md after the solution.
    46     # (from http: / / code.google.com / p / robotframework / issues / detail?id = 995)
     46    # (from http://code.google.com/p/robotframework/issues/detail?id=995)
    4747    if _platform == "darwin":
    4848        # Make FreeBSD use blocking I / O like other platforms
  • issm/trunk-jpl/src/m/solve/loadresultsfromdisk.py

    r24240 r24252  
    3939        if os.path.exists(md.miscellaneous.name + '.errlog'):
    4040            with open(md.miscellaneous.name + '.errlog', 'r') as f:
    41                 setattr(getattr(md.results, structure[0].SolutionType)[0], 'errlog', [line[: -1] for line in f])
     41                setattr(getattr(md.results, structure[0].SolutionType)[0], 'errlog', [line[:-1] for line in f])
    4242        else:
    4343            setattr(getattr(md.results, structure[0].SolutionType)[0], 'errlog', [])
     
    4545        if os.path.exists(md.miscellaneous.name + '.outlog'):
    4646            with open(md.miscellaneous.name + '.outlog', 'r') as f:
    47                 setattr(getattr(md.results, structure[0].SolutionType)[0], 'outlog', [line[: -1] for line in f])
     47                setattr(getattr(md.results, structure[0].SolutionType)[0], 'outlog', [line[:-1] for line in f])
    4848        else:
    4949            setattr(getattr(md.results, structure[0].SolutionType)[0], 'outlog', [])
Note: See TracChangeset for help on using the changeset viewer.