forked from ManuelBuenAbad/snr_ghosts
-
Notifications
You must be signed in to change notification settings - Fork 1
/
firstcell.py
43 lines (32 loc) · 839 Bytes
/
firstcell.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# getting future division
from __future__ import division
# autoreloading for imported modules
%load_ext autoreload
%autoreload 2
# numpy
import numpy as np
from numpy import pi, sqrt, log, log10, power, exp
#scipy
from scipy.interpolate import interp1d
# matplotlib
import matplotlib.pyplot as plt
from matplotlib import rcParams
from matplotlib import rc
from matplotlib.lines import Line2D
# other
import os
import sys
from tqdm import tqdm
# parallelization
from multiprocessing import Pool, Manager
# matplotlib style
%matplotlib inline
%config InlineBackend.figure_format = "retina"
rcParams['figure.figsize'] = (13, 8)
rcParams['font.family'] = 'serif'
rcParams['font.serif'] = ['New Times Roman']
rc('text', usetex=True)
# current directory
current_dir = os.getcwd()
# include paths from above
sys.path.insert(0, '../')