Skip to content

Invalid parsing of Oxygen doping?  #2

Description

@lfoppiano

The formula: Bi2Sr2CaCu2O 8+δ is incorrectly parsed by material_parser.parse() as:

composition = {dict: 1} {'composition': OrderedDict([('Bi', '2'), ('Sr', '2'), ('Ca', '1'), ('Cu', '2'), ('O', '8')])}
 'composition' = {OrderedDict: 5} OrderedDict([('Bi', '2'), ('Sr', '2'), ('Ca', '1'), ('Cu', '2'), ('O', '8')])
  'Bi' = {str} '2'
  'Sr' = {str} '2'
  'Ca' = {str} '1'
  'Cu' = {str} '2'
  'O' = {str} '8'
  __len__ = {int} 5
 __len__ = {int} 1

Oxygen should be 8+δ

It seems a problem only with the latest element + amount

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions