Skip to content

Commit d64d8d8

Browse files
[pre-commit.ci] auto fixes from pre-commit hooks
1 parent faa2edb commit d64d8d8

2 files changed

Lines changed: 2 additions & 6 deletions

File tree

src/diffpy/morph/morph_io.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,6 @@ def single_morph_output(
209209
stdout_flag: bool
210210
Print to terminal when True (default False).
211211
"""
212-
213212
# Input and output parameters
214213
morphs_in = "\n# Input morphing parameters:\n"
215214
morphs_in += (
@@ -322,7 +321,6 @@ def get_multisave_names(target_list: list, save_names_file=None, mm=False):
322321
The names to save each morph as. Keys are the target function file
323322
names used to produce that morph.
324323
"""
325-
326324
# Dictionary storing save file names
327325
save_names = {}
328326

@@ -405,7 +403,6 @@ def multiple_morph_output(
405403
Multiple morphs done with a single target rather than multiple
406404
targets for a single morphed file. Swaps morph and target in the code.
407405
"""
408-
409406
# Input parameters used for every morph
410407
inputs = "\n# Input morphing parameters:\n"
411408
inputs += "\n".join(
@@ -503,7 +500,6 @@ def tabulate_results(multiple_morph_results):
503500
Keys in tabulated_results are the table's column names and each
504501
corresponding value is a list of data for that column.
505502
"""
506-
507503
# We only care about the following parameters in our data tables
508504
relevant_parameters = ["Scale", "Smear", "Stretch", "Pearson", "Rw"]
509505

tests/test_morphio.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ def test_morph_outputs(self, setup, tmp_path):
199199
tmp_verbose_unc = tmp_path.joinpath("verbose_unc")
200200
tmp_verbose_unc_name = tmp_verbose_unc.resolve().as_posix()
201201

202-
(opts, pargs) = self.parser.parse_args(
202+
opts, pargs = self.parser.parse_args(
203203
[
204204
"--multiple-targets",
205205
"--sort-by",
@@ -223,7 +223,7 @@ def test_morph_outputs(self, setup, tmp_path):
223223
# Save a single verbose morph
224224
svum = tmp_verbose_unc.joinpath("single_verbose_unc_morph.cgr")
225225
svum_name = svum.resolve().as_posix()
226-
(opts, pargs) = self.parser.parse_args(
226+
opts, pargs = self.parser.parse_args(
227227
[
228228
"-s",
229229
svum_name,

0 commit comments

Comments
 (0)