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

Internal changes looking to LAS 3.0 support #106

Merged
merged 11 commits into from
Feb 2, 2016
Merged

Internal changes looking to LAS 3.0 support #106

merged 11 commits into from
Feb 2, 2016

Conversation

kinverarity1
Copy link
Owner

Changing sections internally from OrderedDicts to lists, where some access as a map is implemented in a list subclass (SectionItems).

Passing basic tests but a lot still to clean up.

Made some more radical behind the scenes changes, basically abandoning
dicts internally in favour of a list subclass that also provides some
limited access as a mapping. Much better for LAS 3.
Update

attributes.ipynb

and attributes.ipynb
scratch.ipynb -> notebooks/build LAS file from scratch.ipynb
unwrapped.ipynb -> notebooks/converting LAS file with wrapped data
to unwrapped.ipynb
spreadsheet.ipynb
to Excel.ipynb
(which implements sections as a combined sequence + mapping type)
duplication.ipynb
mnemonic_duplicate-Copy1.ipynb
mnemonic_duplicate.ipynb
All tests passing including those for issue #105

Basic tests on the combined list & mapping SectionItems type are not
yet written.
mnemonic_duplicate-Copy1.ipynb -> notebooks/issues/PR #106 - test
mnemonic_missing_multiple.ipynb
sample_issue105_a.ipynb
sample_issue105_b.ipynb
notebooks/issues/sample_write_sect_widths_20_narrow.ipynb
notebooks/issues/sample_write_sect_widths_20_wide.ipynb
notebooks/issues/test_df_curve_addition_on_export.ipynb
You can now directly assign values to HeaderItems - see the tutorial
notebooks.
attributes.ipynb -> notebooks/basic example of reading a LAS file.ipynb
LAS file.ipynb
Needs some rigorous thinking and work on LASFile.__setattr__ and
__getattr__ and __setitem__ and __getitem__ in order to be able to
cope with LAS 3.0

Nearly there - and then tests.
kinverarity1 added a commit that referenced this pull request Feb 2, 2016
Internal changes looking to LAS 3.0 support
@kinverarity1 kinverarity1 merged commit 39c7442 into master Feb 2, 2016
@kinverarity1
Copy link
Owner Author

New aspects:

  • Sections are now represented by a list subclass SectionItems, which contains only HeaderItems (or in the future subclasses of that)
  • Sections are kept in LASFile.sections dictionary - the LASFile.well etc dictionaries are properties that send you to LASFile.sections['Well']

@kinverarity1 kinverarity1 deleted the curves branch February 2, 2016 05:04
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

Successfully merging this pull request may close these issues.

1 participant