Closed 1codecopyer closed 1 year ago
I modify the parameters in the code (such as num_obs=AA_1. shape [1], or modify if num_obs<2) to ensure that the else condition is true, with the aim of running the code afterelse
. However, the code still reported an error, and the error prompt is:
This should be posted to the python-toolbox repository, not here. https://github.com/OpenFAST/python-toolbox/issues
Hello, everyone. When I used Git to clone python- toolbox from OpenFAST repository and run the plot _ directivity.py , an official example under subpackage called aeroacoustics. Although it can run, I am puzzled by the running results, as shown in the figure:
Viewing input file IEA LB RWT AeroAcoustics_ 1. out, where the parameter Number of observers and the number of data columns obs are 2
The condition num_ obs<3 is true, run the 'print ("Error: Need at least 3 observers to generate contour.")' code (i.e. the tricontourf function has not been executed)
The important parameter num obs is affected by ` AA 1. Shape [1] ` . I debug found AA 1. shape [1]==3, AA 1. shape [1] -1<3
Later, I tried other input files such as IEA LB RWT AeroAcoustics i. out (i=1 2 3 4), found that Number of observers: 2, all satisfy num obs<3
Summary: This code can only run under conditions that meet numobs < 3 .The code has an output result of
print ("Error: Need at least 3 observers to generate source.")
, which does not allow for the normal implementation of the source plot of SPL for each location function. Is plot directivity.py needs to modify , If so, how can I modify it?