Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migration guide from dlisio v0.2.x -> v.0.3.x #339

Open
ErlendHaa opened this issue Mar 9, 2021 · 0 comments
Open

Migration guide from dlisio v0.2.x -> v.0.3.x #339

ErlendHaa opened this issue Mar 9, 2021 · 0 comments

Comments

@ErlendHaa
Copy link
Contributor

ErlendHaa commented Mar 9, 2021

Migration guide from dlisio v0.2.x -> v.0.3.x

dlisio v0.3.0 introduce breaking changes to dlisio's main entry point dlisio.load, which is moved to the submodule dlis. After updating to v0.3.0 all scripts must be updated accordingly:

import dlisio

with dlisio.load(path) as files:
    pass

->

from dlisio import dlis

with dlis.load(path) as files:
    pass

The are other breaking changes the Python API as well. All are related to the restructuring of the python module between v0.2.6 and v0.3.0.

  • DLIS object types such as Frame, Channel, Tool etc is moved from dlisio.plumbing to dlisio.dlis
  • Other DLIS utilities previously residing under dlisio.plumbing are moved to dlisio.dlis.utils. The submodule dlisio.plumbing has ceased to exist.
  • dlisio.set_encodings and dlisio.get_encodings are moved to dlisio.common.
  • dlisio.errors.ErrorHandler is moved to dlisio.common. The submodule dlisio.errors has ceased to exist.

The reason for the restructuring, and the breaking changes, is to make room for dlisio's new Log Interchange Standard 79 (LIS79) reader that is introduces in v0.3.0. Please refer to the readthedocs for documentation on the new LIS reader.

@ErlendHaa ErlendHaa pinned this issue Mar 9, 2021
@ErlendHaa ErlendHaa changed the title Migration guide from dlisio v0.2.6 -> v.0.3.0 Migration guide from dlisio v0.2.* -> v.0.3.* Mar 10, 2021
@ErlendHaa ErlendHaa changed the title Migration guide from dlisio v0.2.* -> v.0.3.* Migration guide from dlisio v0.2.x -> v.0.3.x Mar 10, 2021
@achaikou achaikou unpinned this issue Oct 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant