Changeset 1151


Ignore:
Timestamp:
Mar 29, 2005, 9:50:50 AM (20 years ago)
Author:
ole
Message:

Fixed separator in test_sww2domain to be platform independent

File:
1 edited

Legend:

Unmodified
Added
Removed
  • inundation/ga/storm_surge/pyvolution/test_data_manager.py

    r1145 r1151  
    13831383        from data_manager import sww2domain
    13841384        from Numeric import allclose
    1385 
    1386         filename = domain.datadir+'\\'+domain.filename+'.sww'
     1385        import os
     1386
     1387        filename = domain.datadir+os.sep+domain.filename+'.sww'
    13871388
    13881389        domain2 = sww2domain(filename,fail_if_NaN=False,verbose = False)
     
    14561457        from data_manager import sww2domain
    14571458        from Numeric import allclose
    1458 
    1459         filename = domain.datadir+'\\'+domain.filename+'.sww'
     1459        import os
     1460
     1461
     1462        filename = domain.datadir+os.sep+domain.filename+'.sww'
    14601463
    14611464        #Fail because NaNs are present
Note: See TracChangeset for help on using the changeset viewer.