Skip to content
This repository was archived by the owner on Nov 27, 2023. It is now read-only.

Commit 85cb32b

Browse files
authored
Merge pull request #76 from dzalkind/lin_ops
Pull operating points from linearization file
2 parents 4ede325 + 06eb75b commit 85cb32b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

pyFAST/linearization/linfile.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -286,16 +286,20 @@ def ReadFASTLinear(filename, starSub=None, removeStatesPattern=None):
286286
data['x_desc'] = f['x_info']['Description']
287287
data['xdot_desc'] = f['xdot_info']['Description']
288288
data['n_x2'] = np.sum(data['x_DerivOrder']== 2)
289+
data['x_op'] = f['x']
289290
else:
290291
data['n_x2'] = 0;
291292
if data['n_z']>0:
292293
data['z_desc'] = f['z_info']['Description']
294+
data['z_op'] = f['z']
293295
if data['n_u']>0:
294296
data['u_rotFrame'] = f['u_info']['RotatingFrame']
295297
data['u_desc'] = f['u_info']['Description']
298+
data['u_op'] = f['u']
296299
if data['n_y']>0:
297300
data['y_rotFrame'] = f['y_info']['RotatingFrame']
298301
data['y_desc'] = f['y_info']['Description']
302+
data['y_op'] = f['y']
299303
for k in ['A','B','C','D']:
300304
if k in f.keys():
301305
data[k] = f[k]

0 commit comments

Comments
 (0)