Ignore:
Timestamp:
Jun 30, 2009, 2:07:41 PM (15 years ago)
Author:
ole
Message:

Merged numpy branch back into the trunk.

In ~/sandpit/anuga/anuga_core/source
svn merge -r 6246:HEAD ../../branches/numpy .

In ~/sandpit/anuga/anuga_validation
svn merge -r 6417:HEAD ../branches/numpy_anuga_validation .

In ~/sandpit/anuga/misc
svn merge -r 6809:HEAD ../branches/numpy_misc .

For all merges, I used numpy version where conflicts existed

The suites test_all.py (in source/anuga) and validate_all.py passed using Python2.5 with numpy on my Ubuntu Linux box.

Location:
misc/tools/write_large_files
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • misc/tools/write_large_files/rw_big_file.py

    r6739 r7276  
    77import getopt
    88import time
    9 import Numeric
     9import numpy as num
    1010import Scientific.IO.NetCDF as nc
    1111
     
    5959def read_file(filename, variable_size, num_variables):
    6060    # create a data array slice
    61     slice_array_mask = Numeric.ones((XDIM,), 'd')
     61    slice_array_mask = num.ones((XDIM,), 'd')
    6262
    6363    # if timing file read, get start time
     
    102102
    103103            var_array = fid.variables[varname][index,:]
    104             if var_array != slice_array:
     104            if num.any(var_array != slice_array):
    105105                result = False
    106106                if Verbose:
     
    148148
    149149    # create a data array slice
    150     slice_array_mask = Numeric.ones((XDIM,), 'd')
     150    slice_array_mask = num.ones((XDIM,), 'd')
    151151
    152152    # if timing file write, remember start time
  • misc/tools/write_large_files/rwi4_big_file.py

    r6906 r7276  
    1919import getopt
    2020import time
    21 import Numeric
     21import numpy as num
    2222import Scientific.IO.NetCDF as nc
    2323
     
    6363def read_file(filename, variable_size, num_variables):
    6464    # create a data array slice
    65     slice_array_mask = Numeric.ones((XDIM,), 'd')
     65    slice_array_mask = num.ones((XDIM,), 'd')
    6666
    6767    # if timing file read, get start time
     
    134134
    135135    # create a data array slice
    136     slice_array_mask = Numeric.ones((XDIM,), 'd')
     136    slice_array_mask = num.ones((XDIM,), 'd')
    137137
    138138    # if timing file write, remember start time
  • misc/tools/write_large_files/rwi_big_file.py

    r6906 r7276  
    1919import getopt
    2020import time
    21 import Numeric
     21import numpy as num
    2222import Scientific.IO.NetCDF as nc
    2323
     
    6363def read_file(filename, variable_size, num_variables):
    6464    # create a data array slice
    65     slice_array_mask = Numeric.ones((XDIM,), 'd')
     65    slice_array_mask = num.ones((XDIM,), 'd')
    6666
    6767    # if timing file read, get start time
     
    137137
    138138    # create a data array slice
    139     slice_array_mask = Numeric.ones((XDIM,), 'd')
     139    slice_array_mask = num.ones((XDIM,), 'd')
    140140
    141141    # if timing file write, remember start time
  • misc/tools/write_large_files/rwil_big_file.py

    r6906 r7276  
    1919import getopt
    2020import time
    21 import Numeric
     21import numpy as num
    2222import Scientific.IO.NetCDF as nc
    2323
     
    6363def read_file(filename, variable_size, num_variables):
    6464    # create a data array slice
    65     slice_array_mask = Numeric.ones((XDIM,), 'd')
     65    slice_array_mask = num.ones((XDIM,), 'd')
    6666
    6767    # if timing file read, get start time
     
    134134
    135135    # create a data array slice
    136     slice_array_mask = Numeric.ones((XDIM,), 'd')
     136    slice_array_mask = num.ones((XDIM,), 'd')
    137137
    138138    # if timing file write, remember start time
  • misc/tools/write_large_files/write_big_file.py

    r6739 r7276  
    77import getopt
    88import time
    9 import Numeric
     9import numpy as num
    1010import Scientific.IO.NetCDF as nc
    1111
     
    5454
    5555    # create a data array slice
    56     slice_array = Numeric.ones((XDIM,), 'i')
     56    slice_array = num.ones((XDIM,), 'i')
    5757
    5858    # if timing file write, remember start time
Note: See TracChangeset for help on using the changeset viewer.