Skip to content

fix reading order, fd number was limited#114

Merged
vhaldemar merged 2 commits intoyandex-cloud:masterfrom
GBocharov:fix-datasets-reading-order
Jun 30, 2025
Merged

fix reading order, fd number was limited#114
vhaldemar merged 2 commits intoyandex-cloud:masterfrom
GBocharov:fix-datasets-reading-order

Conversation

@GBocharov
Copy link
Copy Markdown
Collaborator

No description provided.

@ArtoLord ArtoLord requested a review from vhaldemar June 26, 2025 08:52
Comment thread src/yandex_cloud_ml_sdk/_datasets/dataset.py Outdated
Comment thread src/yandex_cloud_ml_sdk/_datasets/dataset.py Outdated
urls = await self._get_download_urls(timeout=timeout)

def key_comparator(item) -> tuple[int, int | str]:
k, _ = item
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Мне не нравится переменная к, потому что я так не понимаю, а что именно в ней находится (но догадываюсь)

Comment thread src/yandex_cloud_ml_sdk/_datasets/dataset.py
Comment thread src/yandex_cloud_ml_sdk/_datasets/dataset.py Outdated
Comment thread src/yandex_cloud_ml_sdk/_datasets/dataset.py Outdated
base_path: Path,
exist_ok: bool,
timeout: float,
max_parallel_downloads: int = 10
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Дефолтное значение в приватном методе, мне кажется, излишне

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Пока оставил, чтобы тесты не менять. Или все-таки убрать?

Comment thread src/yandex_cloud_ml_sdk/_datasets/dataset.py Outdated
@GBocharov GBocharov requested a review from vhaldemar June 30, 2025 09:41
@vhaldemar vhaldemar merged commit b3aed5b into yandex-cloud:master Jun 30, 2025
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants