Changeset 25836 for issm/trunk/src/m/qmu/setupdesign/QmuSetupResponses.py
- Timestamp:
- 12/08/20 08:45:53 (4 years ago)
- Location:
- issm/trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk
- Property svn:mergeinfo changed
-
issm/trunk/src
- Property svn:mergeinfo changed
-
issm/trunk/src/m/qmu/setupdesign/QmuSetupResponses.py
r24313 r25836 1 from copy import deepcopy 1 2 from MatlabFuncs import * 2 from copy import deepcopy3 from qmupart2npart import qmupart2npart 3 4 4 5 … … 8 9 descriptor = responses.descriptor 9 10 10 # decide whether this is a distributed response, which will drive whether we expand it into npart values,11 # or if we just carry it forward as is.11 # Decide whether this is a distributed response, which will drive whether 12 # we expand it into npart values, or if we just carry it forward as is. 12 13 13 14 #ok, key off according to type of descriptor: 14 15 if strncmp(descriptor, 'scaled_', 7): 15 16 #we have a scaled response, expand it over the partition. 16 #ok, dealing with semi - discrete distributed response. Distribute according to how many 17 #partitions we want 18 for j in range(md.qmu.numberofpartitions): 17 18 # Ok, dealing with semi-discrete distributed response. Distribute 19 # according to how many partitions we want. 20 npart = qmupart2npart(responses.partition) 21 22 for j in range(npart): 19 23 dresp.append(deepcopy(responses)) 20 24 dresp[-1].descriptor = str(responses.descriptor) + '_' + str(j + 1)
Note:
See TracChangeset
for help on using the changeset viewer.