Skip to content

Conversation

@hwaxxer
Copy link
Contributor

@hwaxxer hwaxxer commented Jan 30, 2023

This makes it possible to use this function without setting an environment variable or creating a config file. Currently, calling the function without the environment variable or config file results in an obscure message followed by "Error: Authenticate first"

_error("Authenticate first")
.

…s if environment variable isn't set or there is no config.
Copy link
Contributor

@owencjones owencjones left a comment

Choose a reason for hiding this comment

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

This seems like a good DI-style approach that allows both use cases to work (SDK and CLI). Thanks to @hwaxxer for input on this.

@owencjones owencjones merged commit a2247b9 into v7labs:master Feb 6, 2023
@hwaxxer hwaxxer deleted the fix-get-dataset-auth-error branch February 7, 2023 15:58
balysv added a commit that referenced this pull request Feb 24, 2023
…mports

* master:
  including release in dataset (#534)
  [IO-749][external] Added python support install on 3.7 (#540)
  Io 585 incorrect type annotation (#537)
  [IO-543][internal] Move Imports To Multiprocessing (#521)
  Version bump to 0.8.12
  HOTFIX: Version for unincluded file (#533)
  [IO-683][internal] Fix version parsing (#532)
  [SWAT-753][external]: Fix a 'darwin convert' to mask formats path issue (#531)
  Added nifti to supported formats. (#530)
  [IO-665][internal] Type fixes (#529)
  Allow passing a Client to get_dataset() to avoid authentication errors if environment variable isn't set or there is no config. (#522)
  Version bump to 0.8.11
  Version bump (#528)
  [SWAT-734][Internal] Fixing conversion to darwin_json_1.0 (#523)
  Version_bump_v0.8.9 (#527)
  Updating docs for release process (#525)
  [io-524][internal] Fix for windows builds
  [SWAT-716][internal]: Fix .json extension parsing for dataset splitting (#520)
  [IO-557][internal] Move to use Poetry for packaging and publishing (#512)
balysv added a commit that referenced this pull request Feb 24, 2023
…mports

* master:
  including release in dataset (#534)
  [IO-749][external] Added python support install on 3.7 (#540)
  Io 585 incorrect type annotation (#537)
  [IO-543][internal] Move Imports To Multiprocessing (#521)
  Version bump to 0.8.12
  HOTFIX: Version for unincluded file (#533)
  [IO-683][internal] Fix version parsing (#532)
  [SWAT-753][external]: Fix a 'darwin convert' to mask formats path issue (#531)
  Added nifti to supported formats. (#530)
  [IO-665][internal] Type fixes (#529)
  Allow passing a Client to get_dataset() to avoid authentication errors if environment variable isn't set or there is no config. (#522)
  Version bump to 0.8.11
  Version bump (#528)
  [SWAT-734][Internal] Fixing conversion to darwin_json_1.0 (#523)
  Version_bump_v0.8.9 (#527)
  Updating docs for release process (#525)
  [io-524][internal] Fix for windows builds
  [SWAT-716][internal]: Fix .json extension parsing for dataset splitting (#520)
  [IO-557][internal] Move to use Poetry for packaging and publishing (#512)
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