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

Experiment method get_section_voxels() throws AttributeError #34

Open
alex-schaaf opened this issue Jul 6, 2020 · 0 comments
Open

Experiment method get_section_voxels() throws AttributeError #34

alex-schaaf opened this issue Jul 6, 2020 · 0 comments
Labels

Comments

@alex-schaaf
Copy link
Contributor

alex-schaaf commented Jul 6, 2020

exp = pynoddy.experiment.Experiment("history.his")
exp.get_section_voxels()

Throws:

---------------------------------------------------------------------------
AttributeError                            Traceback (most recent call last)
<ipython-input-310-fdb1209cdcb8> in <module>
----> 2 exp.get_section_voxels()

/pynoddy/pynoddy/output.py in get_section_voxels(self, direction, position, **kwds)
    455         """
    456 
--> 457         data = kwds.get('data',self.block)
    458 
    459         if direction == 'x':

AttributeError: 'Experiment' object has no attribute 'block'

Expected behavior
Get a np.ndarray containing the section lithology ids.

Current workaround

tmp_out = exp.get_section()
section, _ = tmp_out.get_section_voxels()
@alex-schaaf alex-schaaf added the bug label Jul 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant