-
Notifications
You must be signed in to change notification settings - Fork 14
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-46509: Add FULLCOVRIANCE_NO_B fit option to PTC solver #354
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If we read an old PTC, we still want to fill in the noB parameters so they are available to the user, but any access will issue a deprecation warning. So I think this went too far in the code removal
f6995f5
to
6cf0085
Compare
My comment above is still a problem. If the file has these columns we want to read them in; when that is done it shouldn't issue a deprecation warning, but if you try to access them it will (but will have values!) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A couple more comments. Also I want to make sure that when you run tests that no warnings from this deprecation are emitted, either here or on cp_pipe.
inDict['covariancesModel'][ampName], | ||
np.nan, | ||
) | ||
inDict['aMatrixNoB'][ampName] = np.full_like(inDict['aMatrix'][ampName], np.nan) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't know if this else is necessary. For newer PTCs we shouldn't be using these fields at all, right?
partialPtc.covariancesModelNoB[ampName].ravel() | ||
self._covariancesModelNoB[ampName] = np.append( | ||
self._covariancesModelNoB[ampName].ravel(), | ||
partialPtc._covariancesModelNoB[ampName].ravel() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We aren't using this at all; I think if we need filler this should be explicitly filled with nans.
25da546
to
5cd6120
Compare
No description provided.