Changeset 17501


Ignore:
Timestamp:
03/20/14 09:42:58 (11 years ago)
Author:
cborstad
Message:

BUG: missed import

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/m/classes/organizer.py

    r17497 r17501  
    77from model import model
    88from whichdb import whichdb
     9import MatlabFuncs as m
    910
    1011class organizer(object):
     
    4041                if not isinstance(prefix,(str,unicode)):
    4142                        raise TypeError("prefix is not a string")
    42                 if not strcmp(prefix,prefix.strip()) or len(prefix.split()) > 1:
     43                if not m.strcmp(prefix,prefix.strip()) or len(prefix.split()) > 1:
    4344                        raise TypeError("prefix should not have any white space")
    4445                self.prefix=prefix
     
    6061                        if not isinstance(trunkprefix,(str,unicode)):
    6162                                raise TypeError("trunkprefix is not a string")
    62                         if not strcmp(trunkprefix,trunkprefix.strip()) or len(trunkprefix.split()) > 1:
     63                        if not m.strcmp(trunkprefix,trunkprefix.strip()) or len(trunkprefix.split()) > 1:
    6364                                raise TypeError("trunkprefix should not have any white space")
    6465                        self.trunkprefix=trunkprefix
     
    123124                if not isinstance(string,(str,unicode)):
    124125                        raise TypeError("Step provided should be a string")
    125                 if not strcmp(string,string.strip()) or len(string.split()) > 1:
     126                if not m.strcmp(string,string.strip()) or len(string.split()) > 1:
    126127                        raise TypeError("Step provided should not have any white space")
    127128                if self._currentstep>0 and string in [step['string'] for step in self.steps]:
Note: See TracChangeset for help on using the changeset viewer.