Skip to content

Commit 227f8f5

Browse files
authored
Merge pull request #423 from JaGeo/fix_cli_inconsistency
Fix cli inconsistency
2 parents 717c6e8 + 9f3c30e commit 227f8f5

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

src/lobsterpy/cli.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -413,7 +413,7 @@ def get_parser() -> argparse.ArgumentParser:
413413
auto_group.add_argument(
414414
"--noisecutoff",
415415
type=float,
416-
default=None,
416+
default=0.1,
417417
help="Sets the lower limit of icohps or icoops or icobis considered in automatic analysis",
418418
)
419419
auto_group.add_argument(

tests/cli/test_cli.py

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -191,13 +191,7 @@ def test_cli_interactive_plotter_cobi(self):
191191
def test_cli_interactive_plotter_coops(self, tmp_path):
192192
os.chdir(TestDir / "test_data/CdF_comp_range")
193193
# tests skip showing plots generated using automatic interactive plotter
194-
args = [
195-
"auto-plot-ia",
196-
"--orbitalresolved",
197-
"--hideplot",
198-
"--coops",
199-
"--allbonds",
200-
]
194+
args = ["auto-plot-ia", "--orbitalresolved", "--hideplot", "--coops", "--allbonds", "--noisecutoff", "0.001"]
201195
test = get_parser().parse_args(args)
202196
run(test)
203197

0 commit comments

Comments
 (0)