INNER CODE UNIT · Python
handle_new_object
allenai/objaverse-xl · scripts/rendering/main.py:211
def handle_new_object(
local_path: str,
file_identifier: str,
sha256: str,
metadata: Dict[str, Any],
log_file: str = "handle-new-object.csv",
) -> None:
"""Called when a new object is found.
Here, the object is not used in Objaverse-XL, but is still downloaded with the
repository. The object may have not been used because it does not successfully
import into Blender. If None, the object will be downloaded, but nothing will be
done with it.
Args:
local_path (str): Local path to the downloaded 3D object.
file_identifier (str): The file identifier of the new 3D object.
sha256 (str): SHA256 of the contents of the 3D object.