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

images not saved under default_dir #1289

Open
yslan opened this issue May 10, 2024 · 2 comments
Open

images not saved under default_dir #1289

yslan opened this issue May 10, 2024 · 2 comments
Assignees
Labels

Comments

@yslan
Copy link

yslan commented May 10, 2024

Hi,

I'm trying to put default images under a local folder imgs/ (the path exists). When I follow the documentation and set it in ascent_options.json, every works as expected.

{
  "default_dir" : "/path/to/output/dir"
}

However, when I tried to hard code it into the interface with the folllowing line (copied from test/t_ascent_runtime_options.cpp), the images are saved to pwd instead of $pwd/imgs

ascent_opts["default_dir"] = "imgs";

When doing this test, I make sure there is no ascent_options.json and ascent_options.yaml in my current folder.

I do see an error when the default_dir does not exist, meaning it's indeed checking the path. And, at the end, the ascent_session.yaml is indeed saved under imgs/. For some reason, only the images do not honor the default_dir. My image_prefix: "q_%06d" is not using an absolute path.

I'm using the commit 6d1ca3f
Can someone confirm whether there's a bug?

Thanks,
Yu-Hsiang

@yslan yslan changed the title images no saved under default_dir images not saved under default_dir May 10, 2024
@nicolemarsaglia
Copy link
Contributor

Hi @yslan, thanks for pointing this out. I will investigate and get back to you!

@nicolemarsaglia
Copy link
Contributor

Hi @yslan, so far I have not been able to duplicate what you are experiencing. I can, however, create this bug when I use image_name rather than image_prefix and have a fix in #1295.

Could you share the rest of your ascent actions?

@cyrush cyrush added the bug label May 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants