Skip to content
This repository has been archived by the owner on Sep 1, 2022. It is now read-only.

Remove internal copy of bz2. #199

Open
dopplershift opened this issue Sep 17, 2015 · 4 comments
Open

Remove internal copy of bz2. #199

dopplershift opened this issue Sep 17, 2015 · 4 comments
Assignees

Comments

@dopplershift
Copy link
Member

dopplershift commented Sep 17, 2015

There's no good reason for us to have an internal copy of the bz2 library to maintain. Just rip it out and replace with standard external dependency.

From TDS-642 and TDS-596.

@dopplershift dopplershift self-assigned this Sep 17, 2015
@JohnLCaron
Copy link
Collaborator

i think the main task is to make sure the use of bz2 in nexrad still works. probably simple to do, but i wasnt sure enough to fix something that was already working. unit tests anyone?

@dopplershift
Copy link
Member Author

There's nothing special about nexrad bz2; it's just a series of directly compressed blocks of bytes along with their sizes. Any bz2 library (e.g. Python) can handle those blocks. Looking at the history of our copy, the only special thing was to modify it re-use some data structure for performance reasons--I'm pretty skeptical this is actually necessarily, or worth the pain of having an entire copy of a standard library.

@dopplershift
Copy link
Member Author

As far as unit tests go, we already read nexrad format files as part of the tests, so we have them. If bz2 were to break, the file would fail to read. But using an external bz2 can't possibly break the correctness of the IOSP.

@JohnLCaron
Copy link
Collaborator

i agree, replace our copy of bz2 library

On Sat, Sep 19, 2015 at 9:11 PM, Ryan May [email protected] wrote:

As far as unit tests go, we already read nexrad format files, so we have
them. If bz2 were to break, the file would fail to read. But using an
external bz2 can't possibly break the correctness of the IOSP.


Reply to this email directly or view it on GitHub
#199 (comment).

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants