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

Commit

Permalink
IO: Lin: Pull operating points from linearization file
Browse files Browse the repository at this point in the history
  • Loading branch information
dzalkind committed Oct 26, 2023
1 parent 4ede325 commit 06eb75b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pyFAST/linearization/linfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -286,16 +286,20 @@ def ReadFASTLinear(filename, starSub=None, removeStatesPattern=None):
data['x_desc'] = f['x_info']['Description']
data['xdot_desc'] = f['xdot_info']['Description']
data['n_x2'] = np.sum(data['x_DerivOrder']== 2)
data['x_op'] = f['x']
else:
data['n_x2'] = 0;
if data['n_z']>0:
data['z_desc'] = f['z_info']['Description']
data['z_op'] = f['z']
if data['n_u']>0:
data['u_rotFrame'] = f['u_info']['RotatingFrame']
data['u_desc'] = f['u_info']['Description']
data['u_op'] = f['u']
if data['n_y']>0:
data['y_rotFrame'] = f['y_info']['RotatingFrame']
data['y_desc'] = f['y_info']['Description']
data['y_op'] = f['y']
for k in ['A','B','C','D']:
if k in f.keys():
data[k] = f[k]
Expand Down

0 comments on commit 06eb75b

Please sign in to comment.