-
Notifications
You must be signed in to change notification settings - Fork 18
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
IO AP sensing (Follow up of request #219 and #218) #220
Conversation
…0. C320 was an arbitrary name given for the wellbore by the user
… .xml and .tra exported, which gives more metadata, readings of the instruments temperature sensors, and instrument computed log-ratio and attenuation.
added a check wheather a .tra file with identical timestamp exists in .xml directory. If yes it is used to: - import t_by_dts, log_ratio, loss - pt100 data (if it exists in file)
…ng.py, sensornet.py and sensortran.py
Good to see you've found some time to work on this again! I've invited you as a collaborator, so the CI should run without me needing to click the button. It seems the linter complains now due to a change in its default config. |
Yeah, nice to be back :) It took me some time, as I had a bunch of responsibilities last semester. It seems, that I get a lot of time for my research in the coming months. Ah, that linter-config-change expains the complains with the printout commands. |
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 had a look, didn't run the code yet (but I assumes that part is fine).
The CI is complaining, and you probably don't see those errors because your hatch environments use less new versions of packages. If you do hatch env prune
you remove them and hatch will create new environments that should show the same errors as on the CI
Co-authored-by: Bart Schilperoort <b.schilperoort@gmail.com>
Co-authored-by: Bart Schilperoort <b.schilperoort@gmail.com>
Co-authored-by: Bart Schilperoort <b.schilperoort@gmail.com>
Co-authored-by: Bart Schilperoort <b.schilperoort@gmail.com>
- changed detection algorithm of .tra files - added a double-ended calibration test of ap_sensing_2 data to test_datastore.py
- load_tra_arrays flag - current .tra implementation is limited to in-memory reading only
I started with hatch run format: Either we need to change that pattern matching or require Python 3.10 in pyproject.toml:
then it continues to search for errors, finds 10, fixes 8. The two remaining are identical: The question is: Do you want to require python 3.10 or rather fix the first errror? - Can we tell the linter to ignore site packages? |
Oh that's an annoying bug. We probably have to run the CI at Python 3.9 to make it green. Bokeh has dropped support for 3.9. We don't use it, but it's being installed due to Let's just ignore this error for now, that's less work 😉 It won't break any code anyway.
Not sure why it's checking it, I don't think it should. I think the only thing to fix still is the docs, the build seems to fail. That's more important that the small mypy error. Do you think you can fix the notebooks that are failing? You should be able to build the docs locally with |
You can try changing the settings: [tool.mypy]
ignore_missing_imports = true # Preferably false, but matplotlib, scipy and statsmodels are missing typing stubs
python_version = "3.9"
exclude="*/site-packages/*" |
Alright, I'll try that tomorrow. |
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.
CI is now green. If you can have a look at the delayed loading (into dask arrays) #220 (comment) and see if that still works or not (and add that info to docs), you can merge this PR.
- added explanation for .xml and .tra files - added an example of importing .xml + .tra data
I added a remark to document that issue in the docstring and in the docs notebook A3. And I do not have the rights to merge a PR ;) |
And I run the tests: