Skip to content

Experiment method get_section_voxels() throws AttributeError #34

Description

@alex-schaaf
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()

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions