Refactor code

This commit is contained in:
Joshua Coles 2023-03-17 21:49:53 +00:00
parent 1b00fb5253
commit 3b631a94f8
8 changed files with 8 additions and 9 deletions

View File

@ -1,6 +1,6 @@
import numpy as np
import matplotlib.pyplot as plt
from notebooks.lib import read_load
from lib.lib import read_load
alpha = read_load("../data/alpha")
meaned_by_N = alpha.groupby('N').agg({'fd': ['mean', 'std']}) \

View File

@ -1,7 +1,7 @@
import matplotlib.pyplot as plt
from notebooks.graphs import cr_n
from notebooks.lib import read_load
from lib.graphs import cr_n
from lib.lib import read_load
alpha = read_load("../data/alpha")

View File

@ -1,6 +1,6 @@
from matplotlib import pyplot as plt
from notebooks.lib import read_sp, read_xyz_alt, aggregate_sp_fd
from lib.lib import read_sp, read_xyz_alt, aggregate_sp_fd
data_3d_sp = read_sp("../data/rust-3d-offaxis-sp", read_xyz_alt)
sp_fd_data = aggregate_sp_fd(data_3d_sp)

View File

@ -1,7 +1,6 @@
import numpy as np
from matplotlib import pyplot as plt
from notebooks.lib import read_sp, aggregate_sp_fd
from lib.lib import read_sp, aggregate_sp_fd
c_sp = read_sp("../data/stick-probability")
rust_sp = read_sp("../data/rust-sticking-probability")

View File

@ -1,6 +1,6 @@
from matplotlib import pyplot as plt
from notebooks.lib import read_sp, aggregate_sp_fd
from lib.lib import read_sp, aggregate_sp_fd
data_2d_sp = read_sp("../data/stick-probability")
sp_fd_data = aggregate_sp_fd(data_2d_sp)

View File

@ -2,7 +2,7 @@ import numpy as np
import scipy
from matplotlib import pyplot as plt
from notebooks.lib import linear
from lib.lib import linear
def cr_n(df, ignore_prefix=0, data_color="tab:blue", fit_color="tab:red"):

View File

@ -13,7 +13,7 @@
"import matplotlib.pyplot as plt\n",
"import scipy\n",
"from glob import glob\n",
"from notebooks.lib import read_xyz_alt, read_load, linear, mean_across"
"from lib.lib import read_xyz_alt, read_load, linear, mean_across"
]
},
{