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
Add support for INGV DMX format #2452
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.
See comments, also needs docs skeletons, see https://github.com/obspy/obspy/wiki/How-to%3A-add-a-new-submodule
When making changes, would be good to rebase on current master in the process, to get cleaner CI results @ThomasLecocq |
Ok boss :-) |
@megies not sure I managed to rebase... please do it if you have 5min ? |
6704d7f
to
33a6886
Compare
Rebase was OK, I added some minor fixes and rebased on most recent master again |
@ThomasLecocq I force-pushed, so you will need to resync your local checkout |
I have maybe forgotten to do the doc skeleton Asking ingv for the test file |
:toctree: autogen | ||
:nosignatures: | ||
|
||
bulletin |
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.
no such file I believe?
Commit history is messed up now, you merged branches together locally it seems, instead of hard resetting your local history to match the new history upstream after my last commit. I'll fix it. |
212a257
to
b16cec8
Compare
Cleaned up history, force-pushed. Also rebased the 4MB out of history |
@megies thanks a lot and sorry for the mess :( Why do tests fail ? nothing to do with dmx, right ? |
I think the problem is that your I don't understand tbh, assuming the file is not DMX, you are jumping to a supposedly next block position based on some random bytes parsed from the file? I don't know the format but it looks like the block size can vary, so it will be impossible to check anything but the first data block on unknown files. Is it not possible to check something that always has to be there in the first data portion in the file? |
hummmm.. OK, checking this now... |
@ThomasLecocq Any chance to get this done within the next view days? |
yep :-) |
ping @ThomasLecocq |
a26e125
to
9d776c5
Compare
Rebased and force-pushed @ThomasLecocq |
Added some more clever checks in the |
39584c9
to
a99b712
Compare
Rebased once more to get clean(er) CI results |
@ThomasLecocq there are some problems on our minimum dependency build, maybe you can have a look? https://travis-ci.org/obspy/obspy/jobs/618544621?utm_medium=notification&utm_source=github_status http://tests.obspy.org/106920/#2 environment is listed here: |
@megies there is 1 unrelated error (
because the oooooold numpy is not happy... I'll check how this is handled in other formats... Or it's maybe due to my |
maybe.. not sure. we have some compat code for io/mseed/util.py
232- for file in files:
233-
234- # If it's a file name just read it.
235- if isinstance(file, (str, native_str)):
236- # Read to NumPy array which is used as a buffer.
237: bfr_np = np.fromfile(file, dtype=np.int8)
238- elif hasattr(file, 'read'):
239- bfr_np = from_buffer(file.read(), dtype=np.int8)
240-
241- offset = 0
242- Nevermind actually, I'll push the fix.. |
One single unrelated CI test fail, merging |
rather than using strings to specify dtype. also get rid of some unused information
to native int otherwise errors on Py3.6, seems fixed on recent Py3.7 versions
c5e693e
to
ec642a1
Compare
Yeah !! Thanks a bunch for your help & time @megies !!! 🍻 🍻 |
What does this PR do?
Adds support to read INGV's DMX format
Why was it initiated? Any relevant Issues?
To rule the World & to read soooo many small DMX files from INGV Volcano Observatories, among others.
PR Checklist
master
for new features,maintenance_...
for bug fixesJust remove the space in the following string after the + sign: "+DOCS"
CHANGELOG.txt
.