Skip to content

Commit 77da6a6

Browse files
Merge pull request #71 from easyscience/patch
Fixes downloading from repository method
2 parents 27a6d27 + 5f0c502 commit 77da6a6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/easydiffraction/utils/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ def download_from_repository(
5757
base = 'https://raw.githubusercontent.com'
5858
org = 'easyscience'
5959
repo = 'diffraction-lib'
60-
branch = 'docs' # branch or DATA_REPO_BRANCH # Use the global branch variable if not provided
60+
branch = branch or DATA_REPO_BRANCH # Use the global branch variable if not provided
6161
path_in_repo = 'tutorials/data'
6262
url = f'{base}/{org}/{repo}/refs/heads/{branch}/{path_in_repo}/{file_name}'
6363

0 commit comments

Comments
 (0)