Skip to content

Commit

Permalink
fixing test
Browse files Browse the repository at this point in the history
  • Loading branch information
SteveDoyle2 committed Dec 1, 2024
1 parent 3e7204a commit 16714f5
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 11 deletions.
1 change: 1 addition & 0 deletions pyNastran/op2/result_objects/op2_objects.py
Original file line number Diff line number Diff line change
Expand Up @@ -627,6 +627,7 @@ def _build_dataframe_transient_header(self):
column_values = []

data_names = self.data_code['data_names']
#print(f'data_names = {data_names}')
for name in data_names:
#if name == primary_name:
#times = self.da
Expand Down
22 changes: 11 additions & 11 deletions pyNastran/op2/tables/oug/oug.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,17 +66,17 @@ def factor(self) -> int:
def update_mode_cycle(self, name: str):
op2 = self.op2
assert name in {'mode_cycle', 'cycle'}, name
#value = getattr(op2, name)
if op2.eign != 0.0:
#print('table_name=%r mode=%s eign=%g mode_cycle=%g' % (
#op2.table_name, op2.mode, op2.eign, op2.mode_cycle))
omega = np.sqrt(np.abs(op2.eign))

cycles = omega / (2. * np.pi)
setattr(op2, name, cycles)
setattr(op2, 'omega', omega)
op2.data_code['omega'] = omega
op2.data_code[name] = cycles
value = getattr(op2, name)

#print('table_name=%r mode=%s eign=%g %s=%g' % (
#op2.table_name, op2.mode, op2.eign, name, value))
omega = np.sqrt(np.abs(op2.eign))

cycles = omega / (2. * np.pi)
setattr(op2, name, cycles)
setattr(op2, 'omega', omega)
op2.data_code['omega'] = omega
op2.data_code[name] = cycles

def _read_oug1_3(self, data: bytes, ndata: int):
"""reads table 3 (the header table)"""
Expand Down

0 comments on commit 16714f5

Please sign in to comment.