mintproject / dame_cli

Desktop Application for Model Execution (DAME) is a command line interface for executing environmental models
https://dame-cli.readthedocs.io/en/latest/
Apache License 2.0
3 stars 1 forks source link

Problem running the drought indices model (Problem with double quotes) #73

Closed dgarijo closed 3 years ago

dgarijo commented 3 years ago

Run in: MINT server.

Engine: Singularity

The following setup claims to run successfully, but when it finishes I cannot see any result: dame run dsi_1.0_cfg_spi_ethiopia

I browsed the log, and it says:

Traceback (most recent call last):
  File "WM_climate_indices.py", line 754, in <module>
    raise ValueError("Dataset type not a valid entry. Use either 'CHIRPS', 'GLDAS', 'FLDAS'")
ValueError: Dataset type not a valid entry. Use either 'CHIRPS', 'GLDAS', 'FLDAS'
+ find . -type f -name '*.nc' -exec mv '{}' index.nc ';'
+ find . -type f -name '*.mp4' -exec mv '{}' index_movie.mp4 ';'

I tried to execute the command: /usr/bin/singularity exec docker://mintproject/droughtindices:latest ./run -i1 index.nc -o1 index.nc -o2 index_movie.mp4 -p1 "GLDAS" -p11 2017 -p3 23 -p12 2000 -p4 48 -p7 "gamma" -p8 "monthly" -p10 2008 -p9 6 -p2 "SPI" -p5 3 -p13 2017 -p14 True -p6 15

and worked successfully. I think there is a problem when running singularity with double quotes (' " like this" '); and the command passes quoted strings as arguments.

When I ran this with Docker, in my Windows machine, everything worked fine.

issue-label-bot[bot] commented 3 years ago

Issue-Label Bot is automatically applying the label bug to this issue, with a confidence of 0.89. Please mark this comment with :thumbsup: or :thumbsdown: to give our bot feedback!

Links: app homepage, dashboard and code for this bot.