From e09e8a3d11482572db617dd1cb7986f3a0204a13 Mon Sep 17 00:00:00 2001 From: Toon Verstraelen Date: Thu, 20 Jun 2024 18:46:30 +0200 Subject: [PATCH] Fix typos in strings --- iodata/formats/wfn.py | 2 +- iodata/formats/wfx.py | 2 +- iodata/test/common.py | 2 +- iodata/test/test_fchk.py | 2 +- iodata/test/test_molden.py | 2 +- iodata/test/test_molekel.py | 2 +- iodata/test/test_wfn.py | 2 +- iodata/test/test_wfx.py | 2 +- 8 files changed, 8 insertions(+), 8 deletions(-) diff --git a/iodata/formats/wfn.py b/iodata/formats/wfn.py index 71e1e26d..e8bd19cd 100644 --- a/iodata/formats/wfn.py +++ b/iodata/formats/wfn.py @@ -512,7 +512,7 @@ def prepare_dump(data: IOData): raise PrepareDumpError("Cannot write WFN file when mo.occs_aminusb is set.") for shell in data.obasis.shells: if any(kind != "c" for kind in shell.kinds): - raise PrepareDumpError("The WFN only supports Cartesian MolecularBasis.") + raise PrepareDumpError("The WFN format only supports Cartesian MolecularBasis.") @document_dump_one( diff --git a/iodata/formats/wfx.py b/iodata/formats/wfx.py index 3bd95ace..a3359111 100644 --- a/iodata/formats/wfx.py +++ b/iodata/formats/wfx.py @@ -345,7 +345,7 @@ def prepare_dump(data: IOData): raise PrepareDumpError("Cannot write WFX file when mo.occs_aminusb is set.") for shell in data.obasis.shells: if any(kind != "c" for kind in shell.kinds): - raise PrepareDumpError("The WFX only supports Cartesian MolecularBasis.") + raise PrepareDumpError("The WFX format only supports Cartesian MolecularBasis.") @document_dump_one( diff --git a/iodata/test/common.py b/iodata/test/common.py index ae45a325..3a7a1c54 100644 --- a/iodata/test/common.py +++ b/iodata/test/common.py @@ -201,7 +201,7 @@ def load_one_warning( def create_generalized() -> IOData: - """Create a dummy IOData object with generlized molecular orbitals.""" + """Create a dummy IOData object with generalized molecular orbitals.""" rng = np.random.default_rng() return IOData( atnums=[1, 1], diff --git a/iodata/test/test_fchk.py b/iodata/test/test_fchk.py index 17e4f72a..973ace91 100644 --- a/iodata/test/test_fchk.py +++ b/iodata/test/test_fchk.py @@ -702,4 +702,4 @@ def test_generalized(): # The FCHK format does not support generalized MOs data = create_generalized() with pytest.raises(PrepareDumpError): - dump_one(data, "generlized.fchk") + dump_one(data, "generalized.fchk") diff --git a/iodata/test/test_molden.py b/iodata/test/test_molden.py index 298b0e38..4a2ee816 100644 --- a/iodata/test/test_molden.py +++ b/iodata/test/test_molden.py @@ -604,4 +604,4 @@ def test_generalized(): # The Molden format does not support generalized MOs data = create_generalized() with pytest.raises(PrepareDumpError): - dump_one(data, "generlized.molden") + dump_one(data, "generalized.molden") diff --git a/iodata/test/test_molekel.py b/iodata/test/test_molekel.py index 0eca9be4..ed524ff5 100644 --- a/iodata/test/test_molekel.py +++ b/iodata/test/test_molekel.py @@ -169,4 +169,4 @@ def test_generalized(): # The Molden format does not support generalized MOs data = create_generalized() with pytest.raises(PrepareDumpError): - dump_one(data, "generlized.mkl") + dump_one(data, "generalized.mkl") diff --git a/iodata/test/test_wfn.py b/iodata/test/test_wfn.py index ab5a3deb..8735625e 100644 --- a/iodata/test/test_wfn.py +++ b/iodata/test/test_wfn.py @@ -373,4 +373,4 @@ def test_generalized(): # The WFN format does not support generalized MOs data = create_generalized() with pytest.raises(PrepareDumpError): - dump_one(data, "generlized.wfn") + dump_one(data, "generalized.wfn") diff --git a/iodata/test/test_wfx.py b/iodata/test/test_wfx.py index ffff9275..b8298ca5 100644 --- a/iodata/test/test_wfx.py +++ b/iodata/test/test_wfx.py @@ -820,4 +820,4 @@ def test_generalized(): # The Molden format does not support generalized MOs data = create_generalized() with pytest.raises(PrepareDumpError): - dump_one(data, "generlized.wfx") + dump_one(data, "generalized.wfx")