How to download result-folder

Is there any way to download the result-folder after the simulation completes on the cloud?

The folder includes many files. Each file in the folder can be downlloaded by right-click, but the folder itself cannot be downloaded. Do I need to download each file one by one?

Hi @keigonomura.

From my experience, you can also use your page on app.pollination.cloud to quickly visualize/download results for cloud simulations. I usually go there to get output files. However, I’m not aware if there is a way to download the entire result folders at once.

Thanks,
Levent

Hi @keigonomura, this is a good question, and it is coming at the right time since we are adding components to the Grasshopper plugin to help with downloading the artifacts (files and folders) from the project.

For the recipe outputs, you can download all of them with a single click regardless of whether they are files or folders. For the files and folders that are generated during the simulation but are not exposed as outputs, we don’t have an eloquent solution for downloading folders. The main reason for not supporting it is that the folders can get very large, and providing a service to successfully zip and download them is not a trivial task.

Here are a couple of solutions that I can think of besides downloading the files one by one. Let me know what you think about them, and we can support you as needed.

  1. Support downloading the folders from inside the Grasshopper interface. We will iterate through all the files and download them one by one.

  2. Provide a Python script that does the same. You will need to create an API key to be able to run the script.

  3. Write an app that uses the Python script to download all the files, and zip them and hoping that memory will not be an issue.

5 posts were split to a new topic: Missing in.osm file from the local run

@mostapha Thanks for your reply.

The main reason for not supporting it is that the folders can get very large, and providing a service to successfully zip and download them is not a trivial task.

I see.

Among the three options above, I prefer the option 1, but it’s not an urgent and important request. Just wondering if I was missing how to download the folder at once.

1 Like

Thank you for the clarification! I will keep you posted about our progress.

Hi @keigonomura,

The latest version of the Grasshopper plugin has a component that allows you to List Run Artifacts. You can then use the Load Assets component to download those files locally. Here is an example:

3 Likes

Hi @mostapha,
I have an issue that extends from this. I have performed a parametric study with multiple runs in it, and I would like to download the files in the run folders without having to do it manually.

I have set up my script the same way as in your screenshot but what I am noticing is Check Study Status component is only feeding a single run at a time - my approach has been to connect this to a number slider and use an iterator to perform the download of the artifacts one by one. If I manually change the set number in the slider, the Load Assets component manages to download all the necessary files, however, if I use the fly functionality on the iterator, it iterates too fast for the Load Assets component to do its job so it just outputs nulls before anything loads.

I have attempted this with the current and old versions of colibri’s iterator, and I have tried with the legacy fly component and the pollination fly components, but all end the same way :confused:

Another solution I have tried is to use the Check Run Results component to load only individual files, but once again, manually moving the number slider works, and iterators give the same error.

Is there a way to iteratively download the individual folders yet?

Hope this is enough information, and thanks in advance.

Hi @rajaths, from the screenshot you need to right click on the download component and uncheck the unblocking option. You need to do the same with the load study component.

1 Like