Skip to content

Commit 304e58d

Browse files
black + pylint
1 parent 152ec2f commit 304e58d

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

causal_testing/json_front/json_class.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,10 @@ def setup(self, scenario: Scenario):
8282
if self.input_paths.data_paths:
8383
self.data = pd.concat([pd.read_csv(data_file, header=0) for data_file in self.input_paths.data_paths])
8484
if len(self.data) == 0:
85-
raise ValueError("No data found, either provide a path to a file containing data or manually populate the .data attribute with a dataframe before calling .setup()")
85+
raise ValueError(
86+
"No data found, either provide a path to a file containing data or manually populate the .data "
87+
"attribute with a dataframe before calling .setup()"
88+
)
8689
self._populate_metas()
8790

8891
def _create_abstract_test_case(self, test, mutates, effects):

causal_testing/specification/metamorphic_relation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ def generate_metamorphic_relations(dag: CausalDAG) -> list[MetamorphicRelation]:
253253
return metamorphic_relations
254254

255255

256-
if __name__ == "__main__": # pragma: no cover
256+
if __name__ == "__main__": # pragma: no cover
257257
logging.basicConfig(format="%(levelname)s: %(message)s", level=logging.INFO)
258258
parser = argparse.ArgumentParser(
259259
description="A script for generating metamorphic relations to test the causal relationships in a given DAG."

0 commit comments

Comments
 (0)