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

How to write experimental output into a different folder? #1841

Closed
nikohansen opened this issue Feb 10, 2019 · 3 comments
Closed

How to write experimental output into a different folder? #1841

nikohansen opened this issue Feb 10, 2019 · 3 comments

Comments

@nikohansen
Copy link
Contributor

nikohansen commented Feb 10, 2019

I have troubles to write data generated in the cocoex module into a different folder than ./exdata/something. See also #405.

The relevant code seems to be:

  /* Create the result_folder inside the "exdata" folder */
  path = coco_allocate_string(COCO_PATH_MAX + 1);
  memcpy(path, outer_folder_name, strlen(outer_folder_name) + 1);
  coco_join_path(path, COCO_PATH_MAX, result_folder, NULL);
  coco_create_unique_directory(&path);
  coco_info("Results will be output to folder %s", path);

where

const char *outer_folder_name = "exdata";

I would kind-of really need to specify the full path on my own, but this is not possible @ttusar ?

@ttusar
Copy link
Contributor

ttusar commented Feb 10, 2019

True, not possible (you found where it’s hardcoded).

It shouldn’t be too hard to fix this, though...

@nikohansen
Copy link
Contributor Author

Should we try to fix this before the release or is it already fixed?

@ttusar
Copy link
Contributor

ttusar commented Jun 5, 2024

This is already fixed in the development branch. A folder different than exdata (even an absolute one) can be specified via the outer_folder observer option.

@ttusar ttusar closed this as completed Jun 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants