Skip to content

Commit 61fa736

Browse files
authored
Merge pull request #279 from CITCOM-project/doc-revamp
Documentation Revamp
2 parents f207ea4 + 835cf4d commit 61fa736

File tree

6 files changed

+107
-14
lines changed

6 files changed

+107
-14
lines changed

README.md

Lines changed: 96 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,101 @@ system-under-test that is expected to cause a change to some output(s).
2424

2525
## Installation
2626

27-
See the Read the Docs site for [installation
28-
instructions](https://causal-testing-framework.readthedocs.io/en/latest/installation.html).
27+
### Requirements
28+
- Python 3.9 and 3.10 only.
2929

30-
## Documentation
30+
- Microsoft Visual C++ 14.0+ (Windows only).
3131

32-
Further information on causal inference, the code, usage and more can be found on the [docs](https://causal-testing-framework.readthedocs.io/en/latest/)
32+
To install the latest stable release of the Causal Testing Framework:
33+
34+
``pip install causal-testing-framework``
35+
36+
or if you want to install with the development packages/tools:
37+
38+
``pip install causal-testing-framework[dev]``
39+
40+
Alternatively, you can install directly via source:
41+
42+
```shell
43+
git clone https://github.com/CITCOM-project/CausalTestingFramework
44+
cd CausalTestingFramework
45+
```
46+
then to install a specific release:
47+
48+
```shell
49+
git fetch --all --tags --prune
50+
git checkout tags/<tag> -b <branch>
51+
pip install . # For core API only
52+
pip install -e . # For editable install, useful for development work
53+
```
54+
For more information on how to use the Causal Testing Framework, please refer to our [documentation](https://causal-testing-framework.readthedocs.io/en/latest/?badge=latest).
55+
## How to Cite
56+
If you use our framework in your work, please cite the following:
57+
58+
``This research has used version X.Y.Z (software citation) of the
59+
Causal Testing Framework (paper citation).``
60+
61+
The paper citation should be the Causal Testing Framework [paper](https://dl.acm.org/doi/10.1145/3607184),
62+
and the software citation should contain the specific Figshare [DOI](https://orda.shef.ac.uk/articles/software/CITCOM_Software_Release/24427516) of the version used in your work.
63+
64+
65+
66+
<details>
67+
<summary><b>BibTeX Citations</b></summary>
68+
69+
<details>
70+
<summary>Paper</summary>
71+
72+
```
73+
@ARTICLE{Clark_etal_2023,
74+
author = {Clark, Andrew G. and Foster, Michael and Prifling, Benedikt and Walkinshaw, Neil and Hierons, Robert M.
75+
and Schmidt, Volker and Turner, Robert D.},
76+
title = {Testing Causality in Scientific Modelling Software},
77+
year = {2023},
78+
publisher = {Association for Computing Machinery},
79+
url = {https://doi.org/10.1145/3607184},
80+
doi = {10.1145/3607184},
81+
journal = {ACM Trans. Softw. Eng. Methodol.},
82+
month = {jul},
83+
keywords = {Software Testing, Causal Testing, Causal Inference}
84+
}
85+
```
86+
87+
</details>
88+
89+
<details>
90+
<summary>Software (example)</summary>
91+
92+
```
93+
@ARTICLE{Wild2023,
94+
author = {Foster, Michael and Clark, Andrew G. and Somers, Richard and Wild, Christopher and Allian, Farhad and Hierons, Robert M. and Wagg, David and Walkinshaw, Neil},
95+
title = {CITCOM Software Release},
96+
year = {2023},
97+
month = {nov},
98+
url = {https://orda.shef.ac.uk/articles/software/CITCOM_Software_Release/24427516},
99+
doi = {10.15131/shef.data.24427516.v1}
100+
}
101+
```
102+
</details>
103+
104+
</details>
105+
106+
## How to Contribute
107+
108+
To contribute to our work, please ensure the following:
109+
110+
1. [Fork the repository](https://help.github.com/articles/fork-a-repo/) into your own GitHub account, and [clone](https://docs.github.com/en/repositories/creating-and-managing-repositories/cloning-a-repository) it to your local machine.
111+
2. [Create a new branch](https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/creating-and-deleting-branches-within-your-repository) in your forked repository. Give this branch an appropriate name, and create commits that describe the changes.
112+
3. [Push your changes](https://docs.github.com/en/get-started/using-git/pushing-commits-to-a-remote-repository) to your new branch in your remote fork, compare with `CausalTestingFramework/main`, and ensure any conflicts are resolved.
113+
4. Create a draft [pull request](https://docs.github.com/en/get-started/quickstart/hello-world#opening-a-pull-request) from your branch, and ensure you have [linked](https://docs.github.com/en/get-started/writing-on-github/working-with-advanced-formatting/autolinked-references-and-urls) it to any relevant issues in your description.
114+
115+
We use the [unittest]() module to develop our tests and the [pytest](https://pytest.org/en/latest/) framework as our test discovery, [pylint](https://pypi.org/project/pylint/) for our code analyser, and [black](https://pypi.org/project/black/) for our code formatting.
116+
To find the other (optional) developer dependencies, please check `pyproject.toml`.
117+
118+
119+
120+
## Acknowledgements
121+
122+
The Causal Testing Framework is supported by the UK's Engineering and Physical Sciences Research Council (EPSRC),
123+
with the project name [CITCOM](https://gow.epsrc.ukri.org/NGBOViewGrant.aspx?GrantRef=EP/T030526/1) - "_Causal Inference for Testing of Computational Models_"
124+
under the grant EP/T030526/1.

docs/source/dev/actions_and_webhooks.rst

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Github Actions and Webhooks
44
Actions
55
--------------
66

7-
Currently, this project makes use of 3 `Github Actions <https://github.com/features/actions>`_,
7+
Currently, this project makes use of 4 `Github Actions <https://github.com/features/actions>`_,
88
which can be found in the
99
`.github/workflows <https://github.com/CITCOM-project/CausalTestingFramework/tree/main/.github/workflows>`_ directory.
1010

@@ -16,14 +16,18 @@ They are:
1616

1717
#. ``publish-to-pypi.yaml``, runs when a new version tag is pushed and publishes that tag version to PyPI.
1818

19+
#. ``figshare.yaml``, releases new versions to `Figshare <https://orda.shef.ac.uk/articles/software/CITCOM_Software_Release/24427516?file=43686015>`_.
20+
21+
#. ``publish-to-dafni.yaml``, which containerises and uploads every major release to `DAFNI <https://www.dafni.ac.uk/>`_.
22+
23+
1924
Webhooks
2025
---------------
2126

22-
The project also uses 3 `Webhooks <https://docs.github.com/en/webhooks-and-events/webhooks/about-webhooks>`_, which can
27+
The project also uses 2 `Webhooks <https://docs.github.com/en/webhooks-and-events/webhooks/about-webhooks>`_, which can
2328
be found in the `project settings <https://github.com/CITCOM-project/CausalTestingFramework/settings>`_ on Github. These
2429
include:
2530

26-
#. `Codacy <https://github.com/codacy>`_
2731

2832
#. `Codecov <https://github.com/codecov>`_
2933

docs/source/images/workflow.png

-180 KB
Binary file not shown.

docs/source/index.rst

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ Causal testing is a :term:`causal inference`-driven framework for functional bla
1010
graphical causal inference (CI) techniques for the specification and functional testing of software from a black-box
1111
perspective. In this framework, we use causal directed acyclic graphs (DAGs) to express the anticipated cause-effect
1212
relationships amongst the inputs and outputs of the system-under-test and the supporting mathematical framework to
13-
relationships amongst the inputs and outputs of the system-under-test and the supporting mathematical framework to
1413
design statistical procedures capable of making causal inferences. Each causal test case focuses on the causal effect
1514
of an intervention made to the system-under test. That is, a prescribed change to the input configuration of the
1615
system-under-test that is expected to cause a change to some output(s).
@@ -37,7 +36,7 @@ system-under-test that is expected to cause a change to some output(s).
3736
}
3837
3938
.zoom-container.zoomed {
40-
transform: scale(2);
39+
transform: scale(4);
4140
cursor: zoom-out;
4241
}
4342
@@ -84,7 +83,7 @@ system-under-test that is expected to cause a change to some output(s).
8483

8584
.. container:: zoom-container
8685

87-
.. image:: /images/workflow.png
86+
.. image:: /images/schematic.png
8887
:class: zoomable-image
8988
:alt: Zoomable Image
9089

@@ -93,8 +92,6 @@ system-under-test that is expected to cause a change to some output(s).
9392
:hidden:
9493
:caption: Home
9594

96-
self
97-
9895
.. toctree::
9996
:hidden:
10097
:maxdepth: 1

docs/source/installation.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ Getting started
33

44
Requirements
55
---------------
6-
* Python >= 3.9.
6+
* Python 3.9 and 3.10 only.
77
* `Microsoft Visual C++ <https://docs.microsoft.com/en-us/cpp/windows/latest-supported-vc-redist>`_ 14.0+ (Windows only).
88

99

examples/poisson-line-process/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@ To run this case study:
66
1. Ensure all project dependencies are installed by running `pip install .` in the top level directory
77
(instructions are provided in the project README).
88
2. Change directory to `causal_testing/examples/poisson-line-process`.
9-
3. Run the command `python test_poisson_process.py`
9+
3. Run the command `python example_poisson_process.py`
1010

1111
This should print a series of causal test results and produce two CSV files. `intensity_num_shapes_results_random_1000.csv` corresponds to table 1, and `width_num_shapes_results_random_1000.csv` relates to our findings regarding the relationship of width and `P_u`.

0 commit comments

Comments
 (0)