Changeset 4635


Ignore:
Timestamp:
Jul 24, 2007, 10:42:54 AM (17 years ago)
Author:
nick
Message:

fixed some changes make_plots_from_csv_files

Location:
anuga_core/source/anuga/abstract_2d_finite_volumes
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • anuga_core/source/anuga/abstract_2d_finite_volumes/test_util.py

    r4634 r4635  
    13881388#-------------------------------------------------------------
    13891389if __name__ == "__main__":
    1390 #    suite = unittest.makeSuite(Test_Util,'test')
    1391     suite = unittest.makeSuite(Test_Util,'test_get_min_max_values')
     1390    suite = unittest.makeSuite(Test_Util,'test')
     1391#    suite = unittest.makeSuite(Test_Util,'test_get_min_max_values')
    13921392    runner = unittest.TextTestRunner(verbosity=0)
    13931393    runner.run(suite)
  • anuga_core/source/anuga/abstract_2d_finite_volumes/util.py

    r4634 r4635  
    970970    line11 = line1.split(',')
    971971
    972     try:
    973         float(line11[0])
    974     except:   
     972    if isinstance(line11[0],str) is True:
    975973        # We have found text in the first line
    976974        east_index = None
     
    999997        lines = lines[1:] # Remove header from data
    1000998    else:
    1001         # First field in first line contains a number, so there is no header. Assume that this is a simple easting, northing file
     999        # No header, assume that this is a simple easting, northing file
    10021000
    10031001        msg = 'There was no header in file %s and the number of columns is %d' %(filename, len(line11))
     
    19021900    return min1, max1
    19031901
    1904 def sortedDictValues(adict):
    1905     """Sorts a dictionary by the Keys
    1906     This code was authored by Alex Martelli (8/4/2001) and
    1907     sourced from ASPN
    1908     """
    1909        
    1910     items = adict.items()
    1911     items.sort()
    1912     print 'items',items
    1913     return [value for key, value in items]
    1914    
    1915    
    1916    
    1917 
    1918 
    1919        
     1902   
     1903   
     1904   
     1905
     1906
     1907       
Note: See TracChangeset for help on using the changeset viewer.