-
Notifications
You must be signed in to change notification settings - Fork 16
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
Move MAG L1A to CDF attribute manager #693
Move MAG L1A to CDF attribute manager #693
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.
I'm still learning OOP so I'll leave it up to someone else to Approve. Looks good to me though. Some minor suggestions.
class Sensor(Enum): | ||
"""Enum for MAG sensors: raw, MAGo, and MAGi (RAW, MAGO, MAGI).""" | ||
|
||
MAGO = "MAGO" |
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.
MAGO = "MAGO" | |
MAGO = "MAGO" # MAGo sensor for outer measurements |
Hi Maxine! I obviously shouldn't be the one to approve this, but I think this looks awesome. Your code for the CdfAttributes class is really awesome, it makes the code look super clean (just like Laura said). |
@anamanica I don't see an issue with you approving this. If you agree with it, feel free to put your stamp of approval on it :) |
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 tried to look at CDF attrs in details but looked at dataclasses on high level. Let me know if you like me to look in detail at any algorithm related changes. CDF stuff looks great with minor comment.
50302ec
into
IMAP-Science-Operations-Center:dev
Change Summary
Since the MAG code has 4 files with similar attributes but different data, this is kind of a weird change. I rearranged some pieces to try and reduce the overall complexity.
The attribute manager mostly made it simpler.
Overview
Deleted Files
Sorry, I know this PR is a little complex, but I couldn't really find a good way of splitting it up as I was halfway through a refactor when we switched CDF management systems...