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

Pisa weight fitter #237

Merged
merged 5 commits into from
Aug 8, 2022
Merged

Conversation

RasmusOrsoe
Copy link
Collaborator

adds the ability to use pisa to fit physical weights to each events in a database

Copy link
Collaborator

@asogaard asogaard left a comment

Choose a reason for hiding this comment

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

Hi Rasmus,
I don't have a good handle on the PISA portion of the repo, so I am happy to merge this PR without much back-and-forth. I have made one suggestion though, to update an import that was changed on a recent PR, that I suggest we add before merging. I have also suggested adding just a bit of documentation to explain the intent behind the WeightFitter class, as this is not super clear to me at present, but I'll leave that up to you. :)

src/graphnet/pisa/fitting.py Outdated Show resolved Hide resolved
@@ -74,6 +75,174 @@ def config_updater(
updater.write(configfile)


class WeightFitter:
def __init__(
Copy link
Collaborator

Choose a reason for hiding this comment

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

A docstring here, or in fit_weights, would be helpful to explain which weights are being fitted, exactly.

class WeightFitter:
def __init__(
self,
database_path,
Copy link
Collaborator

Choose a reason for hiding this comment

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

Here and elsewhere we are assuming that databases (as opposed to some other intermediate file format) are being used to interface with PISA. Is that something we are committing to, or just something that works for the time being but might be expanded on down the line?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This is something we can expand upon down the line, I think. Currently, GraphNeT is only interfaced with PISA via SQL. To make it work with a new format, we need to update PISA as it relies on a dataloader for each format. See https://github.com/icecube/pisa/tree/master/pisa/stages/data for reference. They are easy to write, so it shouldn't be a big thing.

RasmusOrsoe and others added 3 commits August 4, 2022 12:18
import statement

Co-authored-by: Andreas Søgaard <andreas.sogaard@gmail.com>
@RasmusOrsoe RasmusOrsoe merged commit 4b695c1 into graphnet-team:main Aug 8, 2022
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