Skip to content

Commit 4ced2ca

Browse files
committed
Updates C++ and some unit tests
1 parent d77a550 commit 4ced2ca

File tree

16 files changed

+1000
-1045
lines changed

16 files changed

+1000
-1045
lines changed

RATapi/examples/absorption/absorption.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ def absorption():
99
"""Custom layers model including absorption"""
1010
problem = RAT.Project(
1111
name="Absorption example",
12-
calculation="non polarised",
12+
calculation="normal",
1313
model="custom layers",
1414
geometry="substrate/liquid",
1515
absorption=True,

RATapi/examples/languages/setup_problem.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ def make_example_problem():
3838
# and H2O. Load these datafiles in and put them in the data block
3939

4040
# Read in the datafiles
41-
data_path = pathlib.Path("../data")
41+
data_path = pathlib.Path(__file__).parents[1] / "data"
4242
D2O_data = np.loadtxt(data_path / "c_PLP0016596.dat", delimiter=",")
4343
SMW_data = np.loadtxt(data_path / "c_PLP0016601.dat", delimiter=",")
4444
H2O_data = np.loadtxt(data_path / "c_PLP0016607.dat", delimiter=",")

0 commit comments

Comments
 (0)