Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,5 @@ ENV/

# other
*.zarr
*tar.gz

responsefun/_version.py
responsefun/_version.py
2 changes: 1 addition & 1 deletion responsefun/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,4 @@ def pytest_addoption(parser):

def pytest_collection(session):
if not session.config.option.skip_update:
update_testdata(session)
update_testdata(session)
26 changes: 14 additions & 12 deletions responsefun/testdata/0_download_testdata.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

# taken from respondo

SOURCE="https://wwwagdreuw.iwr.uni-heidelberg.de/responsefun_test_data/0.1.0"
# SOURCE="https://wwwagdreuw.iwr.uni-heidelberg.de/responsefun_test_data/0.1.0"
DATAFILES=(
data_0.1.0.tar.gz
)
Expand All @@ -14,17 +14,19 @@ THISDIR=$(dirname "${BASH_SOURCE[0]}")
cd "$THISDIR"
echo "Updating testdata ... please wait."

download() {
if which wget &> /dev/null; then
echo $@
wget -w 1 -qN --show-progress --no-check-certificate $@
else
echo "wget not installed" >&2
exit 1
fi
}

download $(for file in ${DATAFILES[@]}; do echo $SOURCE/$file; done)
# ToDo: temporary fix store testdata in repository.
# As soon as new server is online move testdata there
# download() {
# if which wget &> /dev/null; then
# echo $@
# wget -w 1 -qN --show-progress --no-check-certificate $@
# else
# echo "wget not installed" >&2
# exit 1
# fi
# }

# download $(for file in ${DATAFILES[@]}; do echo $SOURCE/$file; done)

if which sha256sum &> /dev/null; then
sha256sum --ignore-missing -c SHA256SUMS || exit 1
Expand Down
Binary file added responsefun/testdata/data_0.1.0.tar.gz
Binary file not shown.
Loading