Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
0c43ec4
Nexus: Begin rework of `physical_system.py`
brockdyer03 Jun 17, 2026
d0154d4
Nexus: Add both `IntElectrons` and `FloatElectrons` for future discus…
brockdyer03 Jun 18, 2026
88659eb
Nexus: Create semi-final `Electrons`, rework `Ion` into `Ions`
brockdyer03 Jun 22, 2026
b284ab1
Nexus: Create `Electrons` and `Positrons` from base class, and tentat…
brockdyer03 Jun 23, 2026
abb7143
Nexus: Switch to `abstractmethod` for `unit_charge` in `ElectronsPosi…
brockdyer03 Jun 23, 2026
d39d73c
Nexus: Create `IonSpecies.from_structure()`
brockdyer03 Jun 23, 2026
861042d
Nexus: Update `IonSpecies.from_structure()` to return dict with label…
brockdyer03 Jun 23, 2026
5b0367c
Nexus: Start work on `Electrons.neutralize_to()`
brockdyer03 Jun 23, 2026
737dbad
Nexus: Add prototype `PhysicalSystem.from_structure()`
brockdyer03 Jun 24, 2026
dd1709f
Nexus: Add tentative support for `PhysicalSystem.folded_system`
brockdyer03 Jun 24, 2026
2fb26af
Nexus: Lots of work on getting the `PhysicalSystem.from_structure()` …
brockdyer03 Jun 26, 2026
ebb644f
Nexus: Move `PhysicalSystem.from_structure()` into `PhysicalSystem.__…
brockdyer03 Jun 27, 2026
4228dcc
Nexus: Tentatively finish the functions in `PhysicalSystem`
brockdyer03 Jun 27, 2026
85cdfd3
Nexus: Add tests for nearly all `PhysicalSystem` methods
brockdyer03 Jun 27, 2026
b6c4f2e
Nexus: Add tests for `PhysicalSystem.large_Zeff_elem()`, `PhysicalSys…
brockdyer03 Jun 28, 2026
77ecf85
Nexus: Tentatively update `generate_physical_system()` for newer clas…
brockdyer03 Jun 29, 2026
160dc5f
Nexus: Update `generate_physical_system()` tests, fix small bugs
brockdyer03 Jun 29, 2026
9a5ed5e
Nexus: Update some code that uses `PhysicalSystem`
brockdyer03 Jun 30, 2026
5a58011
Nexus: Pass all tests except for 2
brockdyer03 Jul 1, 2026
57496e0
Nexus: Update `physical_system.py` to define `spin` as being up=+1 an…
brockdyer03 Jul 2, 2026
6782748
Nexus: Update to use `_as_int_if_close()` in appropriate places, fix …
brockdyer03 Jul 2, 2026
08b6c90
Merge branch 'develop' into clean-physical-system
brockdyer03 Jul 2, 2026
ade7b4d
Nexus: Remove `Self` since it only was introduced in Python 3.11
brockdyer03 Jul 2, 2026
29244a2
Nexus: Add more tests, start documenting `generate_physical_system`
brockdyer03 Jul 3, 2026
c10f5f4
Nexus: Remove `ghost_atoms` from `qmcpack_analyzer.py`, emit warning …
brockdyer03 Jul 3, 2026
6df6921
Nexus: Write more of docstring for `generate_physical_system()`, pote…
brockdyer03 Jul 3, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion nexus/nexus/gamess.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ def incorporate_result(self,result_name,result,sim):
self.block()
#end if
guess_inputs = obj()
ecounts = self.system.particles.electron_counts()
ecounts = self.system.electrons.n_up_down()
orbs = result.orbitals
order_map = obj(up='iorder',down='jorder')
nelec_map = obj(up=ecounts[0],down=ecounts[1])
Expand Down
2 changes: 1 addition & 1 deletion nexus/nexus/gamess_input.py
Original file line number Diff line number Diff line change
Expand Up @@ -1091,7 +1091,7 @@ def generate_any_gamess_input(**kwargs):
# allow user override of charge and multiplicity from physical system
gi.contrl.set_optional(
icharg = system.net_charge,
mult = system.net_spin+1,
mult = system.electrons.multiplicity,
)
s = system.structure
if s.has_folded():
Expand Down
9 changes: 9 additions & 0 deletions nexus/nexus/periodic_table.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
from __future__ import annotations
from dataclasses import dataclass
from enum import Enum
from typing import TypeAlias
from .developer import warn


Expand Down Expand Up @@ -578,3 +579,11 @@ def num_elements() -> int:
Ts = Tennessine
Og = Oganesson
#end class Element


ElementLike: TypeAlias = Elements | str | int
"""Types that could be valid identifiers for an element.

For example, an element's name or atomic symbol (``str``), or the
element's atomic number (``int``), or a member of the ``Elements`` enum.
"""
Loading
Loading