Skip to content

Commit

Permalink
DOC: fix default value for config.REPOSITORIES (#492)
Browse files Browse the repository at this point in the history
* DOC: fix default value for config.REPOSITORIES

* Read default config file
  • Loading branch information
hagenw authored Dec 16, 2024
1 parent d7b87e8 commit a6a0050
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions audb/core/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,10 +115,10 @@ class config:
A repository is defined by the object :class:`audb.Repository`,
containing the following attributes:
* :attr:`audb.Repository.name`: repository name, e.g. ``'data-local'``
* :attr:`audb.Repository.backend`: backend name, e.g. ``'artifactory'``
* :attr:`audb.Repository.name`: repository name, e.g. ``"audb-public"``
* :attr:`audb.Repository.backend`: backend name, e.g. ``"s3"``
* :attr:`audb.Repository.host`: host name,
e.g. ``'https://artifactory.audeering.com/artifactory'``
e.g. ``"s3.dualstack.eu-north-1.amazonaws.com"``
"""

Expand Down
10 changes: 5 additions & 5 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,12 +94,12 @@


# Cache databases to avoid progress bar in code examples ------------------
_config = audb.core.config.load_configuration_file(
audb.core.config.global_config_file,
)
audb.config.REPOSITORIES = [
audb.Repository(
name="data-public",
host="https://audeering.jfrog.io/artifactory",
backend="artifactory",
)
audb.Repository(repo["name"], repo["host"], repo["backend"])
for repo in _config["repositories"]
]
database_name = "emodb"
database_version = "1.4.1"
Expand Down

0 comments on commit a6a0050

Please sign in to comment.