Skip to content

Commit

Permalink
[pre-commit.ci] Automatic python and c++ formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
pre-commit-ci[bot] committed Oct 15, 2024
1 parent ec773be commit 20842fe
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
import subprocess
from scipy.stats import wasserstein_distance


def main(dependency="test072_coinc_sorter_step1_config1.py"):
# test paths
paths = utility.get_default_test_paths(__file__, output_folder="test072")
Expand All @@ -21,9 +22,7 @@ def main(dependency="test072_coinc_sorter_step1_config1.py"):
# If the output of test072_coinc_sorter_step1_config1.py does not exist, create it
if not os.path.isfile(paths.output / "test72_output_1.root"):
print("---------- Begin of test072_coinc_sorter_step1_config1.py ----------")
subprocess.call(
["python", paths.current / dependency]
)
subprocess.call(["python", paths.current / dependency])
print("----------- End of test072_coinc_sorter_step1_config1.py -----------")

# open root file
Expand Down Expand Up @@ -115,6 +114,6 @@ def main(dependency="test072_coinc_sorter_step1_config1.py"):

utility.test_ok(is_ok)


if __name__ == "__main__":
main()

Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
import numpy as np
from scipy.stats import wasserstein_distance


def main(dependency="test072_coinc_sorter_step1_config1.py"):
# test paths
paths = utility.get_default_test_paths(__file__, output_folder="test072")
Expand All @@ -21,9 +22,7 @@ def main(dependency="test072_coinc_sorter_step1_config1.py"):
# If the output of test072_coinc_sorter_step1_config1.py does not exist, create it
if not os.path.isfile(paths.output / "test72_output_1.root"):
print("---------- Begin of test072_coinc_sorter_step1_config1.py ----------")
subprocess.call(
["python", paths.current / dependency]
)
subprocess.call(["python", paths.current / dependency])
print("----------- End of test072_coinc_sorter_step1_config1.py -----------")

# open root file
Expand Down Expand Up @@ -115,6 +114,6 @@ def main(dependency="test072_coinc_sorter_step1_config1.py"):

utility.test_ok(is_ok)


if __name__ == "__main__":
main()

Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
import numpy as np
from scipy.stats import wasserstein_distance


def main(dependency="test072_coinc_sorter_step1_config1.py"):
# test paths
paths = utility.get_default_test_paths(__file__, output_folder="test072")
Expand All @@ -21,9 +22,7 @@ def main(dependency="test072_coinc_sorter_step1_config1.py"):
# If the output of test072_coinc_sorter_step1_config1.py does not exist, create it
if not os.path.isfile(paths.output / "test72_output_1.root"):
print("---------- Begin of test072_coinc_sorter_step1_config1.py ----------")
subprocess.call(
["python", paths.current / dependency]
)
subprocess.call(["python", paths.current / dependency])
print("----------- End of test072_coinc_sorter_step1_config1.py -----------")

# open root file
Expand Down Expand Up @@ -116,6 +115,6 @@ def main(dependency="test072_coinc_sorter_step1_config1.py"):

utility.test_ok(is_ok)


if __name__ == "__main__":
main()

Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
import numpy as np
from scipy.stats import wasserstein_distance


def main(dependency="test072_coinc_sorter_step1_config1.py"):
# test paths
paths = utility.get_default_test_paths(__file__, output_folder="test072")
Expand All @@ -21,9 +22,7 @@ def main(dependency="test072_coinc_sorter_step1_config1.py"):
# If the output of test072_coinc_sorter_step1_config2.py does not exist, create it
if not os.path.isfile(paths.output / "test72_output_2.root"):
print("---------- Begin of test072_coinc_sorter_step1_config2.py ----------")
subprocess.call(
["python", paths.current / dependency]
)
subprocess.call(["python", paths.current / dependency])
print("----------- End of test072_coinc_sorter_step1_config2.py -----------")

# open root file
Expand Down Expand Up @@ -115,6 +114,6 @@ def main(dependency="test072_coinc_sorter_step1_config1.py"):

utility.test_ok(is_ok)


if __name__ == "__main__":
main()

Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
import numpy as np
from scipy.stats import wasserstein_distance


def main(dependency="test072_coinc_sorter_step1_config1.py"):
# test paths
paths = utility.get_default_test_paths(__file__, output_folder="test072")
Expand Down Expand Up @@ -115,6 +116,6 @@ def main(dependency="test072_coinc_sorter_step1_config1.py"):

utility.test_ok(is_ok)


if __name__ == "__main__":
main()

0 comments on commit 20842fe

Please sign in to comment.