https://github.com/comp-neural-circuits/adaptation-of-drosophila-larva-foraging
Raw File
Tip revision: d501cd1f0df3df2fda0f286d58e98ee0f72b4898 authored by Dylan Festa on 16 December 2022, 13:50:38 UTC
Added script to plot single larvea paths
Tip revision: d501cd1
download_data.py
#%%%
import os
import wget
import zipfile

URL = "https://zenodo.org/record/7438188/files/data_wosniack2022.zip?download=1"
print("Downloading data from: " + URL)

temp_name = "temp_data_wosniack2022.zip"
wget.download(URL, temp_name)
print("data downloaded to: " + temp_name)

print("unzipping data to folder Data")
with zipfile.ZipFile(temp_name, 'r') as zip_ref:
    zip_ref.extractall("Data")

print("data unzipped, now deleting zip file")
os.remove(temp_name)


# %%
back to top