-
Notifications
You must be signed in to change notification settings - Fork 1
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
Adding/persisting galaxy objIDs to qp ancillary data #39
Comments
Alternatively, it would be acceptable to add them to
|
You should be able to do
|
Could you check if Ensemble.set_ancil() works, and if it does, close this issue, thanks? |
It doesn't throw an error, but it doesn't actually get added to the metadata and |
Have you updated tables_io?
… On Apr 21, 2022, at 12:36 PM, Alex Malz ***@***.***> wrote:
It doesn't throw an error, but it doesn't actually get added to the metadata and Ensemble.ancil remains None. Including it as a keyword upon instantiation (in_pdfs = qp.Ensemble(qp.interp, data=dict(xvals=xvals, yvals=yvals, check_input=True), ancil=any_dictionary)) causes a KeyError. (Apologies if it's not even supposed to be provided as a dictionary argument -- it would help if there were docstrings to specify the types of anticipated inputs.)
—
Reply to this email directly, view it on GitHub <#39>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/ADRIGISJKB33UTORSL2FU6TVGGU5DANCNFSM5T4EKBBQ>.
You are receiving this because you commented.
|
An you are totally welcome to update the doc strings and make a PR.
…-e
On Apr 21, 2022, at 12:38 PM, Eric Charles ***@***.***> wrote:
Have you updated tables_io?
> On Apr 21, 2022, at 12:36 PM, Alex Malz ***@***.*** ***@***.***>> wrote:
>
>
> It doesn't throw an error, but it doesn't actually get added to the metadata and Ensemble.ancil remains None. Including it as a keyword upon instantiation (in_pdfs = qp.Ensemble(qp.interp, data=dict(xvals=xvals, yvals=yvals, check_input=True), ancil=any_dictionary)) causes a KeyError. (Apologies if it's not even supposed to be provided as a dictionary argument -- it would help if there were docstrings to specify the types of anticipated inputs.)
>
> —
> Reply to this email directly, view it on GitHub <#39>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/ADRIGISJKB33UTORSL2FU6TVGGU5DANCNFSM5T4EKBBQ>.
> You are receiving this because you commented.
>
|
So, the setting, reading and writing of ancillary data is explicitly being testing in the unit tests. |
@alexandergagliano and I got the same behavior with presumably different versions of qp, but the first way of doing it from the test setup worked for me after updating tables_io, thanks! Should I make a separate issue for including the A closely related issue is that ancillary data doesn't get carried over when converting parameterizations, e.g.
It's not a bug per se, but it is definitely an instance of the code's behavior not matching standard user expectations. |
Well, go ahead and add a couple of lines in |
This should go in the ancillary data, not the metadata. The metadata is for stuff common to all the galaxies, the ancillary data is per galaxy.On Aug 4, 2023, at 11:00 AM, Alex Gagliano ***@***.***> wrote:
I have qp quantiles stored for 1000 galaxies and am trying to link these properties back to the original galaxies. Would it be possible to revise the metadata of the files to include the original object ID of the galaxy? Currently the metadata only includes:
{'pdf_name': array([b'quant_piecewise'], dtype='|S15'),
'pdf_version': array([0]),
'quants': array([[0. , 0.1 , 0.2 , 0.3 , 0.4 , 0.5 , 0.6 , 0.7 , 0.8 ,
0.9 , 0.999, 1. ]])}
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you commented.Message ID: ***@***.***>
|
I have qp quantiles stored for 1000 galaxies and am trying to link these properties back to the original galaxies. Would it be possible to revise the metadata of the files to include the original object ID of the galaxy? Currently the metadata only includes:
{'pdf_name': array([b'quant_piecewise'], dtype='|S15'),
'pdf_version': array([0]),
'quants': array([[0. , 0.1 , 0.2 , 0.3 , 0.4 , 0.5 , 0.6 , 0.7 , 0.8 ,
0.9 , 0.999, 1. ]])}
The text was updated successfully, but these errors were encountered: