with path.open("r", encoding="utf-8", newline="") as f: ...
Paper on arXive: Link. Paper on Science Direct: Link. DeepAngle is a machine learning-based method to determine the contact angles of different phases in the tomography images of porous materials.