Skip to content

Commit 25a19d2

Browse files
Add module docstrings
1 parent 1a35dfa commit 25a19d2

16 files changed

+34
-2
lines changed

causal_testing/data_collection/data_collector.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
"""This module contains the DataCollector abstract class, as well as its concrete extensions: ExperimentalDataCollector
2+
and ObservationalDataCollector"""
3+
14
import logging
25
from abc import ABC, abstractmethod
36
from enum import Enum

causal_testing/generation/abstract_causal_test_case.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
"""This module contains the class AbstractCausalTestCase, which generates concrete test cases"""
12
import itertools
23
import logging
34
from enum import Enum

causal_testing/json_front/json_class.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
"""This module contains the JsonUtility class, details of using this class can be found here:
2+
https://causal-testing-framework.readthedocs.io/en/latest/json_front_end.html"""
13
import argparse
24
import json
35
import logging

causal_testing/specification/causal_dag.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
"""This module contains the CausalDAG class, as well as the functions list_all_min_sep and close_seperator"""
2+
13
from __future__ import annotations
24

35
import logging

causal_testing/specification/causal_specification.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
import logging
1+
"""This module holds the abstract CausalSpecification data class, which holds a Scenario and CausalDag"""
2+
23
from abc import ABC
34
from dataclasses import dataclass
45
from typing import Union
@@ -7,7 +8,6 @@
78
from causal_testing.specification.scenario import Scenario
89

910
Node = Union[str, int] # Node type hint: A node is a string or an int
10-
logger = logging.getLogger(__name__)
1111

1212

1313
@dataclass

causal_testing/specification/scenario.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
"""This module holds the Scenario Class"""
12
from collections.abc import Iterable, Mapping
23

34
from tabulate import tabulate

causal_testing/specification/variable.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
"""This module contains the Variable abstract class, as well as its concrete extensions: Input, Output and Meta. The
2+
function z3_types and the private function _coerce are also in this module."""
3+
14
from __future__ import annotations
25
from abc import ABC
36
from collections.abc import Callable

causal_testing/testing/base_test_case.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
"""This module contains the BaseTestCase dataclass, which stores the information required for identification"""
12
from dataclasses import dataclass
23
from causal_testing.specification.variable import Variable
34
from causal_testing.testing.effect import Effect

causal_testing/testing/causal_test_case.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
"""This module contains the CausalTestCase class, a class that holds the information required for a causal test"""
12
import logging
23
from typing import Any
34

causal_testing/testing/causal_test_engine.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
"""This module contains the CausalTestEngine class, a class responsible for the execution of causal tests"""
2+
13
import logging
24

35
from causal_testing.data_collection.data_collector import DataCollector

0 commit comments

Comments
 (0)