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

helix.jl and fbp_helix_stack.jl #15

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

hnanda22
Copy link
Contributor

@hnanda22 hnanda22 commented Jul 2, 2022

Initial commit, commenting and styling still left to do

@codecov
Copy link

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 on lines +13 to +16
varargin.window = " "
varargin.short = true
varargin.chat = false
arg = vararg_pair(arg, varargin)
Copy link
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


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
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 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
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

return sino, orbits, used
end

function rebin_helix_scale(dfs, dsd, ss, tt)
Copy link
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

codecov bot commented Oct 7, 2022

Codecov Report

Base: 99.63% // Head: 99.63% // No change to project coverage 👍

Coverage data is based on head (958c3c7) compared to base (e294313).
Patch has no changes to coverable lines.

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           

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

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@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