Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reader always has the data array with full size, regardless of the number of agents being read with the "headers" keyword #232

Closed
gvidigal-psr opened this issue Nov 29, 2024 · 0 comments · Fixed by #233

Comments

@gvidigal-psr
Copy link

When reading a file using PSRI.OpenBinary.Reader and the keywords use_header = true and headers, the data has the original size of all file agents.

e.g.:
agents = ["x", "y", "z"]
data = [1, 2, 3]
headers = ["x", y"]

expected value for reader.data: [1, 2]
actual value: [1, 2, 0]

julia> versioninfo()
Julia Version 1.9.3
Commit bed2cd540a (2023-08-24 14:43 UTC)
Build Info:
  Official https://julialang.org/ release
Platform Info:
  OS: Windows (x86_64-w64-mingw32)
  CPU: 8 × Intel(R) Core(TM) i7-8550U CPU @ 1.80GHz
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-14.0.6 (ORCJIT, skylake)
  Threads: 1 on 8 virtual cores

(PSRClassesInterface) pkg> st PSRClassesInterface
Project PSRClassesInterface v0.11.0
No Matches in `D:\Repositorios\PSRClassesInterface.jl\Project.toml`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant