/[escript]/trunk/escript/py_src/modelframe.py
ViewVC logotype

Diff of /trunk/escript/py_src/modelframe.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 954 by gross, Fri Feb 9 08:56:14 2007 UTC revision 964 by gross, Tue Feb 13 05:10:26 2007 UTC
# Line 541  class ParameterSet(LinkableObject): Line 541  class ParameterSet(LinkableObject):
541                  for i in value:                  for i in value:
542                      if isinstance(i, bool):                      if isinstance(i, bool):
543                          elem_type = max(elem_type,0)                          elem_type = max(elem_type,0)
544                      if isinstance(i, int) and not isinstance(i, bool):                      elif isinstance(i, int):
545                          elem_type = max(elem_type,1)                          elem_type = max(elem_type,1)
546                      if isinstance(i, float):                      elif isinstance(i, float):
547                          elem_type = max(elem_type,2)                          elem_type = max(elem_type,2)
548                  if elem_type == 0: value = numarray.array(value,numarray.Bool)                  if elem_type == 0: value = numarray.array(value,numarray.Bool)
549                  if elem_type == 1: value = numarray.array(value,numarray.Int)                  if elem_type == 1: value = numarray.array(value,numarray.Int)

Legend:
Removed from v.954  
changed lines
  Added in v.964

  ViewVC Help
Powered by ViewVC 1.1.26