Changeset 1572 for trunk/bindings/python


Ignore:
Timestamp:
28/10/10 13:36:21 (19 months ago)
Author:
Freddie Akeroyd
Message:

numpy.ones gives an array of reals whereas nxcompmakedata expects integers
Function call now adjusted to explicity request integers for chunks array.

Thank you to Matthias Drochner for this fix

Refs #259

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bindings/python/nxs/napi.py

    r1571 r1572  
    896896        dims = numpy.array(shape,'i') 
    897897        if chunks == None: 
    898             chunks = numpy.ones(dims.shape) 
     898            chunks = numpy.ones(dims.shape,'i') 
    899899            chunks[-1] = shape[-1] 
    900900        else: 
Note: See TracChangeset for help on using the changeset viewer.