INNER CODE UNIT · Python

process_capsule_data

Future-House/BixBench · bixbench/generate_trajectories.py:87

    async def process_capsule_data(self, zip_filename: str) -> None:
        """
        Process capsule data by downloading and extracting necessary files.

        Args:
            zip_filename: Name of the zip file to process
        """
        zip_path = self.config.local_data_folder / zip_filename
        extract_dir = self.config.local_data_folder / zip_filename.replace(".zip", "")
        # Check if capsule folder exists and is non-empty
        if extract_dir.exists() and any(extract_dir.iterdir()):
            logger.debug(
                "Capsule folder %s already exists and is non-empty", extract_dir.name
            )
            return

        await asyncio.to_thread(
            hf_hub_download,

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…