-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add task to create other illustrations
- Loading branch information
Showing
3 changed files
with
272 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
33 changes: 33 additions & 0 deletions
33
src/tranquilo_dev/plotting/task_create_presentation_illustrations.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
import pytask | ||
from tranquilo_dev.config import BLD | ||
from tranquilo_dev.plotting.illustrations import create_noise_plots | ||
from tranquilo_dev.plotting.illustrations import create_other_illustration_plots | ||
|
||
BLD_SLIDEV = BLD.joinpath("bld_slidev") | ||
|
||
|
||
@pytask.mark.produces({k: BLD_SLIDEV.joinpath(f"noise_plot_{k}.svg") for k in range(5)}) | ||
def task_create_noise_plots(produces): | ||
figures = create_noise_plots() | ||
for path, fig in zip(produces.values(), figures): | ||
fig.write_image(path) | ||
|
||
|
||
OTHER_ILLUSTRATION_NAMES = [ | ||
*[f"animation_{k}.svg" for k in range(6)], | ||
*[f"line_points_{k}.svg" for k in range(1, 4)], | ||
"origin_plot.svg", | ||
"empty_speculative_trustregion_small_scale.svg", | ||
"empty_speculative_trustregion_large_scale.svg", | ||
"sampled_speculative_trustregion_small_scale.svg", | ||
"sampled_speculative_trustregion_large_scale.svg", | ||
"line_and_speculative_points.svg", | ||
"checklayout.svg", | ||
] | ||
|
||
|
||
@pytask.mark.produces([BLD_SLIDEV.joinpath(name) for name in OTHER_ILLUSTRATION_NAMES]) | ||
def task_create_other_illustration_plots(produces): | ||
figures = create_other_illustration_plots() | ||
for path in produces.values(): | ||
figures[path.name].write_image(path) |
12 changes: 0 additions & 12 deletions
12
src/tranquilo_dev/plotting/task_create_publication_illustrations.py
This file was deleted.
Oops, something went wrong.