Skip to content

'MaterialParserBuilder' object has no attribute 'addPreprocessing' #43

@george-ts-github

Description

@george-ts-github

Installed this version of Material Parser. However, unable to run the code given in example.py

Getting the error message as follows:

TypeError Traceback (most recent call last)
in
----> 1 mp = (MaterialParserBuilder().add_preprocessing(AdditivesProcessing())
2 .add_preprocessing(ChemicalNameProcessing())
3 .add_preprocessing(PhaseProcessing())
4 .add_preprocessing(MixtureProcessing())
5 .add_postprocessing(SubstituteAdditives())

TypeError: init() missing 1 required positional argument: 'regex_parser'

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