Ignore:
Timestamp:
Nov 6, 2008, 12:17:15 PM (16 years ago)
Author:
ole
Message:

Reverted numpy changes to the trunk that should have been made to the branch.
The command was svn merge -r 5895:5890 .

File:
1 edited

Legend:

Unmodified
Added
Removed
  • anuga_core/source/anuga/utilities/test_system_tools.py

    r5891 r5897  
    11#!/usr/bin/env python
    22
     3
    34import unittest
    4 import numpy
     5from Numeric import zeros, array, allclose, Float
    56import zlib
    67from os.path import join, split, sep
     
    8081            pass
    8182        else:
    82             test_array = numpy.array([[7.0, 3.14], [-31.333, 0.0]])
     83            test_array = array([[7.0, 3.14], [-31.333, 0.0]])
    8384
    8485            # First file
     
    8687            fid = NetCDFFile(filename1, 'w')
    8788            fid.createDimension('two', 2)
    88             fid.createVariable('test_array', numpy.dtype(numpy.float).char, ('two', 'two'))
     89            fid.createVariable('test_array', Float,
     90                               ('two', 'two'))
    8991            fid.variables['test_array'][:] = test_array
    9092            fid.close()
     
    9496            fid = NetCDFFile(filename2, 'w')
    9597            fid.createDimension('two', 2)
    96             fid.createVariable('test_array', numpy.dtype(numpy.float).char, ('two', 'two'))
     98            fid.createVariable('test_array', Float,
     99                               ('two', 'two'))
    97100            fid.variables['test_array'][:] = test_array
    98101            fid.close()
Note: See TracChangeset for help on using the changeset viewer.