Trigger length of 1 sample (on==off) resulted in empty array.
Replaced if else with try Except to avoid unnecessary if checks.
std of single value is always 0
minor docstring fixes
add write() method to Event, delegating to Catalog.write()

actually was advertized in the docstring already ;)
Add test for infinite loop mseed files.
mseed: Make Python parser resilient to invalid files.

It suffers from the same infinite loop bug as libmseed.
Merge pull request #893 from syngron/pr_trigger_empty_array

Trigger length of 1 sample (on==off) resulted in empty array.
Change print statements to functions in comments.
mseed-recordanalyzer: Fix incorrect indent.

Printing only worked when the file was big endian.
Setting manually timing_quality in the Trace.stats.mseed.data_quality
optional attribute
Renamed buffer to bfrNp and added blockette nb to handle timing_quality
Add read support for timing quality, add blkt number in writing, add
set_flags_in_fixed_header
Add test cases and reuse of the details arg in readMSEED
Changes suggested by @krischer and @QuLogic
# This is a combination of 2 commits.
# The first commit's message is:

improving regressions from attribdict to segy

# This is the 2nd commit message:

quality improvements
Quality and unittests improvements
Attempt to repair butchered history
Minor corrections suggested by @QuLogic