Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions examples/csv_output.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
"# not needed if you replace both target filepaths below.\n",
"data_dir = Path(\"data\")\n",
"# Replace this path/to/MFILE.DAT with your target file:\n",
"mfilename = data_dir / \"csv_output_large_tokamak_MFILE.DAT\"\n",
"mfilename = data_dir / \"large_tokamak_1_MFILE.DAT\"\n",
"\n",
"# Either replace this with your own path/to/file.json target,\n",
"# or add your required variables into the identified file:\n",
Expand All @@ -59,7 +59,7 @@
"metadata": {
"celltoolbar": "Slideshow",
"kernelspec": {
"display_name": ".venv",
"display_name": "env",
"language": "python",
"name": "python3"
},
Expand Down
1,800 changes: 0 additions & 1,800 deletions examples/data/csv_output_large_tokamak_MFILE.DAT

This file was deleted.

8,888 changes: 7,691 additions & 1,197 deletions examples/data/large_tokamak_1_MFILE.DAT

Large diffs are not rendered by default.

8,892 changes: 7,693 additions & 1,199 deletions examples/data/large_tokamak_2_MFILE.DAT

Large diffs are not rendered by default.

8,892 changes: 7,693 additions & 1,199 deletions examples/data/large_tokamak_3_MFILE.DAT

Large diffs are not rendered by default.

8,894 changes: 7,694 additions & 1,200 deletions examples/data/large_tokamak_4_MFILE.DAT

Large diffs are not rendered by default.

9,494 changes: 8,046 additions & 1,448 deletions examples/data/large_tokamak_nof_2_MFILE.DAT

Large diffs are not rendered by default.

8,882 changes: 7,630 additions & 1,252 deletions examples/data/large_tokamak_nof_MFILE.DAT

Large diffs are not rendered by default.

9,353 changes: 0 additions & 9,353 deletions examples/data/scan_MFILE.DAT

This file was deleted.

38 changes: 1 addition & 37 deletions examples/examples.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -249,47 +249,11 @@
"\n",
"temp_dir.cleanup()"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Plot scan\n",
"Plot a scanned MFILE."
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"%matplotlib inline\n",
"\n",
"from process.io import plot_scans\n",
"\n",
"# Define working directory relative to project dir and input file name\n",
"input_rel = script_dir / \"data/scan_MFILE.DAT\"\n",
"temp_dir, temp_input_path = copy_to_temp_dir(input_rel)\n",
"\n",
"plot_scans.main(\n",
" args=[\n",
" \"-f\",\n",
" str(temp_input_path),\n",
" \"-yv\",\n",
" \"dx_tf_turn_steel\",\n",
" \"--outputdir\",\n",
" str(temp_input_path.parent),\n",
" ]\n",
")\n",
"\n",
"temp_dir.cleanup()"
]
}
],
"metadata": {
"kernelspec": {
"display_name": ".venv",
"display_name": "env",
"language": "python",
"name": "python3"
},
Expand Down
8 changes: 2 additions & 6 deletions tests/examples/test_examples.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,14 +72,10 @@ def test_csv(examples_temp_data):
csv_notebook_location = examples_temp_data / "csv_output.ipynb"
with testbook(csv_notebook_location, execute=True, timeout=600):
# Check csv file is created
assert os.path.exists(
examples_temp_data / "data/csv_output_large_tokamak_MFILE.csv"
)
assert os.path.exists(examples_temp_data / "data/large_tokamak_1_MFILE.csv")

# Read in the csv file created by test and check it contains positive floats
readcsv = pd.read_csv(
examples_temp_data / "data/csv_output_large_tokamak_MFILE.csv"
)
readcsv = pd.read_csv(examples_temp_data / "data/large_tokamak_1_MFILE.csv")
values = readcsv["Value"]
value_array = np.array(values)
check_float = False
Expand Down