Skip to content

Commit ed4d94f

Browse files
committed
update
1 parent d082504 commit ed4d94f

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

src/lightning/data/processing/data_processor.py

+1
Original file line numberDiff line numberDiff line change
@@ -974,6 +974,7 @@ def run(self, data_recipe: DataRecipe) -> None:
974974
result = data_recipe._done(len(user_items), self.delete_cached_files, self.output_dir)
975975

976976
if num_nodes == node_rank + 1 and self.output_dir.url and _IS_IN_STUDIO:
977+
assert self.output_dir.path
977978
_create_dataset(
978979
input_dir=self.input_dir.path,
979980
storage_dir=self.output_dir.path,

src/lightning/data/processing/utilities.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -17,19 +17,19 @@
1717

1818

1919
def _create_dataset(
20-
input_dir: str,
20+
input_dir: Optional[str],
2121
storage_dir: str,
2222
dataset_type: V1DatasetType,
2323
empty: Optional[bool] = None,
2424
size: Optional[int] = None,
25-
num_bytes: Optional[int] = None,
25+
num_bytes: Optional[str] = None,
2626
data_format: Optional[Union[str, Tuple[str]]] = None,
2727
compression: Optional[str] = None,
28-
num_chunks: Optional[str] = None,
28+
num_chunks: Optional[int] = None,
2929
num_bytes_per_chunk: Optional[List[int]] = None,
3030
name: Optional[str] = None,
3131
version: Optional[int] = None,
32-
):
32+
) -> None:
3333
"""Create a dataset with metadata information about its source and destination."""
3434
project_id = os.getenv("LIGHTNING_CLOUD_PROJECT_ID", None)
3535
cluster_id = os.getenv("LIGHTNING_CLUSTER_ID", None)

0 commit comments

Comments
 (0)