IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 20551


Ignore:
Timestamp:
Nov 5, 2008, 6:03:16 AM (18 years ago)
Author:
Sebastian Jester
Message:

fix histogram semantics problem and some references to numarray

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/sj_ippTests_branch_20080929/ippTests/compIPPphoto.py

    r20550 r20551  
    391391    """Return a record array representing a table row from a hash;
    392392    keys are column names, values are data"""
    393     newrow =  numarray.records.array([tuple(hash.values())])
     393    newrow =  numpy.rec.array([tuple(hash.values())])
    394394    newrow.dtype.names=hash.keys()
    395395    # Not :
     
    762762    if isNone(nbins):
    763763        return
    764     histo,leftbinedges = histogram(vec,nbins,[minbin,maxbin])
    765     bincenters = leftbinedges + 0.5*(leftbinedges[1]-leftbinedges[0])
     764    histo,binedges = histogram(vec,nbins,[minbin,maxbin],new=True)
     765    bincenters =  binedges + 0.5*(binedges[1]-binedges[0])
     766    bincenters = bincenters[0:-1]
    766767
    767768    sm.expand(expand)
Note: See TracChangeset for help on using the changeset viewer.