Skip to content

Grain class in the ebsd module #132

@nimanikpoorbadr

Description

@nimanikpoorbadr

Hi all.
Thank yo for this amazing software.

I have ran into a problem with the ebsd module, as below:

The Grain class takes two arguments "grainID and ebsd.Map", and should inherit the objects that exist in the ebsd.Map.
But I think this does NOT happen.

The problem starts with running the crystalSym function, which is defined as below:

def crystalSym(self):
return self.phase.crystalStructure.name

After calling this function, it shows the below error:
AttributeError: 'Grain' object has no attribute 'phase'.

I think the "crystalStructure.name" should be inherited from the Phase class in the defdap.Crystal module, which is already called in the ebsd.Map class. But it seems the code does NOT pass the information from the ebsd.Map class into the ebsd.Grain class.

Since the crystalSym does not run, all subsequent functions of the Grain class that use that function do not run accordingly.

Thank you.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions