Skip to content

Commit

Permalink
fix code formating, import State ABC and all the states exceptions in…
Browse files Browse the repository at this point in the history
…to the states namespace, bump up the version
  • Loading branch information
hanicinecm committed Feb 2, 2022
1 parent c56b385 commit 6164a25
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 11 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

setup(
name="pyvalem",
version="2.5.0",
version="2.5.1",
description="A package for managing simple chemical species and states",
long_description=long_description,
long_description_content_type="text/x-rst",
Expand Down
21 changes: 13 additions & 8 deletions src/pyvalem/states/__init__.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
from .atomic_configuration import AtomicConfiguration
from .diatomic_molecular_configuration import DiatomicMolecularConfiguration
from .atomic_term_symbol import AtomicTermSymbol
from .molecular_term_symbol import MolecularTermSymbol
# import all the State classes and exceptions into the states namespace:
from ._base_state import State, StateParseError
from .atomic_configuration import AtomicConfiguration, AtomicConfigurationError
from .diatomic_molecular_configuration import (
DiatomicMolecularConfiguration,
DiatomicMolecularConfigurationError,
)
from .atomic_term_symbol import AtomicTermSymbol, AtomicTermSymbolError
from .molecular_term_symbol import MolecularTermSymbol, MolecularTermSymbolError
from .racah_symbol import RacahSymbol
from .rotational_state import RotationalState
from .vibrational_state import VibrationalState
from .generic_excited_state import GenericExcitedState
from .key_value_pair import KeyValuePair
from .rotational_state import RotationalState, RotationalStateError
from .vibrational_state import VibrationalState, VibrationalStateError
from .generic_excited_state import GenericExcitedState, GenericExcitedStateError
from .key_value_pair import KeyValuePair, KeyValuePairError
9 changes: 7 additions & 2 deletions src/pyvalem/states/molecular_term_symbol.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,8 +151,13 @@
"GAMMAu": "Γu",
}

latex_terms = {"Σ": r"\Sigma", "Π": r"\Pi", "Δ": r"\Delta", "Φ": r"\Phi",
"Γ": r"\Gamma"}
latex_terms = {
"Σ": r"\Sigma",
"Π": r"\Pi",
"Δ": r"\Delta",
"Φ": r"\Phi",
"Γ": r"\Gamma",
}

integer = pp.Word(pp.nums)
molecule_Smult = integer.setResultsName("Smult")
Expand Down

0 comments on commit 6164a25

Please sign in to comment.