Skip to content

Commit 7f2d234

Browse files
committed
ensure that files written in docs are properly deleted
1 parent d98b395 commit 7f2d234

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

docs/src/model_creation/model_file_loading_and_export.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,13 @@ end
1313
```
1414
and next saving it to a file
1515
```@example file_handling_1
16-
save_reactionsystem("cross_coupling.jl", rn)
16+
save_reactionsystem("cross_coupling.jl", cc_system)
1717
```
1818
Here, `save_reactionsystem`'s first argument is the path to the file where we wish to save it. The second argument is the `ReactionSystem` we wish to save. To load the file, we use Julia's `include` function:
1919
```@example file_handling_1
20-
loaded_rn = include("cross_coupling.jl")
20+
cc_loaded = include("cross_coupling.jl")
2121
rm("cross_coupling.jl") # hide
22-
loaded_rn # hide
22+
cc_loaded # hide
2323
```
2424

2525
!!! note
@@ -66,6 +66,8 @@ serialize("saved_parameters.jls", ps)
6666
Here, we use the extension ".jls" (standing for **J**u**L**ia **S**erialization), however, any extension code can be used. To load a structure, we can then use
6767
```@example file_handling_2
6868
loaded_sol = deserialize("saved_parameters.jls")
69+
rm("saved_parameters.jls") # hide
70+
loaded_sol # hide
6971
```
7072

7173
## [Loading .net files using ReactionNetworkImporters.jl](@id file_loading_rni_net)

0 commit comments

Comments
 (0)