JuliaIO / JuliaIO/MAT.jl

Cannot read v5 logical array with byteswap

Open
#147 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Julia
Stars
293
Forks
79
PR merge metrics
No merged PRs in 30d

Description

I have a matlab logical array that seems to require swap_bytes=true to read. When I try and read it, I get a method error that it can't find a definition for bswap(::Bool). Should this just be a no-op?

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce reading a MATLAB v5 logical array with swap_bytes=true and follow the bswap(::Bool) error to the byteswap handling. Confirm that logical values can be read successfully when byteswapping is requested, with no method error and unchanged Boolean values.

Written by the indexing model from the issue text.

Assessment

Tech stack
julia, matlab
Domain
data
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.