Skip to content

CtfReader doesn't parse space group and comment of a phase when Internal1 and Internal2 are empty #16

@LudovicDrtt

Description

@LudovicDrtt

I'm trying to read a ctf file where the phase is defined as follow

Phases	1
2.866;2.866;2.866	90.000;90.000;90.000	bcc	11	229			Phase comment

with the fields Internal1 and Internal2 empty.

However, when I load the file, the parser doesn't read the space group and the comment and it defined the following phase (print with the method CtfPhase::printSelf) :

LatticeConstants 2.866, 2.866, 2.866 90, 90, 90
PhaseName bcc
LaueGroup 11
SpaceGroup 0
Internal1 
Internal2 
Comment

But if I fill the Internal1 and Internal2 fields with a space character, the phase is correctly read and CtfPhase::printSelf give :

LatticeConstants 2.866, 2.866, 2.866 90, 90, 90
PhaseName bcc
LaueGroup 11
SpaceGroup 229
Internal1  
Internal2  
Comment Phase comment

I'm using EbsdLib 1.0.22, download from github and compile by myself.

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