Skip to content

Commit 220c43b

Browse files
Merge pull request #38697 from peterfpeterson/38610_fix_formatting_ornlnext
Fix pre-commit formatting - ornl-next
2 parents 6bb3712 + a1b4068 commit 220c43b

File tree

17 files changed

+31
-31
lines changed

17 files changed

+31
-31
lines changed

Framework/PythonInterface/plugins/algorithms/BASISCrystalDiffraction.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ def PyInit(self):
239239
# incoming beam
240240
self.declareProperty(
241241
FloatArrayProperty("VectorV", [0, 1, 0], array_length_three, direction=Direction.Input),
242-
doc="three item, comma-separated, HKL indices of the direction perpendicular to VectorVand the vertical axis",
242+
doc="three item, comma-separated, HKL indices of the direction perpendicular to VectorV and the vertical axis",
243243
)
244244
# Abscissa view
245245
self.declareProperty(

Framework/PythonInterface/plugins/algorithms/BASISDiffraction.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ def PyInit(self):
193193
# incoming beam
194194
self.declareProperty(
195195
FloatArrayProperty("VectorV", [0, 1, 0], array_length_three, direction=Direction.Input),
196-
doc="three item, comma-separated, HKL indices of the direction perpendicular to VectorVand the vertical axis",
196+
doc="three item, comma-separated, HKL indices of the direction perpendicular to VectorV and the vertical axis",
197197
)
198198
# Abscissa view
199199
self.declareProperty(

Framework/PythonInterface/plugins/algorithms/ElasticEMUauReduction.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ def PyInit(self) -> None:
9797
mandatoryInputRuns.add(StringArrayMandatoryValidator())
9898
self.declareProperty(
9999
StringArrayProperty("SampleRuns", values=[], validator=mandatoryInputRuns),
100-
doc="Comma separated range of sample runs,\nand optional dataset indexes,\neg [cycle::] 7333-7341,7345[:0-23]",
100+
doc="Comma separated range of sample runs, and optional dataset indexes, e.g. [cycle::] 7333-7341,7345[:0-23]",
101101
)
102102

103103
self.declareProperty(
@@ -148,19 +148,19 @@ def PyInit(self) -> None:
148148
self.declareProperty(
149149
name="ScanParameter",
150150
defaultValue="",
151-
doc="Display data for time series environment variable,\nusing optional label and units eg T02SP06 [, Temperature, K]",
151+
doc="Display data for time series environment variable, using optional label and units e.g. T02SP06 [, Temperature, K]",
152152
)
153153

154154
self.declareProperty(
155155
name="ReferenceRange",
156156
defaultValue="",
157-
doc="Normalise the sample counts over the environment or\ntime range. Values are in environment units or secs,\n eg 75-100",
157+
doc="Normalise the sample counts over the environment or time range. Values are in environment units or secs, e.g. 75-100",
158158
)
159159

160160
self.declareProperty(
161161
name="SteppedScanParameter",
162162
defaultValue=False,
163-
doc="If the environment variable is set and held\nduring each scan rather than continuosly changing.",
163+
doc="If the environment variable is set and held during each scan rather than continuously changing.",
164164
)
165165

166166
self.declareProperty(WorkspaceProperty("OutputWorkspace", "", direction=Direction.Output), doc="Name for the reduced workspace.")
@@ -173,7 +173,7 @@ def PyInit(self) -> None:
173173
self.declareProperty(
174174
name="KeepIntermediateWorkspaces",
175175
defaultValue=False,
176-
doc="Whether to keep the intermediate sample and calibration\nworkspaces for diagnostic checks.",
176+
doc="Whether to keep the intermediate sample and calibration workspaces for diagnostic checks.",
177177
)
178178

179179
self.declareProperty(
@@ -502,7 +502,7 @@ def _scan_and_reduce(self, output_ws: str, analyse_runs: Sequence[str], single_b
502502
stepped_env = self.getProperty("SteppedScanParameter").value
503503

504504
# determine the pulse map function and bin parameters
505-
# - if env parameter need to account for stepped or contnuous
505+
# - if env parameter need to account for stepped or continuous
506506
# - if pulse then map to dataset index
507507
if single_bin:
508508
tsmap, bin_params = self.get_single_bin_map(anl_ws)

Framework/PythonInterface/plugins/algorithms/FindGoniometerFromUB.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ def PyInit(self):
100100
defaultValue=0.0,
101101
direction=Direction.Input,
102102
validator=FloatBoundedValidator(lower=0.0, upper=180.0),
103-
doc="omega rotation between component of goniometer axis in XY-plane from +ve Y-axis(perpendicular to ki)",
103+
doc="omega rotation between component of goniometer axis in XY-plane from +ve Y-axis (perpendicular to ki)",
104104
)
105105
self.declareProperty(
106106
name="OmegaHand",

Framework/PythonInterface/plugins/algorithms/InelasticEMUauReduction.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ def PyInit(self):
137137
self.declareProperty(
138138
name="KeepIntermediateWorkspaces",
139139
defaultValue=False,
140-
doc="Whether to keep the intermediate sample and calibration\nworkspaces for diagnostic checks.",
140+
doc="Whether to keep the intermediate sample and calibration workspaces for diagnostic checks.",
141141
)
142142

143143
self.declareProperty(

Framework/PythonInterface/plugins/algorithms/LoadCIF.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ def _getUnitCell(self, cifData):
136136
)
137137

138138
if unitCellValueMap["_cell_length_a"] is None:
139-
raise RuntimeError("The a-parameter of the unit cell is not specified in the supplied CIF.\nKey to look for: _cell_length_a")
139+
raise RuntimeError("The a-parameter of the unit cell is not specified in the supplied CIF. Key to look for: _cell_length_a")
140140

141141
replacementMap = {
142142
"_cell_length_b": str(unitCellValueMap["_cell_length_a"]),
@@ -202,7 +202,7 @@ def _getAtomCoordinates(self, cifData, labels):
202202

203203
for field in coordinateFields:
204204
if field not in cifData.keys():
205-
raise RuntimeError("Mandatory field {0} not found in CIF-file.Please check the atomic position definitions.".format(field))
205+
raise RuntimeError("Mandatory field {0} not found in CIF-file. Please check the atomic position definitions.".format(field))
206206

207207
# Return a dict like { 'label1': 'x y z', 'label2': 'x y z' }
208208
return dict(

Framework/PythonInterface/plugins/algorithms/LoadNMoldyn4Ascii1D.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ def category(self):
2828
return "Simulation; Inelastic\\DataHandling"
2929

3030
def summary(self):
31-
return "Imports 1D dos and vac functions from an nMolDyn 4 output file,convoluting it with a resolution function if required."
31+
return "Imports 1D dos and vac functions from an nMolDyn 4 output file, convoluting it with a resolution function if required."
3232

3333
def PyInit(self):
3434
self.declareProperty(FileProperty("Directory", "", action=FileAction.Directory), doc=("Path to directory containing dat files"))

Framework/PythonInterface/plugins/algorithms/PelicanReduction.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -98,27 +98,27 @@ def PyInit(self) -> None:
9898
mandatoryInputRuns.add(StringArrayMandatoryValidator())
9999
self.declareProperty(
100100
StringArrayProperty("SampleRuns", values=[], validator=mandatoryInputRuns),
101-
doc="Optional cycle number followed by comma separated range of\nsample runs as [cycle::] n1,n2,..\n eg 123::7333-7341,7345",
101+
doc="Optional cycle number followed by comma separated range of sample runs as [cycle::] n1,n2,.. e.g. 123::7333-7341,7345",
102102
)
103103

104104
self.declareProperty(
105105
name="EmptyRuns",
106106
defaultValue="",
107-
doc="Optional cycle number followed by comma separated range of\nruns as [cycle::] n1,n2,..\n eg 123::6300-6308",
107+
doc="Optional cycle number followed by comma separated range of runs as [cycle::] n1,n2,.. e.g. 123::6300-6308",
108108
)
109109

110110
self.declareProperty(name="ScaleEmptyRuns", defaultValue=1.0, doc="Scale the empty runs prior to subtraction")
111111

112112
self.declareProperty(
113113
name="CalibrationRuns",
114114
defaultValue="",
115-
doc="Optional cycle number followed by comma separated range of\nruns as [cycle::] n1,n2,..\n eg 123::6350-6365",
115+
doc="Optional cycle number followed by comma separated range of runs as [cycle::] n1,n2,.. e.g. 123::6350-6365",
116116
)
117117

118118
self.declareProperty(
119119
name="EmptyCalibrationRuns",
120120
defaultValue="",
121-
doc="Optional cycle number followed by comma separated range of\nruns as [cycle::] n1,n2,..\n eg 123::6370-6375",
121+
doc="Optional cycle number followed by comma separated range of runs as [cycle::] n1,n2,.. e.g. 123::6370-6375",
122122
)
123123

124124
self.declareProperty(
@@ -137,7 +137,7 @@ def PyInit(self) -> None:
137137
name="Processing",
138138
defaultValue="SOFQW1-Centre",
139139
validator=StringListValidator(["SOFQW1-Centre", "SOFQW3-NormalisedPolygon", "NXSPE"]),
140-
doc="Convert to SOFQW or save file as NXSPE,\nnote SOFQW3 is more accurate but much slower than SOFQW1.",
140+
doc="Convert to SOFQW or save file as NXSPE, note SOFQW3 is more accurate but much slower than SOFQW1.",
141141
)
142142

143143
self.declareProperty(name="LambdaOnTwoMode", defaultValue=False, doc="Set if instrument running in lambda on two mode.")
@@ -162,7 +162,7 @@ def PyInit(self) -> None:
162162
self.declareProperty(
163163
name="KeepIntermediateWorkspaces",
164164
defaultValue=False,
165-
doc="Whether to keep the intermediate sample and calibration\nworkspaces for diagnostic checks.",
165+
doc="Whether to keep the intermediate sample and calibration workspaces for diagnostic checks.",
166166
)
167167

168168
self.declareProperty(

Framework/PythonInterface/plugins/algorithms/PoldiMerge.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ def PyInit(self):
3838
self.declareProperty(
3939
"CheckInstruments",
4040
True,
41-
"If checked, only workspaces with equal instrument parameters are merged.Do not disable without a very good reason.",
41+
"If checked, only workspaces with equal instrument parameters are merged. Do not disable without a very good reason.",
4242
)
4343

4444
def PyExec(self):

Framework/PythonInterface/plugins/algorithms/WorkflowAlgorithms/IndirectILLReductionQENS.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ def _filter_files(self, files, label):
270270
files = SelectNexusFilesByMetadata(files, self._criteria)
271271

272272
if not files:
273-
raise RuntimeError("None of the {0} runs are of QENS type.Check the files or reduction type.".format(label))
273+
raise RuntimeError("None of the {0} runs are of QENS type. Check the files or reduction type.".format(label))
274274
else:
275275
self.log().information("Filtered {0} runs are: {1} \\n".format(label, files.replace(",", "\\n")))
276276

0 commit comments

Comments
 (0)