Add options for different compression levels for parquet files #153
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request includes several changes to the
pyprobe
project, focusing on adding new functionality for compression options and refactoring the code to improve clarity and maintainability.New Functionality:
performance
,file size
,uncompressed
) when converting files to PyProBE format. ([[1]](https://github.com/ImperialCollegeLondon/PyProBE/pull/153/files#diff-441aec132d927ef70cd9824112874874d1fb11d9d8bc0604c3b492ed3ad9a7c8L64-R110)
,[[2]](https://github.com/ImperialCollegeLondon/PyProBE/pull/153/files#diff-441aec132d927ef70cd9824112874874d1fb11d9d8bc0604c3b492ed3ad9a7c8R122-R207)
,[[3]](https://github.com/ImperialCollegeLondon/PyProBE/pull/153/files#diff-441aec132d927ef70cd9824112874874d1fb11d9d8bc0604c3b492ed3ad9a7c8R217-R219)
,[[4]](https://github.com/ImperialCollegeLondon/PyProBE/pull/153/files#diff-441aec132d927ef70cd9824112874874d1fb11d9d8bc0604c3b492ed3ad9a7c8R241-L162)
)process_cycler_file
andprocess_generic_file
methods to include thecompression_priority
parameter. ([[1]](https://github.com/ImperialCollegeLondon/PyProBE/pull/153/files#diff-441aec132d927ef70cd9824112874874d1fb11d9d8bc0604c3b492ed3ad9a7c8L64-R110)
,[[2]](https://github.com/ImperialCollegeLondon/PyProBE/pull/153/files#diff-441aec132d927ef70cd9824112874874d1fb11d9d8bc0604c3b492ed3ad9a7c8R217-R219)
)Code Refactoring:
_convert_to_parquet
to simplify theprocess_cycler_file
andprocess_generic_file
methods. ([[1]](https://github.com/ImperialCollegeLondon/PyProBE/pull/153/files#diff-441aec132d927ef70cd9824112874874d1fb11d9d8bc0604c3b492ed3ad9a7c8L64-R110)
,[[2]](https://github.com/ImperialCollegeLondon/PyProBE/pull/153/files#diff-441aec132d927ef70cd9824112874874d1fb11d9d8bc0604c3b492ed3ad9a7c8R217-R219)
)_write_parquet
method to accept acompression
parameter and use it when writing the parquet file. ([pyprobe/cell.pyR323-R335](https://github.com/ImperialCollegeLondon/PyProBE/pull/153/files#diff-441aec132d927ef70cd9824112874874d1fb11d9d8bc0604c3b492ed3ad9a7c8R323-R335)
)Documentation and Examples:
comparing-pyprobe-performance.ipynb
notebook to demonstrate the new compression options and their performance. ([[1]](https://github.com/ImperialCollegeLondon/PyProBE/pull/153/files#diff-f97df501eeb86d9944940d597c2c80a87b666e5ecd0715eb1cd37238964dc9e1R326-R334)
,[[2]](https://github.com/ImperialCollegeLondon/PyProBE/pull/153/files#diff-f97df501eeb86d9944940d597c2c80a87b666e5ecd0715eb1cd37238964dc9e1R357-R397)
)Testing:
test_process_cycler_file
test case to include thecompression_priority
andoverwrite_existing
parameters. ([tests/test_cell.pyL76-R83](https://github.com/ImperialCollegeLondon/PyProBE/pull/153/files#diff-5f57142fa1c2be045e3012de7f735da962b090fe45c8957a3deef79bb4819677L76-R83)
)