Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cmems disable_progress_bar=True sometimes hangs for insitu data #893

Open
veenstrajelmer opened this issue Jul 9, 2024 · 0 comments
Open

Comments

@veenstrajelmer
Copy link
Collaborator

veenstrajelmer commented Jul 9, 2024

When setting disable_progress_bar=True in the code below, the process hangs indefinitely. This is tested in a clean but bulky environment with dfm_tools, xugrid, ddlpy, hatyan etc installed and cannot be reproduced yet on other laptops.

import copernicusmarine
disable_progress_bar = False # TODO: the code hangs when setting this to True
dataset_id = "cmems_obs-ins_glo_phy-ssh_my_na_PT1H"
url_file = 'INSITU_GLO_PHY_SSH_DISCRETE_MY_013_053/cmems_obs-ins_glo_phy-ssh_my_na_PT1H_202311/history/TG/BO_TS_TG_Aarhus_60minute.nc'

copernicusmarine.get(
    dataset_id=dataset_id,
    dataset_part="history",
    service="files",
    filter=url_file,
    output_directory='.',
    overwrite_output_data=True,
    force_download=True,
    no_directories=True,
    disable_progress_bar=disable_progress_bar,
    )

It did work in a clean environment with only copernicusmarine and ipython installed. However, after this success, it also worked again in the bulky environment. Confusing situation.

Update 4-9-2024: with new miniforge3 instead of anconda environments, it now works on laptop (not tested on WCF).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant