Skip to content

Commit 594f06a

Browse files
committed
Merge remote-tracking branch 'origin/doc-revamp' into doc-revamp
2 parents f207ea4 + c2151e4 commit 594f06a

File tree

3 files changed

+97
-7
lines changed

3 files changed

+97
-7
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.
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 = {Wild, Christopher and Foster, Michael and Walkinshaw, Neil and Clark, Andrew G. and Allian, Farhad and Somers, Richard},
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 [pytest](https://pytest.org/en/latest/) framework as our testing suite, [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/index.rst

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,8 +93,6 @@ system-under-test that is expected to cause a change to some output(s).
9393
:hidden:
9494
:caption: Home
9595

96-
self
97-
9896
.. toctree::
9997
:hidden:
10098
:maxdepth: 1

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)