812dbd67a1517a6fdc242f86bf19dfe6851c9437,trunk/SUAVE/Analyses/Mission/Segments/Conditions/Conditions.py,Conditions,expand_rows,#Conditions#,98
Before Change
if 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
// to have given row length
for k,v in self.items():
try:
rank = v.ndim
except:
rank = 0
// recursion
if isinstance(v,Conditions):
v.expand_rows(rows)
// need arrays here
elif rank == 2:
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 6
Instances 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: 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
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