diff --git a/docs/source/_static/images/profile.svg b/docs/source/_static/images/profile.svg new file mode 100644 index 00000000..e6212614 --- /dev/null +++ b/docs/source/_static/images/profile.svg @@ -0,0 +1,141 @@ + + + + +
+
+
+ + + + + +
pytask
+
+
+
──────────────────────────────────────── Start pytask session ────────────────────────────────────────
+
Platform: win32 -- Python 3.10.0, pytask 0.2.0, pluggy 1.0.0
+
Root: C:\Users\pytask-dev\git\software_patents
+
Configuration: C:\Users\pytask-dev\git\software_patents\pyproject.toml
+
Plugins: latex-0.2.0, parallel-0.2.0
+
Collected 18 tasks.
+
+
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━┓
+
Task Duration (in s) Size of Products
+
┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━┩
+
task_apply_bh_to_indicators.py::task_apply_bh_to_indicators[… 3.93 123 MB
+
task_apply_bh_to_indicators.py::task_apply_bh_to_indicators[… 0.09 13 MB
+
task_replicate_results_of_bh2007.py::task_replicate_results_… 0.09 13 MB
+
task_replicate_results_of_bh2007.py::task_replicate_results_… 8.99 8 MB
+
task_merge_indicators.py::task_merge_indicators 74.44 499 MB
+
task_prepare_bessen_hunt_2007.py::task_prepare_bessen_hunt_2… 80.15 15 MB
+
task_prepare_datasets.py::task_copy_files[depends_on0-produc… 0.11 35 MB
+
task_prepare_datasets.py::task_copy_files[depends_on1-produc… 0.92 35 MB
+
task_prepare_datasets.py::task_copy_files[depends_on2-produc… 0.11 34 MB
+
task_prepare_datasets.py::task_copy_files[depends_on3-produc… 0.12 35 MB
+
task_prepare_datasets.py::task_copy_files[depends_on4-produc… 0.12 35 MB
+
task_prepare_datasets.py::task_copy_files[depends_on5-produc… 0.44 143 MB
+
task_prepare_datasets.py::task_copy_files[depends_on6-produc… 0.73 143 MB
+
task_prepare_datasets.py::task_copy_files[depends_on7-produc… 0.37 114 MB
+
task_prepare_datasets.py::task_copy_files[depends_on8-produc… 0.62 170 MB
+
task_visualize_distribution_of_patents.py::task_visualize_di… 17.3 42 KB
+
task_compile_document.py::task_compile_thesis 7.08 539 KB
+
task_table_bessen_hunt_2007_and_replication.py::task_table_b… 0.09 784 bytes
+
└───────────────────────────────────────────────────────────────┴─────────────────┴──────────────────┘
+
──────────────────────────────────────────────────────────────────────────────────────────────────────
+
+
+
+
+ +
+
diff --git a/docs/source/changes.md b/docs/source/changes.md index 23da2eaf..f3c06011 100644 --- a/docs/source/changes.md +++ b/docs/source/changes.md @@ -5,7 +5,11 @@ chronological order. Releases follow [semantic versioning](https://semver.org/) releases are available on [PyPI](https://pypi.org/project/pytask) and [Anaconda.org](https://anaconda.org/conda-forge/pytask). -## 0.2.0 - 2022-xx-xx +## 0.2.1 - 2022-xx-xx + +- {pull}`259` adds an `.svg` for profiling tasks. + +## 0.2.0 - 2022-04-14 - {pull}`211` allows for flexible dependencies and products which can be any pytree of native Python objects as supported by pybaum. diff --git a/docs/source/tutorials/profiling_tasks.md b/docs/source/tutorials/profiling_tasks.md index cd79795c..ea473d56 100644 --- a/docs/source/tutorials/profiling_tasks.md +++ b/docs/source/tutorials/profiling_tasks.md @@ -9,5 +9,5 @@ $ pytask profile Here is an example -```{image} /_static/images/pytask-profile.png +```{image} /_static/images/profile.svg ``` diff --git a/scripts/svgs/profile.py b/scripts/svgs/profile.py new file mode 100644 index 00000000..79a3496c --- /dev/null +++ b/scripts/svgs/profile.py @@ -0,0 +1,12 @@ +from __future__ import annotations + +import pytask +from click.testing import CliRunner + + +if __name__ == "__main__": + runner = CliRunner() + + pytask.console.record = True + runner.invoke(pytask.cli, ["profile"]) + pytask.console.save_svg("profile.svg", title="pytask")