Skip to content

Commit 3a5cfc0

Browse files
committed
メソッド名とendpointを調整
1 parent b94d8d4 commit 3a5cfc0

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
- [PCD](#pcd)
2020
- [Sequential PCD](#sequential-pcd)
2121
- [DICOM](#dicom)
22+
- [Robotics](#robotics)
2223
- [Common](#common)
2324
- [Appendix](#appendix)
2425
- [Annotation](#annotation)
@@ -2064,18 +2065,18 @@ Example of a single dicom task object
20642065
}
20652066
```
20662067

2067-
### Task without Content
2068+
### Robotics
20682069

20692070
Supported following project types:
20702071

20712072
- Robotics - Task Classification
20722073

20732074
#### Create Tasks
20742075

2075-
Create a new task.
2076+
Create a new task (Content creation is required separately).
20762077

20772078
```python
2078-
task_id = client.create_task_without_content(
2079+
task_id = client.create_robotics_task(
20792080
project="YOUR_PROJECT_SLUG",
20802081
name="TASK_NAME",
20812082
)

fastlabel/__init__.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1975,7 +1975,7 @@ def create_sequential_pcd_task(
19751975

19761976
return self.api.post_request(endpoint, payload=payload)
19771977

1978-
def create_task_without_content(
1978+
def create_robotics_task(
19791979
self,
19801980
project: str,
19811981
name: str,
@@ -1986,8 +1986,7 @@ def create_task_without_content(
19861986
**kwargs,
19871987
) -> str:
19881988
"""
1989-
Create a single task without content.
1990-
Currently only supports robotics projects.
1989+
Create a single robotics task without content.
19911990
19921991
project is slug of your project (Required).
19931992
name is an unique identifier of task in your project (Required).
@@ -2007,7 +2006,7 @@ def create_task_without_content(
20072006
external_reviewer is slug of external review user (Optional).
20082007
external_approver is slug of external approve user (Optional).
20092008
"""
2010-
endpoint = "tasks/without-content"
2009+
endpoint = "tasks/robotics"
20112010

20122011
payload = {"project": project, "name": name}
20132012
if status:

0 commit comments

Comments
 (0)