This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import numpy as np | |
| import numba | |
| from numba import njit | |
| import torch | |
| from torch import nn | |
| import seaborn as sns | |
| import matplotlib.pyplot as plt | |
| import matplotlib.animation as animation |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env ruby | |
| require "bundler/inline" | |
| gemfile do | |
| source "https://rubygems.org" | |
| gem "tty-logger", "~> 0.6" | |
| gem "pry" | |
| gem "dotiw" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python | |
| # -*- coding: UTF-8 -*- | |
| # Roughly based on: http://stackoverflow.com/questions/11443302/compiling-numpy-with-openblas-integration | |
| from __future__ import print_function | |
| import numpy as np | |
| from time import time |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import seaborn as sns | |
| import matplotlib.pyplot as plt | |
| import numpy as np | |
| from matplotlib.animation import FuncAnimation | |
| sns.set(style="ticks", context="paper") | |
| sns.set_palette("bright") | |
| plt.style.use("dark_background") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import numpy as np | |
| from scipy import integrate | |
| from matplotlib import pyplot as plt | |
| from mpl_toolkits.mplot3d import Axes3D | |
| from matplotlib.colors import cnames | |
| from matplotlib import animation | |
| import matplotlib as mpl |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import matplotlib.pyplot as plt | |
| from matplotlib import animation | |
| import numpy as np | |
| from sympy import symbols | |
| from sympy.physics import mechanics | |
| from sympy import Dummy, lambdify | |
| from scipy.integrate import odeint |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python | |
| # May 2017 Markus Ernst | |
| import datetime as dt # Python standard library datetime module | |
| import numpy as np | |
| import sys, getopt, os # file handling and operators | |
| from netCDF4 import Dataset # netCDF4 package for reading files | |
| from StringIO import StringIO | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python | |
| # June 2017 Markus Ernst | |
| # basic usage from the command-line: python generate_SCM_data.py | |
| import datetime as dt # Python standard library datetime module | |
| import numpy as np | |
| import sys, getopt, os # file handling and operators | |
| from netCDF4 import Dataset # netCDF4 package for reading files | |
| from StringIO import StringIO |