diff --git a/scaleapi/__init__.py b/scaleapi/__init__.py index 247033d..56ea5a0 100644 --- a/scaleapi/__init__.py +++ b/scaleapi/__init__.py @@ -456,7 +456,8 @@ def create_batch( project: str, batch_name: str, callback: str = "", - instruction_batch: bool = False, + calibration_batch: bool = False, + self_label_batch: bool = False, ) -> Batch: """Create a new Batch within a project. https://docs.scale.com/reference#batch-creation @@ -469,10 +470,14 @@ def create_batch( callback (str, optional): Email to notify, or URL to POST to when a batch is complete. - instruction_batch (bool): + calibration_batch (bool): Only applicable for self serve projects. - Create an instruction batch by setting - the instruction_batch flag to true. + Create a calibration_batch batch by setting + the calibration_batch flag to true. + self_label_batch (bool): + Only applicable for self serve projects. + Create a self_label batch by setting + the self_label_batch flag to true. Returns: Batch: Created batch object @@ -481,7 +486,8 @@ def create_batch( payload = dict( project=project, name=batch_name, - instruction_batch=instruction_batch, + calibration_batch=calibration_batch, + self_label_batch=self_label_batch, callback=callback, ) batchdata = self.api.post_request(endpoint, body=payload) diff --git a/scaleapi/_version.py b/scaleapi/_version.py index b39641e..59e8317 100644 --- a/scaleapi/_version.py +++ b/scaleapi/_version.py @@ -1,2 +1,2 @@ -__version__ = "2.3.0" +__version__ = "2.4.0" __package_name__ = "scaleapi"