Changeset 25012
- Timestamp:
- 06/11/20 12:11:08 (5 years ago)
- Location:
- issm/trunk-jpl/src/m
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified issm/trunk-jpl/src/m/classes/pairoptions.py ¶
r24269 r25012 10 10 """ 11 11 12 def __init__(self, * 12 def __init__(self, *arg): # {{{ 13 13 self.functionname = '' 14 14 self.list = OrderedDict() … … 23 23 pass #Do nothing, 24 24 else: 25 self.buildlist(* 25 self.buildlist(*arg) 26 26 # }}} 27 27 … … 38 38 # }}} 39 39 40 def buildlist(self, * 40 def buildlist(self, *arg): # {{{ 41 41 """BUILDLIST - build list of objects from input""" 42 42 -
TabularUnified issm/trunk-jpl/src/m/classes/plotoptions.py ¶
r24269 r25012 8 8 9 9 Usage: 10 plotoptions = plotoptions(* 10 plotoptions = plotoptions(*arg) 11 11 ''' 12 12 13 def __init__(self, * 13 def __init__(self, *arg): # {{{ 14 14 self.numberofplots = 0 15 15 self.figurenumber = 1 16 16 self.list = OrderedDict() 17 17 18 self.buildlist(* 18 self.buildlist(*arg) 19 19 #}}} 20 20 … … 33 33 #}}} 34 34 35 def buildlist(self, * 35 def buildlist(self, *arg): #{{{ 36 36 #check length of input 37 37 if len(arg) % 2: … … 39 39 40 40 #go through args and build list (like pairoptions) 41 rawoptions = pairoptions.pairoptions(* 41 rawoptions = pairoptions.pairoptions(*arg) 42 42 numoptions = int(len(arg) / 2) 43 43 rawlist = [] # cannot be a dict since they do not support duplicate keys -
TabularUnified issm/trunk-jpl/src/m/miscellaneous/PythonFuncs.py ¶
r24213 r25012 2 2 3 3 4 def logical_and_n(* 4 def logical_and_n(*arg): 5 5 6 6 if len(arg): … … 14 14 15 15 16 def logical_or_n(* 16 def logical_or_n(*arg): 17 17 18 18 if len(arg):
Note:
See TracChangeset
for help on using the changeset viewer.