Repository navigation
Conversation
OpenFAST writes uncompressed binary outputs (OutFileFmt=4, FileID 3) as unscaled float64 values. For these files ColScl and ColOff are (NumOutChans, 1) arrays, so the non-buffered path, which is the default, failed with "operands could not be broadcast together". Skip the scaling for FileID 3, as welib does since 9d7b720. The new example file is a 0.1 s IEA-15-240-RWT-UMaineSemi run with three ElastoDyn channels, written by OpenFAST v4.2.1. Fixes OpenFAST#41. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #41.
OpenFAST writes uncompressed binary outputs (
OutFileFmt = 4, FileID 3) as unscaled float64 values. For these filesColSclandColOffare(NumOutChans, 1)arrays, so the default non-buffered read ofFASTOutputFilefailed withoperands could not be broadcast together, and onlyuse_buffer=Trueworked. The scaling step is now skipped for FileID 3, as welib does since ebranlard/welib@9d7b720.Tests
FASTOutBin_ID3.outb(599 bytes): a 0.1 s IEA-15-240-RWT-UMaineSemi run with three ElastoDyn channels, written by OpenFAST v4.2.1.test_001_read_allnow reads it, and the new test checks time andTwrBsFxtagainst the text output of the same run and compares with buffered reading. Both fail onmainwith the error from Dimension Mismatch Error When Using FASTOutputFile.toDataFrame(): operands could not be broadcast together with shapes (4801,138) (138,1) #41.mix,numpy,struct,optimand buffered reads all match the.outfile within its precision (4.9e-8 relative).test_fast_output.py4 passed. In the full suite, the airfoil tests that fail under pandas 3 (read-only arrays) and some example scripts fail the same way with and without this change.🤖 Generated with Claude Code