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

feat: GeometryView3D can write to specified outputDir #917

Merged
merged 4 commits into from
Aug 17, 2021

Conversation

paulgessinger
Copy link
Member

Previously, they would always write to $PWD which is not desirable.

@paulgessinger paulgessinger added this to the next milestone Aug 4, 2021
@codecov
Copy link

codecov bot commented Aug 4, 2021

Codecov Report

Merging #917 (61f2afd) into main (7ae0c8e) will decrease coverage by 0.03%.
The diff coverage is 16.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #917      +/-   ##
==========================================
- Coverage   48.75%   48.71%   -0.04%     
==========================================
  Files         331      331              
  Lines       17103    17119      +16     
  Branches     8070     8084      +14     
==========================================
+ Hits         8339     8340       +1     
- Misses       3057     3061       +4     
- Partials     5707     5718      +11     
Impacted Files Coverage Δ
Core/src/Visualization/GeometryView3D.cpp 34.80% <16.00%> (-2.44%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 7ae0c8e...61f2afd. Read the comment docs.

Copy link
Contributor

@asalzburger asalzburger left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Trivial change.

@paulgessinger paulgessinger changed the title feat: GeometryView3D can write to specified outputDir feat: GeometryView3D can write to specified outputDirx Aug 17, 2021
@paulgessinger paulgessinger changed the title feat: GeometryView3D can write to specified outputDirx feat: GeometryView3D can write to specified outputDir Aug 17, 2021
@paulgessinger paulgessinger merged commit 971c537 into acts-project:main Aug 17, 2021
@paulgessinger paulgessinger deleted the py/geo3d branch August 17, 2021 07:41
paulgessinger added a commit that referenced this pull request Aug 24, 2021
In #917 I introduced an output directory to `GeometryView3D`. I set the default to "." as that usually means the current directory. Due to the way we currently look for file extensions, this didn't actually work. I didn't actually test the default, so that broke the output writing.

This PR works around this by checking if the default value "." is given, and replaces this with the actual `$PWD`. This is not super robust, and ideally we should revise all of this using `boost::filesystem`, which I'll try to do in a future PR.

Aside from this, this PR also make the geometry examples correctly pipe through the `--output-dir` option to the geometry view output.
@paulgessinger paulgessinger modified the milestones: next, v12.0.0 Aug 26, 2021
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

Successfully merging this pull request may close these issues.

None yet

2 participants