Skip to content

Commit e7b6460

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent a6ebd58 commit e7b6460

14 files changed

Lines changed: 50 additions & 41 deletions

‎postprocessing/Configuration.py‎

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
# pylint: disable=line-too-long, too-many-statements, too-few-public-methods, too-many-instance-attributes, invalid-name
22
"""
3-
Post-processing, ActiveMQ, and logging configuration
3+
Post-processing, ActiveMQ, and logging configuration
44
5-
The original code for this class was take from https://github.com/mantidproject/autoreduce
5+
The original code for this class was take from https://github.com/mantidproject/autoreduce
66
7-
@copyright: 2014 Oak Ridge National Laboratory
7+
@copyright: 2014 Oak Ridge National Laboratory
88
"""
9+
910
import sys
1011
import os
1112
import json

‎postprocessing/Consumer.py‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
66
@copyright: 2014 Oak Ridge National Laboratory
77
"""
8+
89
import json
910
import logging
1011
import time

‎postprocessing/PostProcessAdmin.py‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
1515
@copyright: 2014 Oak Ridge National Laboratory
1616
"""
17+
1718
import logging
1819
import json
1920
import socket

‎postprocessing/processors/base_processor.py‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
"""
2-
The base processor defines a base class to be used to process jobs.
3-
An input AMQ queue is defined. The post-processing client will
4-
automatically register with that queue upon starting.
2+
The base processor defines a base class to be used to process jobs.
3+
An input AMQ queue is defined. The post-processing client will
4+
automatically register with that queue upon starting.
55
6-
@copyright: 2014-2015 Oak Ridge National Laboratory
6+
@copyright: 2014-2015 Oak Ridge National Laboratory
77
"""
88

99
import os

‎postprocessing/processors/calvera_processor.py‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
"""
2-
` Processor for Calvera cataloging
2+
` Processor for Calvera cataloging
33
4-
@copyright: 2023 Oak Ridge National Laboratory
4+
@copyright: 2023 Oak Ridge National Laboratory
55
"""
66

77
import copy
@@ -74,7 +74,7 @@ def _read_reduced_data(self, filepath):
7474
contents = json.load(f)
7575
if "input_files" not in contents or "output_files" not in contents:
7676
logging.info(
77-
"%s does not appear to be a JSON reduction file so will not " "send to Calvera",
77+
"%s does not appear to be a JSON reduction file so will not send to Calvera",
7878
filepath,
7979
)
8080
return None

‎postprocessing/processors/job_handling.py‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
"""
2-
Handling of job execution.
2+
Handling of job execution.
33
4-
@copyright: 2014 Oak Ridge National Laboratory
4+
@copyright: 2014 Oak Ridge National Laboratory
55
"""
6+
67
import logging
78
import subprocess
89
import os

‎postprocessing/processors/oncat_processor.py‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
"""
2-
Processor for ONCat cataloging
2+
Processor for ONCat cataloging
33
4-
@copyright: 2017 Oak Ridge National Laboratory
4+
@copyright: 2017 Oak Ridge National Laboratory
55
"""
6+
67
import os
78
import logging
89
import json

‎postprocessing/processors/oncat_reduced_processor.py‎

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
"""
2-
Processor for ONCat cataloging
2+
Processor for ONCat cataloging
33
4-
@copyright: 2017 Oak Ridge National Laboratory
4+
@copyright: 2017 Oak Ridge National Laboratory
55
"""
6+
67
import os
78
import logging
89
import json
@@ -57,7 +58,7 @@ def ingest(self, location):
5758
contents = json.load(f)
5859
if "input_files" not in contents or "output_files" not in contents:
5960
logging.info(
60-
"%s does not appear to be a JSON reduction file so will not " "call ONCat",
61+
"%s does not appear to be a JSON reduction file so will not call ONCat",
6162
location,
6263
)
6364
return

‎postprocessing/processors/test_processor.py‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
"""
2-
Test Processor
2+
Test Processor
33
4-
@copyright: 2014 Oak Ridge National Laboratory
4+
@copyright: 2014 Oak Ridge National Laboratory
55
"""
6+
67
from .base_processor import BaseProcessor
78
import json
89

‎postprocessing/queueProcessor.py‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
#!/usr/bin/env python3
22
"""
3-
Post-processing agent start script
3+
Post-processing agent start script
44
5-
@copyright: 2014 Oak Ridge National Laboratory
5+
@copyright: 2014 Oak Ridge National Laboratory
66
"""
7+
78
import importlib.metadata
89
import logging
910

0 commit comments

Comments
 (0)