-
Notifications
You must be signed in to change notification settings - Fork 2
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
Updates metadata. Makes check if station is in metadata #50
Conversation
I've added the possibility to change units with a factor. Factor is added to data.toml. Might want a separate file for these factors |
I'm not sure with the files fail due to not finding data.toml. Will have a look next week |
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.
Tests not working (still draft)? Very strange choice of variable/file-names.
@@ -73,6 +78,7 @@ def __init__( | |||
self._set_filters(filters) | |||
|
|||
self.metadata = self._read_metadata(filename) | |||
self.datafile = self._read_data() |
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.
both datafile
and _read_data
and data.toml
are very confusing here. It is everything but data
=measurement of e.g. 17.35µg/m³, please find a better name. cfg
or setup
? And definitely don't call something for file
which is neither a filename nor filehandle.
@heikoklein . Yes, right before you answered I changed it to a draft. The tests fail because they can't find data.toml, and I'm not entirely sure why... going to look at it over the weekend. I've added a simple unit conversion field as well in data.toml. It seems to work, but I have to add some tests for that as well before the pr is ready for review. It might also be the wrong way of doing a unit change (changing it without making a new variable). So some work before the pr is ready |
Changes read_data to read_cfg
Note to self: remove unit change from data.toml, and add it as a possible argument to the reader instead. Or maybe it as a wrapper to pyaro, similar to the variable name change wrapper, so all readers can do unit change. |
@heikoklein. Fixed some problems, and made some new ones. But it is now ready for review |
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.
Looks good, except for linting. You should really fix your black setup.
Small changes to eeareader