Skip to content

Commit

Permalink
Fix typos in strings
Browse files Browse the repository at this point in the history
  • Loading branch information
tovrstra committed Jun 20, 2024
1 parent e17b6d8 commit e09e8a3
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion iodata/formats/wfn.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
2 changes: 1 addition & 1 deletion iodata/formats/wfx.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
2 changes: 1 addition & 1 deletion iodata/test/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -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],
Expand Down
2 changes: 1 addition & 1 deletion iodata/test/test_fchk.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
2 changes: 1 addition & 1 deletion iodata/test/test_molden.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
2 changes: 1 addition & 1 deletion iodata/test/test_molekel.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
2 changes: 1 addition & 1 deletion iodata/test/test_wfn.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
2 changes: 1 addition & 1 deletion iodata/test/test_wfx.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")

0 comments on commit e09e8a3

Please sign in to comment.