Version 0.31 (18 May 2023) #575
kinverarity1
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Many improvements to code style and formatting, and the documentation
Fix problem when writing with changed data (different number of depths) #555 - Fix problem when writing with changed data (different number of depths)
Reading las file with TAB DLM in ~version section result in KeyError: 'TAB' #554 / Issue 554: Enable DLM. TAB #556 - Enable DLM (delimiter) TAB
Remove or replace cchardet with chardet #552 - Remove or replace cchardet with chardet
Detect hyphens in data section and adjust regexp_subs as needed #530 - Detect hyphens in data section and adjust regexp_subs as needed
Fix Add SectionItems.get(mnemonic, default, add=False) #322 - provide a way to consistently retrieve header items which may
or may not be present in the header:
If you try ordinary item-style access,
as is normal in Python, a KeyError exception will be raised if it is missing:
A better pattern is to use the
lasio.SectionItems.getmethod, whichallows you to specify a default value in the case of it missing:
You can use the
add=Truekeyword argument if you would like thisheader item to be added, as well as returned:
This discussion was created from the release Version 0.31 (18 May 2023).
Beta Was this translation helpful? Give feedback.
All reactions