-
-
Notifications
You must be signed in to change notification settings - Fork 45
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
Removes unused variable zloop
in trace.py
#197
Conversation
zloop
in `trace.py
zloop
in trace.py
I would like to know if this was added by mistake or its actually needed by the original algorithm and we didn't code it correctly. |
Ok. I am going through the paper. Once I am sure I will inform you. |
From what I understand, in the paper the z value(which I think is called zl in the code) is used to refer to intensity(flux) which is used for internal computations. However, the variables |
If this pull requested is accepted. There's recommended values for the parameters in the function which we can use as default parameters. |
Default values for? |
the parameters of the occult2 function. |
Which are? |
𝑛𝑠𝑚1=1 |
I see no harm in adding them. |
I'm confused. What do these additional parameters have to do with the original scope of the PR? |
Nothing. They can be done in a follow up PR. |
I can leave it as is for now. Adding the default values will change the order of parameters, which might be annoying if anyone is using the function. |
Why would we need to change the order? |
Thanks for the PR @Ghaithq |
Because default arguments need to come at the end. and the parameters nsm1, rmin are not at the end. |
I do not think that simply removing the |
If it was only used to save out, then I think adding to the example how to get the flux along the loop is what I would lean towards. |
But if we want to do that, will we need this commit to be reverted? |
No |
My point is that we should consider more carefully what the intended functionality of these things before just dumping them. This variable is not "completely useless" as stated above. |
|
Makes sense. |
In that case, we should expand the example for this to: "I think we should just use the coord tracing stuff we have in sunpy to show how once you have the SkyCoord you can extract the intensities a la https://docs.sunpy.org/en/stable/generated/gallery/units_and_coordinates/map_slit_extraction.html#sphx-glr-generated-gallery-units-and-coordinates-map-slit-extraction-py" I shall open a tracking issue. |
This resolves issue #196.
Removed variable and adjusted code accordingly including tests.