DLR-AE / CampbellViewer

Unified plotting tool for Campbell diagrams, processing results of wind turbine simulation tools HAWCStab2 and Bladed
Apache License 2.0
2 stars 1 forks source link

"Plot amplitudes of highlighted modes" result in an error #17

Closed hach-ol-dlr closed 1 year ago

hach-ol-dlr commented 2 years ago

When selecting from the tools menu, the following error occurs, if a mode is highlighted or not.

Traceback (most recent call last):
  File "D:/hach_ol/CampbellViewer/code/campbellviewer/CampbellViewer.py", line 1281, in amplitudes_of_highlights
    self.initAmplitudes(popup=False)
  File "D:/hach_ol/CampbellViewer/code/campbellviewer/CampbellViewer.py", line 1303, in initAmplitudes
    self.updateAmplitudes()
  File "D:/hach_ol/CampbellViewer/code/campbellviewer/CampbellViewer.py", line 1317, in updateAmplitudes
    self.AmplitudeWindow.configure_plotAMP(self.settingsAMPtool,
  File "D:/hach_ol/CampbellViewer/code/campbellviewer/CampbellViewer.py", line 513, in configure_plotAMP
    self.AMPmode_name = database[requested_toolname][requested_datasetname].ds.modes.values[settingsAMPmode].name
AttributeError: 'numpy.ndarray' object has no attribute 'name'
hendrikverdonck commented 2 years ago

Further issues to fix: