Skip to content

Instantly share code, notes, and snippets.

View LukasMosser's full-sized avatar
🚀

Lukas Mosser LukasMosser

🚀
View GitHub Profile
conda env create -f environment.yml
Using Anaconda API: https://api.anaconda.org
Fetching package metadata .............
Solving package specifications: .
ca-certificate 100% |################################| Time: 0:00:00 309.01 kB/s
libsodium-1.0. 100% |################################| Time: 0:00:00 1.47 MB/s
libxcb-1.13-h1 100% |################################| Time: 0:00:00 10.18 MB/s
openssl-1.0.2o 100% |################################| Time: 0:00:00 13.41 MB/s
pcre-8.42-h439 100% |################################| Time: 0:00:00 12.18 MB/s
xz-5.2.3-h5e93 100% |################################| Time: 0:00:00 8.83 MB/s
@LukasMosser
LukasMosser / equations2cats.py
Created February 22, 2017 17:43
Using pyautogui to draw parametric equations in your browser
import pyautogui as pa
import numpy as np
def main():
pa.moveTo(895, 610)
scaling_x = 5
scaling_y = 5
x_, y_ = 0, 0
for t in np.linspace(0, 10*np.pi, 40):
x, y = scaling_x* t * np.sin(2*t), scaling_y * t * np.cos(2*t)
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
{
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"# Python Tutorial 1"
]
},
{
@LukasMosser
LukasMosser / k_fold_training_seg
Created October 26, 2016 20:47
K Fold training, with one well as blind well.
%matplotlib inline
import pandas as pd
import numpy as np
import matplotlib as mpl
import matplotlib.pyplot as plt
import matplotlib.colors as colors
from mpl_toolkits.axes_grid1 import make_axes_locatable
from pandas import set_option
from sklearn import preprocessing
@LukasMosser
LukasMosser / Multiple Horizons.ipynb
Created September 16, 2016 14:03
Modification of wedge model by agile geoscience allowing multiple curved horizons
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@LukasMosser
LukasMosser / PolynomialWedgeModel.ipynb
Created September 16, 2016 10:22
Modification of AgileGeosciences x lines of python blog on the classic x wedge
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@LukasMosser
LukasMosser / MontePetro Probabilistic Reserves.ipynb
Created January 24, 2015 16:06
MontePetro - Probabilistic Reserves
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@LukasMosser
LukasMosser / MontePetro Bone Density.ipynb
Last active August 29, 2015 14:14
MontePetro Bone Density Estimation
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@LukasMosser
LukasMosser / Geomechanics.ipynb-2.json
Created May 11, 2014 18:50
Homework 5 for Mark Zobacks Geomechanics Course
{
"metadata": {
"name": "Geomechanics"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
{