Skip to content

Commit

Permalink
Fix some paths and names
Browse files Browse the repository at this point in the history
  • Loading branch information
JulianKarlBauer committed May 10, 2024
1 parent ace0b1b commit fb83c9d
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 15 deletions.
2 changes: 1 addition & 1 deletion scripts/s010_closest_eigensystems.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

np.set_printoptions(linewidth=100000)

directory = os.path.join("output", "s007")
directory = os.path.join("output", "s010")
os.makedirs(directory, exist_ok=True)

np.random.seed(seed=100)
Expand Down
2 changes: 1 addition & 1 deletion scripts/s101_jb_an_CK.py → scripts/s101_jkb_to_CK.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ def sym_to_num_tensor(N4):
key = "cubic"

ax.set_title(key)
directory = os.path.join("output", "s001")
directory = os.path.join("output", "s101")
os.makedirs(directory, exist_ok=True)
path_picture = os.path.join(directory, key + ".png")
plt.savefig(path_picture)
2 changes: 1 addition & 1 deletion scripts/s134_plotly_interpolate_transv_fields.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
np.random.seed(seed=100)
np.set_printoptions(linewidth=100000)

directory = os.path.join("output", "s034")
directory = os.path.join("output", "s134")
os.makedirs(directory, exist_ok=True)


Expand Down
2 changes: 1 addition & 1 deletion scripts/s137_plotly_field.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
np.random.seed(seed=100)
np.set_printoptions(linewidth=100000)

directory = os.path.join("output", "s037")
directory = os.path.join("output", "s137")
os.makedirs(directory, exist_ok=True)


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
np.random.seed(seed=100)
np.set_printoptions(linewidth=100000)

directory = os.path.join("output", "s034")
directory = os.path.join("output", "s138")
os.makedirs(directory, exist_ok=True)


Expand Down
24 changes: 14 additions & 10 deletions test/scripts_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,20 +22,13 @@ def get_paths_of_scripts(path_glob, exclude_sub_strings):
return plot_script_paths_sorted_reduced


class Test_scripts:
class Test_scripts_in_main_dir:
@pytest.mark.parametrize(
"path_script",
get_paths_of_scripts(
path_glob=os.path.join(PROJECT_DIR, "s*.py"),
exclude_sub_strings=[
"setup",
"s001",
"s003",
"s004",
"s005",
"s007",
"s012",
"s037",
],
),
)
Expand All @@ -45,7 +38,7 @@ def test_execute_scripts(self, path_script):
runpy.run_path(path_script, init_globals={}, run_name="__main__")


class Test_scripts_interpolation:
class Test_scripts_in_scripts_dir:
@pytest.mark.parametrize(
"path_script",
get_paths_of_scripts(
Expand All @@ -54,7 +47,18 @@ class Test_scripts_interpolation:
"scripts",
"s*.py",
),
exclude_sub_strings=["s021", "s022", "s040"],
exclude_sub_strings=[
"s021",
"s022",
"s040",
"s101",
"s103",
"s104",
"s105",
"s107",
"s112",
"s137",
],
),
)
def test_execute_scripts(self, path_script):
Expand Down

0 comments on commit fb83c9d

Please sign in to comment.