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

DM-29569: PTC maxMeanSignal no longer works #80

Merged
merged 2 commits into from Apr 6, 2021
Merged

Conversation

plazas
Copy link
Contributor

@plazas plazas commented Apr 6, 2021

No description provided.

@plazas plazas requested a review from czwa April 6, 2021 17:20
@@ -231,6 +231,10 @@ def run(self, inputCovariances, camera=None, inputExpList=None):
datasetPtc.rawVars[ampName].append(partialPtcDataset.rawVars[ampName][0])
else:
datasetPtc.rawVars[ampName].append(partialPtcDataset.rawVars[ampName])
if type(partialPtcDataset.expIdMask[ampName]) is list:
Copy link
Contributor

Choose a reason for hiding this comment

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

Are there any cases where these are not lists with a single element each?

Copy link
Contributor Author

@plazas plazas Apr 6, 2021

Choose a reason for hiding this comment

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

In theory, no. After running cpExtract, these should be lists with single elements.

@@ -607,7 +611,12 @@ def errFunc(p, x, y):
assert (len(mask) == len(timeVecOriginal) == len(meanVecOriginal) == len(varVecOriginal))
if not (mask.any() and newMask.any()):
continue
dataset.expIdMask[ampName] = mask # store the final mask
dataset.expIdMask[ampName] = np.array(dataset.expIdMask[ampName])
Copy link
Contributor

Choose a reason for hiding this comment

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

I'm sure the answer is "yes", but these are mask==1 is good, correct?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

More precisely, they have True (correct) and False

@plazas plazas merged commit f1ea263 into master Apr 6, 2021
@plazas plazas deleted the tickets/DM-29569 branch April 6, 2021 19:51
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