params.py (8459:b8c3c20d0385) | params.py (8460:3893d9d2c6c2) |
---|---|
1# Copyright (c) 2004-2006 The Regents of The University of Michigan 2# Copyright (c) 2010 Advanced Micro Devices, Inc. 3# All rights reserved. 4# 5# Redistribution and use in source and binary forms, with or without 6# modification, are permitted provided that the following conditions are 7# met: redistributions of source code must retain the above copyright 8# notice, this list of conditions and the following disclaimer; --- 170 unchanged lines hidden (view full) --- 179 180 def ini_str(self): 181 return ' '.join([v.ini_str() for v in self]) 182 183 def getValue(self): 184 return [ v.getValue() for v in self ] 185 186 def unproxy(self, base): | 1# Copyright (c) 2004-2006 The Regents of The University of Michigan 2# Copyright (c) 2010 Advanced Micro Devices, Inc. 3# All rights reserved. 4# 5# Redistribution and use in source and binary forms, with or without 6# modification, are permitted provided that the following conditions are 7# met: redistributions of source code must retain the above copyright 8# notice, this list of conditions and the following disclaimer; --- 170 unchanged lines hidden (view full) --- 179 180 def ini_str(self): 181 return ' '.join([v.ini_str() for v in self]) 182 183 def getValue(self): 184 return [ v.getValue() for v in self ] 185 186 def unproxy(self, base): |
187 if len(self) == 1 and isinstance(self[0], AllProxy): | 187 if len(self) == 1 and isinstance(self[0], proxy.AllProxy): |
188 return self[0].unproxy(base) 189 else: 190 return [v.unproxy(base) for v in self] 191 192class SimObjectVector(VectorParamValue): 193 # support clone operation 194 def __call__(self, **kwargs): 195 return SimObjectVector([v(**kwargs) for v in self]) --- 1292 unchanged lines hidden --- | 188 return self[0].unproxy(base) 189 else: 190 return [v.unproxy(base) for v in self] 191 192class SimObjectVector(VectorParamValue): 193 # support clone operation 194 def __call__(self, **kwargs): 195 return SimObjectVector([v(**kwargs) for v in self]) --- 1292 unchanged lines hidden --- |