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

In HISTORY, allow arithmetic involving a bundle field #2440

Closed
mmanyin opened this issue Nov 2, 2023 · 15 comments
Closed

In HISTORY, allow arithmetic involving a bundle field #2440

mmanyin opened this issue Nov 2, 2023 · 15 comments
Assignees
Labels
🎁 New Feature This is a new feature ⌛ Long Term Long term issues

Comments

@mmanyin
Copy link
Contributor

mmanyin commented Nov 2, 2023

HISTORY supports the output of bundle fields, it also supports arithmetic on fields, but it does not allow these two in combination, i.e. it does not allow arithmetic involving bundle fields. Could this feature be added? An example "use case" would be the units conversion of Increment bundle fields. Thanks for considering this.

@mmanyin mmanyin added the 🎁 New Feature This is a new feature label Nov 2, 2023
@mathomp4
Copy link
Member

mathomp4 commented Nov 2, 2023

I'll assign @bena-nasa and @atrayano as they have the best shot at seeing if this is doable.

Copy link

stale bot commented Jan 2, 2024

This issue has been automatically marked as stale because it has not had recent activity. If there are no updates within 7 days, it will be closed. You can add the "long term" tag to prevent the Stale bot from closing this issue.

@stale stale bot added the ❄️ Stale This issue has been marked stale label Jan 2, 2024
@mathomp4
Copy link
Member

mathomp4 commented Jan 2, 2024

@bena-nasa Has this been enabled/fixed?

@stale stale bot removed the ❄️ Stale This issue has been marked stale label Jan 2, 2024
@mmanyin
Copy link
Contributor Author

mmanyin commented Jan 4, 2024

@tclune This is the PR that I mentioned. It has particular value for doing units conversion, in the context of a monthly output collection.

Copy link

stale bot commented Mar 6, 2024

This issue has been automatically marked as stale because it has not had recent activity. If there are no updates within 7 days, it will be closed. You can add the "long term" tag to prevent the Stale bot from closing this issue.

@stale stale bot added the ❄️ Stale This issue has been marked stale label Mar 6, 2024
@mmanyin
Copy link
Contributor Author

mmanyin commented Mar 6, 2024

I'm hoping that @bena-nasa still has this on his radar : - )

@stale stale bot removed the ❄️ Stale This issue has been marked stale label Mar 6, 2024
@mathomp4 mathomp4 added the ⌛ Long Term Long term issues label Mar 6, 2024
@mathomp4
Copy link
Member

mathomp4 commented Mar 7, 2024

I will label as long-term

@bena-nasa
Copy link
Collaborator

@mmanyin Might have some time finally to explore and see if it is feasible

@mmanyin
Copy link
Contributor Author

mmanyin commented Mar 11, 2024

@bena-nasa great -- thanks!

@bena-nasa
Copy link
Collaborator

@mmanyin
I finally had a chance to look at bundle arithmetic. I thought it was going to be hopeless or at least require a lot code reorganization, but I think I did without having change a huge amount of code, shocked at how little I had to change really... Hopefully this is still useful.
I need to test more and make sure I haven't broken and remove the ridiculous amount of comments I had to put in the code to figure out how the heck this all worked...

@mathomp4
Copy link
Member

and remove the ridiculous amount of comments I had to put in the code to figure out how the heck this all worked...

Quoth @tclune "pFlogger DEBUG time!" 😄

@mmanyin
Copy link
Contributor Author

mmanyin commented Mar 21, 2024

@bena-nasa
That is great news! Very useful (still)! Thanks for all the work on this.

@bena-nasa
Copy link
Collaborator

@mmanyin
It wasn't the :: in the name. Looks like it is the field splitting. Hit problems in the aer_x collection. I can output bundles just fine as long as there the field splitting is turned off (and I comment out the things in the collection that are to be split).

Unfortunately I can't test the splitting in my standalone tester for history/extdata but looks I need to figure out how to since that will just be so much more efficient.

@bena-nasa
Copy link
Collaborator

@mmanyin
I got it working. I will make a PR.

What is NOT working still is combining the splitting and arithmetic. I'm just not sure if this is feasible. I would really understand how the splitting works to see if the issue I'm seeing can be resolved.

@mmanyin
Copy link
Contributor Author

mmanyin commented Mar 22, 2024

@bena-nasa
Thank you. Our email exchange from Jan 29/30 identified the splitting + arithmetic problem as a separate issue. But I never opened an "issue" on GitHub, in part because I didn't want to divert focus from the work that you just did.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🎁 New Feature This is a new feature ⌛ Long Term Long term issues
Projects
None yet
Development

No branches or pull requests

5 participants