Commit 68d65283 authored by Elijah Andrews's avatar Elijah Andrews

Adjusted file paths.

parent d044286c
......@@ -6,7 +6,7 @@ from common.util.plotting_utils import initialize_plt
import numpy as np
import matplotlib.pyplot as plt
dirs = ["../../../../Data/SlotErrorMeasurement/"]
dirs = ["../../../../Data/SlotSweeps/W2H3b/"]
root_dir = "../../../../Data/SlotSweeps"
for root, _, files in os.walk(root_dir):
if "params.py" in files:
......
......@@ -10,12 +10,18 @@ import numpy as np
import common.util.plotting_utils as plt_util
import experimental.util.analysis_utils as au
import common.util.file_utils as file
from experimental.plotting.analyse_slot import SweepData
plt_util.initialize_plt()
reading_ys = [1.0, 2.0]
# reading_ys = [1.0, 2.0]
# dir_path = "../../../../Data/SlotSweeps/W2H3b/"
dir_path = "../../../../Data/SlotErrorMeasurement/"
# reading_ys = [5.0, 5.5, 6.0, 6.5, 7.0]
# dir_path = "../../../../Data/SlotSweeps/W2H3a/"
dir_path = file.select_dir("../../../../Data/SlotSweeps")
sys.path.append(dir_path)
import params
......@@ -26,6 +32,8 @@ y_offset = params.upper_surface_y
readings = au.load_readings(dir_path + "readings_dump.csv")
readings = sorted(readings, key=lambda r: r.m_x) # type: List[au.Reading]
reading_ys = sorted(set([reading.m_y for reading in readings]))
fig_width = 5.31445 # From LaTeX
fig, axes = plt.subplots(1, len(reading_ys), sharex="all", sharey="all", figsize=(fig_width, fig_width / 2))
plt.subplots_adjust(left=0.1, right=0.98, bottom=0.17, top=0.98, wspace=0.05)
......
......@@ -21,7 +21,7 @@ tile_tl_corner = (131, 55)
tile_br_corner = (292, 236)
scale = 2
dir_path = "../../../../Data/SlotSweeps/w2h3/"
dir_path = "../../../../Data/SlotSweeps/W2H3a/"
readings = au.load_readings(dir_path + "readings_dump.csv")
readings = sorted(readings, key=lambda r: r.idx) # type: List[au.Reading]
......
......@@ -17,8 +17,8 @@ import numerical.util.gen_utils as gen
import numerical.bem as bem
from common.util.plotting_utils import initialize_plt
dirs = ['C:/Users/eda1g15/OneDrive - University of Southampton/Research/Slot Geometries/Data/SlotSweeps/w1h3/',
'C:/Users/eda1g15/OneDrive - University of Southampton/Research/Slot Geometries/Data/SlotSweeps/w2h3/']
dirs = ['C:/Users/eda1g15/OneDrive - University of Southampton/Research/Slot Geometries/Data/SlotSweeps/W1H3/',
'C:/Users/eda1g15/OneDrive - University of Southampton/Research/Slot Geometries/Data/SlotSweeps/W2H3a/']
initialize_plt()
fig, axes = plt.subplots(2, 1, sharex='all', figsize=(5.31445, 4))
......
......@@ -10,7 +10,7 @@ from experimental.util.analysis_utils import load_readings, Reading
from experimental.util.file_utils import select_dir
from common.util.plotting_utils import initialize_plt
dir_path = "../../../../Data/SlotErrorMeasurement/"
dir_path = "../../../../Data/SlotSweeps/W2H3b/"
sys.path.append(dir_path)
import params
......
......@@ -10,7 +10,7 @@ import numpy as np
import experimental.util.analysis_utils as au
from common.util.plotting_utils import initialize_plt
dir_path = "../../../../Data/SlotErrorMeasurement/"
dir_path = "../../../../Data/SlotSweeps/W2H3b/"
sys.path.append(dir_path)
import params
......
......@@ -6,7 +6,7 @@ from common.util.plotting_utils import initialize_plt
import numpy as np
import matplotlib.pyplot as plt
dirs = ["../../../../Data/SlotErrorMeasurement/"]
dirs = ["../../../../Data/SlotSweeps/W2H3b/"]
root_dir = "../../../../Data/SlotSweeps"
for root, _, files in os.walk(root_dir):
if "params.py" in files:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment