charlesdaniels / bitshuffle

BSD 3-Clause "New" or "Revised" License
5 stars 0 forks source link

`python bitshuffle/bitshuffle.py < file` should work #55

Open jyn514 opened 6 years ago

jyn514 commented 6 years ago

Would involve changing infer_mode. Should be fairly easy to change.

Jeremy:

I expected python bitshuffle/bitshuffle.py < file to [encode the input file] if I put in an encoded file I would expect it to decode

Me:

for that we'd have to look through the file before we decode it grep ((<<.*>>)) isn't terribly hard though

jyn514 commented 6 years ago

Looking at this again, it's easy to to always encode but significantly harder to infer (since input may not always be grepable. Think I'll wait on smart inferrence until we handle https://github.com/charlesdaniels/bitshuffle/issues/16 and https://github.com/charlesdaniels/bitshuffle/issues/54