Material Parser

class delphin_6_automation.file_parsing.material_parser.MyNumber(val)[source]

Makes it possible to have 3 digits after the e of a scientific notation.

delphin_6_automation.file_parsing.material_parser.dict_to_m6(material: dict, path: str) → bool[source]

Takes an material dict and converts it into a .m6 file.

Parameters:
  • material – material dict
  • path – Path to where .m6 should be placed.
Returns:

True

delphin_6_automation.file_parsing.material_parser.material_file_to_dict(file_path: str) → dict[source]

Converts a material file into a dict