from os import path, listdir
import subprocess


subprocess.run(["sh", "download_data.sh"])
here = path.dirname(path.abspath(__file__))
if "Voyager_data" not in listdir(here):
    subprocess.run(["sh", "download_data.sh"])
voyager_fil = path.join(here, 'Voyager_data/Voyager1.single_coarse.fine_res.fil')
voyager_h5 = path.join(here, 'Voyager_data/Voyager1.single_coarse.fine_res.h5')
from os import path, listdir
import subprocess


subprocess.run(["sh", "download_data.sh"])
here = path.dirname(path.abspath(__file__))
print(listdir(here))
if "Voyager_data" not in listdir(here):
    subprocess.run(["sh", "download_data.sh"])
voyager_fil = path.join(here, 'Voyager_data/Voyager1.single_coarse.fine_res.fil')
voyager_h5 = path.join(here, 'Voyager_data/Voyager1.single_coarse.fine_res.h5')
check if data is downloading