Skip to content

Instantly share code, notes, and snippets.

@megies
megies / fdsn station xml xsd modifications
Created November 23, 2013 16:01
modifications to fdsn-station-1.0.xsd for generating a useful full random stationXML file
--- fdsn-station-1.0.xsd 2013-11-23 16:55:41.423403285 +0100
+++ /home/megies/git/obspy/obspy/station/docs/fdsn-station-1.0.xsd 2013-11-23 16:42:05.043582600 +0100
@@ -60,19 +60,19 @@
message.</xs:documentation>
</xs:annotation>
</xs:element>
- <xs:element name="Sender" type="xs:string" minOccurs="1">
+ <xs:element name="Sender" type="xs:string" minOccurs="0">
<xs:annotation>
<xs:documentation>Name of the institution sending this
# -*- coding: utf-8 -*-
# <nbformat>3.0</nbformat>
# <codecell>
from obspy.core import Stream, Trace, read, UTCDateTime
import numpy as np
import matplotlib.pyplot as plt
import matplotlib
matplotlib.rc('lines', linewidth=2)
@megies
megies / datamark changes
Created January 24, 2014 14:04
datamark changes
diff --git a/obspy/datamark/__init__.py b/obspy/datamark/__init__.py
index c3a0e81..b53994d 100644
--- a/obspy/datamark/__init__.py
+++ b/obspy/datamark/__init__.py
@@ -12,6 +12,7 @@ This module provides read support for DataMark waveform data.
(http://www.gnu.org/copyleft/lesser.html)
"""
+from __future__ import unicode_literals
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Unpacking /home/megies/git/matplotlib
Running setup.py egg_info for package from file:///home/megies/git/matplotlib
============================================================================
Edit setup.cfg to change the build options
BUILDING MATPLOTLIB
matplotlib: yes [1.4.x]
python: yes [2.7.5 (default, May 31 2013, 20:53:21) [GCC
4.7.2]]
platform: yes [linux2]
$ bin/pip install --no-deps --upgrade 'matplotlib<1.4'
Downloading/unpacking matplotlib<1.4 from https://pypi.python.org/packages/source/m/matplotlib/matplotlib-1.3.1.tar.gz#md5=789699851de28a543f3d244cf657ff68
Downloading matplotlib-1.3.1.tar.gz (42.7MB): 42.7MB downloaded
Running setup.py (path:/private-backup/home/obspy/update-docs/build/matplotlib/setup.py) egg_info for package matplotlib
/usr/lib/python2.7/dist-packages/gtk-2.0/gtk/__init__.py:57: GtkWarning: could not open display
warnings.warn(str(e), _gtk.Warning)
============================================================================
Edit setup.cfg to change the build options
BUILDING MATPLOTLIB
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
#!/usr/bin/env python
import inspect
import re
from importlib import import_module
from pkgutil import walk_packages
from types import ModuleType
import obspy
from future.builtins import __all__ as future_builtins_names
#!/usr/bin/env python
import sys
import warnings
from importlib import import_module
warnings.simplefilter("ignore")
# print sys.argv[1:]
# for is_module, object_name, _, module_name in sys.argv[1:]: