celerity / celerity/ndzip

Issue with Input file size and chunk size

Open
#6 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
76
Forks
18
PR merge metrics
No merged PRs in 30d

Description

Hi,
I've been trying to use build/compress with an example file i generated in python, as below. I keep getting the error

> "Input file size is not a multiple of the chuink size"

i've tried many different values for -n but none seem to work, the last being

> build/compress -i example_file.txt -o compressed_example_file.txt -n 512 1

Do you have a solution for this?
Also, is it possible to provide a super simple example file to show how the input should look and how the command for said file should look so someone that is new to C++ tools like myself can get some more help

```
import numpy as np

a = np.arange(1, 1024000, 1, dtype=float)

with open("example_file.txt", "w") as f:
for i in a:
f.write(f"{i}, ")

f.close()
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.