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

Mini seed output of int64 data #2356 #2373

Open
Commits on May 15, 2019
  1. Fix mseed output of int64 data #2356

    LMurrayBergquist authored and megies committed Apr 4, 2019
    Changes obspy/io/mseed/core.py so that int64 data is accepted if it can be safely downcast to type int32 data, otherwise it creates an error message. A test for this has been added to test_mseed_reading_and_writing.py to check that an input array of int64 data is the same after being written to mseed.
  2. Update obspy/io/mseed/core.py

    LMurrayBergquist authored and megies committed Apr 4, 2019
    Edits to obspy/io/mseed/core.py so that format complies with PEP8 and to make the code more robust.
  3. Update to io/mseed/core.py and tests

    LMurrayBergquist authored and megies committed Apr 4, 2019
    Updates io/mseed/core.py to fix some typos and errors. Adds a test to test_mseed_reading_and_writing.py to check that the error message is raised for data that cannot be downcast. Also changes tests to use with blocks and BufferIO().
  4. Update CHANGELOG.txt

    LMurrayBergquist authored and megies committed Apr 4, 2019
    Added lines:
     "- obspy.io.mseed:
       * Add add ability to write int64 data to mseed if it can safely be downcast to int32 data, otherwise raises ObsPyMSEEDError. (see #2356)"
  5. Fix mseed output of int64 data #2356

    LMurrayBergquist authored and megies committed Apr 4, 2019
    Changes obspy/io/mseed/core.py so that int64 data is accepted if it can be safely downcast to type int32 data, otherwise it creates an error message. A test for this has been added to test_mseed_reading_and_writing.py to check that an input array of int64 data is the same after being written to mseed.
  6. Update obspy/io/mseed/core.py

    LMurrayBergquist authored and megies committed Apr 4, 2019
    Edits to obspy/io/mseed/core.py so that format complies with PEP8 and to make the code more robust.
  7. Update to io/mseed/core.py and tests

    LMurrayBergquist authored and megies committed Apr 4, 2019
    Updates io/mseed/core.py to fix some typos and errors. Adds a test to test_mseed_reading_and_writing.py to check that the error message is raised for data that cannot be downcast. Also changes tests to use with blocks and BufferIO().
  8. Updates for writing int64 data to mseed

    LMurrayBergquist authored and megies committed Apr 9, 2019
    test_downcast_int64_to_int32() was updated to include negative numbers and some data that could safely be downcast to int32. Notes on what could be updated in future once numpy is updated have been added to obspy/setup.py and obspy/io/mseed/core.py
  9. Update CHANGELOG.txt

    LMurrayBergquist authored and megies committed Apr 10, 2019
    Fix typo in master section io.mseed
  10. Update of test_downcast_int64_to_int32

    LMurrayBergquist authored and megies committed Apr 10, 2019
    Added a check that smaller negative numbers also pass, and too large negative numbers do fail. Also changed from writing long numbers to powers of 2.
  11. Update core.py and test

    LMurrayBergquist authored and megies committed Apr 11, 2019
    Check in io/mseed/core.py changed to check that data is in bounds of int32 before converting, test also changed to include check that original stream dtype was not changed.
  12. flake8

    megies committed May 15, 2019
You can’t perform that action at this time.