Skip to content

Instantly share code, notes, and snippets.

View kinverarity1's full-sized avatar

Kent kinverarity1

  • 01:13 (UTC +10:30)
View GitHub Profile
@kinverarity1
kinverarity1 / loaded_modules.py
Last active June 3, 2020 13:05
List loaded Python modules and packages, and show their version numbers and/or Git repository's HEAD commit SHA. Example: http://nbviewer.ipython.org/6038316/zz_example.ipynb
'''List loaded modules and packages, and show their version numbers
and/or Git repository's HEAD commit SHA.
'''
# Standard library modules
import types
# Third-party packages
import git # GitPython
@kinverarity1
kinverarity1 / profile_tools.py
Created July 25, 2013 13:19
Functions for finding points and distances along multi-segment lines.
'''Functions for finding points and distances along multi-segment lines.
All angles are mathematical convention.
'''
import numpy as np
def distance(point1, point2):
'''Return distance between *point1* and *point2*.'''
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@kinverarity1
kinverarity1 / broadsingle.ipynb
Created October 12, 2013 08:20
Warburton 1D anisotropic inversions
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@kinverarity1
kinverarity1 / baby.ipynb
Created October 12, 2013 08:26
warburton anisotropic 1d inversions
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@kinverarity1
kinverarity1 / baby.ipynb
Created October 12, 2013 08:26
warburton anisotropic 1d inversions
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@kinverarity1
kinverarity1 / broadsingle.ipynb
Created October 12, 2013 08:27
warburton anisotropic 1d inversions
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@kinverarity1
kinverarity1 / bs.ipynb
Created October 12, 2013 08:27
warburton anisotropic 1d inversions
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@kinverarity1
kinverarity1 / wellpy.las.read_v1_2.ipynb
Created December 23, 2013 12:45
wellpy.las.read_v1_2 example
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
from __future__ import print_function
import matplotlib.pyplot as plt
import bhlogging
inch2mm = lambda x: x * 25.4
mm2inch = lambda x: x / 25.4
fig_size = (8, 10)