Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[DL-815] Unifying src_token and dest_token to token #2038

Merged
merged 9 commits into from
Dec 9, 2022
Merged

[DL-815] Unifying src_token and dest_token to token #2038

merged 9 commits into from
Dec 9, 2022

Conversation

adolkhan
Copy link
Contributor

@adolkhan adolkhan commented Dec 5, 2022

🚀 🚀 Pull Request

Checklist:

  • My code follows the style guidelines of this project and the Contributing document
  • I have commented my code, particularly in hard-to-understand areas
  • I have kept the coverage-rate up
  • I have performed a self-review of my own code and resolved any problems
  • I have checked to ensure there aren't any other open Pull Requests for the same change
  • I have described and made corresponding changes to the relevant documentation
  • New and existing unit tests pass locally with my changes

Changes

Changed src_token, dest_token to token in copy and deepcopy



class UnsupportedParameterException(Exception):
def __init__(self, message):
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
def __init__(self, message):
pass


Returns:
Dataset: New dataset object.

Raises:
DatasetHandlerError: If a dataset already exists at destination path and overwrite is False.
UnsupportedParameterException: If parameter that is no longer supported is beeing called.
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
UnsupportedParameterException: If parameter that is no longer supported is beeing called.
UnsupportedParameterException: If a parameter that is no longer supported is specified.

@@ -27,11 +27,11 @@ deeplake.api.dataset

See :func:`deeplake.like`.

.. staticmethod:: copy(src: Union[str, pathlib.Path, Dataset], dest: Union[str, pathlib.Path], tensors: Optional[List[str]] = None, overwrite: bool = False, src_creds=None, src_token=None, dest_creds=None, dest_token=None, num_workers: int = 0, scheduler="threaded", progressbar=True)
.. staticmethod:: copy(src: Union[str, pathlib.Path, Dataset], dest: Union[str, pathlib.Path], tensors: Optional[List[str]] = None, overwrite: bool = False, src_creds=None dest_creds=None, num_workers: int = 0, scheduler="threaded", progressbar=True)
Copy link
Contributor

Choose a reason for hiding this comment

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

add token


See :func:`deeplake.copy`.

.. staticmethod:: deepcopy(src: Union[str, pathlib.Path], dest: Union[str, pathlib.Path], tensors: Optional[List[str]] = None, overwrite: bool = False, src_creds=None, src_token=None, dest_creds=None, dest_token=None, num_workers: int = 0, scheduler="threaded", progressbar=True, public: bool = False, verbose: bool = True)
.. staticmethod:: deepcopy(src: Union[str, pathlib.Path], dest: Union[str, pathlib.Path], tensors: Optional[List[str]] = None, overwrite: bool = False, src_creds=None, dest_creds=None, num_workers: int = 0, scheduler="threaded", progressbar=True, public: bool = False, verbose: bool = True)
Copy link
Contributor

Choose a reason for hiding this comment

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

add token

docs/source/deeplake.api.dataset.rst Outdated Show resolved Hide resolved
@adolkhan adolkhan merged commit a6ce856 into main Dec 9, 2022
@adolkhan adolkhan deleted the dl-815 branch December 9, 2022 05:59
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.

5 participants