This repository has been archived by the owner on Nov 27, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 63
There is a problem with TurbSimFile writing #79
Labels
question
Further information is requested
Comments
`class replacement_bts_data(QThread):
This is the code that I call the function |
Hi, ts = TurbSimFile('file.bts')
ts['u']=np.random.randn(*ts['u'].shape)
ts['u'][0]+=10
ts.write('aaaaaa.bts')
ts2 = TurbSimFile('aaaaaa.bts')
abs_error = np.abs(ts2['u'].flatten()-ts['u'].flatten())
print('abs error:',np.max(abs_error), np.mean(abs_error)) I would advise to simplify your case and see if the problem persists. Let us know if you find out what's happening. Feel free to submit a fix. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Dear all
I had some problems when I used the pyFAST library to replace the data with turbsim, I was confused, when I used this function alone, the output file was fine, but when I called it in other programs, the replaced data was not correct
Below is my function code, any help would be greatly appreciated
![2023-11-23 11-21-53屏幕截图](https://private-user-images.githubusercontent.com/111359446/285092764-f6e31b82-f297-444e-bcb8-782a33f84aaa.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjAzNjMyMDgsIm5iZiI6MTcyMDM2MjkwOCwicGF0aCI6Ii8xMTEzNTk0NDYvMjg1MDkyNzY0LWY2ZTMxYjgyLWYyOTctNDQ0ZS1iY2I4LTc4MmEzM2Y4NGFhYS5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwNzA3JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDcwN1QxNDM1MDhaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1hNWUyZWNmMmY0MGMyOTVlNjJjYWE0ZGNkYTc5ZDk3MGYxNjQyZWNmYjEyN2VhMWJlZmU2YjU2YmY4M2I4MmI5JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.T3oQxjD2xaVLrVLf2uWuE8YDXx3Npez2BXG3OyVE9Uk)
![2023-11-23 11-23-00屏幕截图](https://private-user-images.githubusercontent.com/111359446/285092989-4b91a0f9-c16e-4253-a86d-265bdb359e9a.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjAzNjMyMDgsIm5iZiI6MTcyMDM2MjkwOCwicGF0aCI6Ii8xMTEzNTk0NDYvMjg1MDkyOTg5LTRiOTFhMGY5LWMxNmUtNDI1My1hODZkLTI2NWJkYjM1OWU5YS5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwNzA3JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDcwN1QxNDM1MDhaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT00NmJlNDEzNzgzODQ5ZDA2YTRlNTZmZDAyODYzMGM3ZTBhYWYwZjhlZmZmZjI2ZmQ2OGYyZTRkYjE1NGNiODA1JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.JGJN43jN2c9_rWzkmhMgooFA9igVwfH9kXZGCcC7ftA)
bts_change .txt
The text was updated successfully, but these errors were encountered: