Skip to content

Conversation

@woutdenolf
Copy link
Collaborator

No description provided.

@woutdenolf woutdenolf requested a review from vasole June 21, 2025 19:18
for iFree, (nNeg, iFree, negMask) in enumerate(negList):
if iFree not in badParameters and nNeg:
for nNeg, iFree, negMask in negList[1:]:
if nNeg:
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

The first iFree was shadowed.

Copy link
Member

Choose a reason for hiding this comment

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

It is quite long ago, but I think you are missing the point of pixels already included in the list to be re-fitted. One pixel can have more than one element with negative areas.

Copy link
Collaborator Author

@woutdenolf woutdenolf Jun 23, 2025

Choose a reason for hiding this comment

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

iFree is defined twice so that is clearly an issue

for iFree, (nNeg, iFree, negMask) in enumerate(negList):

Then there is

if iFree not in badParameters 

How can iFree potentially appear more than once in badParameters?

I understand that one pixel can have more than one negative peak area but that is unrelated to this. badParameters is the list of peak area indices that will be excluded from the fit.

Copy link
Member

Choose a reason for hiding this comment

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

OK. Got your point.

Copy link
Member

Choose a reason for hiding this comment

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

Then I have to figure out is why the enumeration was necessary. It makes no sense if it is not to be used.

@woutdenolf woutdenolf closed this Oct 10, 2025
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.

3 participants