Skip to content

Issue with Input file size and chunk size #6

@pbjarterot

Description

@pbjarterot

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() 

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions