26d3f69fd260c2604e928e44bc68b3a00d69e4c2,trunk/SUAVE/Analyses/Mission/Segments/Conditions/State.py,State,expand_rows,#State#Any#,66
Before Change
elif isinstance(v,Conditions):
v.expand_rows(rows)
// need arrays here
elif np.rank(v) == 2:
self[k] = np.resize(v,[rows,v.shape[1]])
//: if type
//: for each key,value
After Change
self._size = rows
for k,v in self.items():
try:
rank = v.ndim
except:
rank = 0
// don"t expand initials or numerics
if k in ("initials","numerics"):
continue
// recursion
In pattern: SUPERPATTERN
Frequency: 5
Non-data size: 6
Instances Project Name: suavecode/SUAVE
Commit Name: 26d3f69fd260c2604e928e44bc68b3a00d69e4c2
Time: 2020-01-10
Author: mclarke2@stanford.edu
File Name: trunk/SUAVE/Analyses/Mission/Segments/Conditions/State.py
Class Name: State
Method Name: expand_rows
Project Name: suavecode/SUAVE
Commit Name: 812dbd67a1517a6fdc242f86bf19dfe6851c9437
Time: 2020-01-15
Author: mclarke2@stanford.edu
File Name: trunk/SUAVE/Analyses/Mission/Segments/Conditions/Conditions.py
Class Name: Conditions
Method Name: expand_rows
Project Name: suavecode/SUAVE
Commit Name: 26d3f69fd260c2604e928e44bc68b3a00d69e4c2
Time: 2020-01-10
Author: mclarke2@stanford.edu
File Name: trunk/SUAVE/Analyses/Mission/Segments/Conditions/Conditions.py
Class Name: Conditions
Method Name: expand_rows
Project Name: suavecode/SUAVE
Commit Name: 387c3077440507992d20b8b3c391fc1bef72361b
Time: 2020-01-14
Author: mclarke2@stanford.edu
File Name: trunk/SUAVE/Analyses/Mission/Segments/Conditions/Conditions.py
Class Name: Conditions
Method Name: expand_rows
Project Name: suavecode/SUAVE
Commit Name: 812dbd67a1517a6fdc242f86bf19dfe6851c9437
Time: 2020-01-15
Author: mclarke2@stanford.edu
File Name: trunk/SUAVE/Analyses/Mission/Segments/Conditions/State.py
Class Name: State
Method Name: expand_rows