Ignore:
Timestamp:
10/21/16 08:49:08 (8 years ago)
Author:
bdef
Message:

CHG: major cosmetic clean up we now ask shape (N,) rather than (N,1) also uniformised numpy imports

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/m/coordsystems/xy2ll.py

    r21254 r21303  
    1 import numpy as np
     1import numpy as  np
    22from math import pi
    33
     
    3737                raise StandardError('bad usage: type "help(xy2ll)" for details')
    3838
    39         # if x,y passed as lists, convert to numpy arrays
    40         if type(x) != "numpy.ndarray":
     39        # if x,y passed as lists, convert to np.arrays
     40        if type(x) != "np.ndarray":
    4141                x=np.array(x)
    42         if type(y) != "numpy.ndarray":
     42        if type(y) != "np.ndarray":
    4343                y=np.array(y)
    4444
Note: See TracChangeset for help on using the changeset viewer.