Skip to content

Commit

Permalink
Formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
bpuchala committed Dec 20, 2024
1 parent 9323f4c commit 90d4e64
Show file tree
Hide file tree
Showing 10 changed files with 12 additions and 3 deletions.
1 change: 1 addition & 0 deletions python/libcasm/monte/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""libcasm-monte: CASM Monte Carlo tools"""

from ._monte import (
MethodLog,
RandomNumberEngine,
Expand Down
1 change: 1 addition & 0 deletions python/libcasm/monte/events/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Monte Carlo event application and occupant tracking"""

from ._monte_events import (
Atom,
AtomLocation,
Expand Down
1 change: 1 addition & 0 deletions python/libcasm/monte/ising_cpp/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Python interface to C++ 2d square lattice Ising model"""

from ._monte_ising_cpp import (
IsingConfiguration,
IsingFormationEnergy,
Expand Down
1 change: 1 addition & 0 deletions python/libcasm/monte/ising_py/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Pure Python 2d square lattice Ising model"""

from ._model import (
IsingConfiguration,
IsingFormationEnergy,
Expand Down
6 changes: 3 additions & 3 deletions python/libcasm/monte/ising_py/_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,9 @@ def occ(self, linear_site_index: int) -> np.int32:

def set_occ(self, linear_site_index: int, new_occ: int) -> None:
"""Set the current occupation of one site"""
self._occupation[
np.unravel_index(linear_site_index, self.shape, order="F")
] = new_occ
self._occupation[np.unravel_index(linear_site_index, self.shape, order="F")] = (
new_occ
)

@staticmethod
def from_dict(data: dict) -> IsingConfiguration:
Expand Down
1 change: 1 addition & 0 deletions python/libcasm/monte/methods/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Monte Carlo simulation methods"""

from ._metropolis import (
metropolis_acceptance,
)
Expand Down
1 change: 1 addition & 0 deletions python/tests/ising_cpp/test_ising_cpp_custom_functions.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Test C++ implemented property ising_cpp with Python implemented Monte Carlo loop"""

import json
import math
import pathlib
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Test C++ implemented property ising_cpp with Python implemented Monte Carlo loop"""

import json
import pathlib

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Test C++ implemented property ising_cpp with Python implemented Monte Carlo loop"""

import json
import pathlib

Expand Down
1 change: 1 addition & 0 deletions python/tests/ising_py/test_ising_semigrand_canonical_py.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""Test Python implemented property ising_cpp with Python implemented Monte Carlo \
loop
"""

import json
import pathlib

Expand Down

0 comments on commit 90d4e64

Please sign in to comment.