Material Interactions

delphin_6_automation.database_interactions.material_interactions.change_material_location(delphin_object: delphin_6_automation.database_interactions.db_templates.delphin_entry.Delphin) → str[source]

Changes the location of the material database location for the Delphin Project file.

Parameters:delphin_object – ID of entry
Returns:ID of entry
delphin_6_automation.database_interactions.material_interactions.download_materials(delphin_object: delphin_6_automation.database_interactions.db_templates.delphin_entry.Delphin, path: str) → None[source]

Downloads the materials of a Delphin Project

Parameters:
  • delphin_object – Delphin entry ID
  • path – Path to save to
Returns:

None

delphin_6_automation.database_interactions.material_interactions.find_material_ids(project_materials: list) → list[source]

Find ids of given material entries based on material name and material unique id.

Parameters:project_materials – List tuples with material file names and unique material ids
Returns:list with material entries
delphin_6_automation.database_interactions.material_interactions.get_material_info(material_id: int) → dict[source]

Get the material info for a material in the database given a Delphin Material ID

delphin_6_automation.database_interactions.material_interactions.list_project_materials(delphin_document: delphin_6_automation.database_interactions.db_templates.delphin_entry.Delphin) → list[source]

Returns a list with the materials in a project entry.

Parameters:delphin_document – Delphin entry
Returns:List tuples with material file names and unique material ids
delphin_6_automation.database_interactions.material_interactions.upload_material_file(material_path: str) → <mongoengine.base.fields.ObjectIdField object at 0x000001AD7C662898>[source]

Uploads a Delphin file to a database.rst.

Parameters:material_path – Path to a Delphin 6 material project file
Returns:Database entry id
delphin_6_automation.database_interactions.material_interactions.upload_materials_from_folder(user_path_input: str) → List[str][source]

Upload the Delphin material files located in a given folder