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-46509: Add FULLCOVRIANCE_NO_B fit option to PTC solver #354

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

Conversation

Alex-Broughton
Copy link
Contributor

No description provided.

Copy link
Contributor

@erykoff erykoff left a 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

@erykoff
Copy link
Contributor

erykoff commented Oct 31, 2024

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

Copy link
Contributor

@erykoff erykoff left a 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)
Copy link
Contributor

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()
Copy link
Contributor

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.

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