Skip to content

helix.jl and fbp_helix_stack.jl#15

Open
hnanda22 wants to merge 5 commits into
JuliaImageRecon:mainfrom
hnanda22:helix.jl
Open

helix.jl and fbp_helix_stack.jl#15
hnanda22 wants to merge 5 commits into
JuliaImageRecon:mainfrom
hnanda22:helix.jl

Conversation

@hnanda22
Copy link
Copy Markdown
Contributor

@hnanda22 hnanda22 commented Jul 2, 2022

Initial commit, commenting and styling still left to do

@codecov
Copy link
Copy Markdown

codecov Bot commented Jul 2, 2022

Codecov Report

Merging #15 (d053c3f) into main (442e7e0) will decrease coverage by 0.45%.
The diff coverage is n/a.

❗ Current head d053c3f differs from pull request most recent head 959f42d. Consider uploading reports for the commit 959f42d to get more accurate results

@@            Coverage Diff             @@
##             main      #15      +/-   ##
==========================================
- Coverage   29.97%   29.51%   -0.46%     
==========================================
  Files           9        9              
  Lines         337      332       -5     
==========================================
- Hits          101       98       -3     
+ Misses        236      234       -2     
Impacted Files Coverage Δ
src/fbp2.jl 18.55% <0.00%> (-0.84%) ⬇️
src/fbp2_back.jl 33.78% <0.00%> (-0.43%) ⬇️
src/zwart_powell.jl 100.00% <0.00%> (ø)
src/fbp2_back_fan.jl 0.00% <0.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

Comment thread fbp_helix_stack.jl
Comment on lines +13 to +16
varargin.window = " "
varargin.short = true
varargin.chat = false
arg = vararg_pair(arg, varargin)
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

always use julia named keyword arguments with default values for options, not varargin.
follow the examples in other julia code like here:
https://github.com/JeffFessler/Sinograms.jl/blob/main/src/fbp2.jl

Comment thread fbp_helix_stack.jl

nz = ig.nz;
## 2d version of image geometry
ig = image_geom("nx", ig.nx, "dx", ig.dx, "offset_x", ig.offset_x, "ny", ig.ny, "dy", ig.dy, "offset_y", ig.offset_y,"mask", ig.mask_or)
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

see ImageGeoms.jl documentation for usage

Comment thread fbp_helix_stack.jl
Comment on lines +2 to +12
function args()

function streq(cg)
return cg == "test"
end

##if streq(cg, 'test')
## run helix_example
##return
##end

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

can cut all this.
but you do need an example

Comment thread helix.jl
return sino, orbits, used
end

function rebin_helix_scale(dfs, dsd, ss, tt)
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

use scalars s, t here, then use broadcast above.

@codecov
Copy link
Copy Markdown

codecov Bot commented Oct 7, 2022

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 99.63%. Comparing base (e294313) to head (958c3c7).
⚠️ Report is 42 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main      #15   +/-   ##
=======================================
  Coverage   99.63%   99.63%           
=======================================
  Files          24       24           
  Lines         828      828           
=======================================
  Hits          825      825           
  Misses          3        3           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@JeffFessler JeffFessler mentioned this pull request Oct 10, 2022
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.

2 participants