Skip to content

Commit e234e7a

Browse files
committed
update ASU
1 parent f58cf1f commit e234e7a

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

pyxtal/constants.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@
9292
"""
9393
# Asymmetric unit bounds for 230 space groups
9494
# Format: space_group_number x_min x_max y_min y_max z_min z_max
95-
ASU = np.array([
95+
ASU_bounds = np.array([
9696
[ 0, 1, 0, 1, 0, 1], # SG 1
9797
[ 0, 1/2, 0, 1, 0, 1], # SG 2
9898
[ 0, 1, 0, 1, 0, 1/2], # SG 3
@@ -387,7 +387,7 @@
387387
140: [("x <= y", "x ≤ y")], # I4/mcm
388388
141: [("x <= y", "x ≤ y")], # I4₁/amd
389389
142: [("x <= y", "x ≤ y")], # I4₁/acd
390-
390+
391391
# Trigonal Space Groups (with hexagonal axes)
392392
143: [("x <= y", "x ≤ y"), ("y <= 0.5", "y ≤ 1/2")], # P3
393393
144: [("x <= y", "x ≤ y"), ("y <= 0.5", "y ≤ 1/2")], # P3₁
@@ -406,13 +406,13 @@
406406
163: [("x <= y", "x ≤ y"), ("y <= 0.5", "y ≤ 1/2")], # P-31c
407407
164: [("x <= y", "x ≤ y"), ("y <= 0.5", "y ≤ 1/2")], # P-3m1
408408
165: [("x <= y", "x ≤ y"), ("y <= 0.5", "y ≤ 1/2")], # P-3c1
409-
409+
410410
# Trigonal Space Groups with R centering
411411
146: [
412412
("x <= (1 + y) / 2", "x ≤ (1+y)/2"),
413413
("y <= min(1 - x, (1 + x) / 2)", "y ≤ min(1-x, (1+x)/2)")
414414
], # R3 (hexagonal)
415-
415+
416416
# Hexagonal Space Groups
417417
168: [("x <= y", "x ≤ y"), ("y <= 0.5", "y ≤ 1/2")], # P6
418418
169: [("x <= y", "x ≤ y"), ("y <= 0.5", "y ≤ 1/2")], # P6₁
@@ -440,7 +440,7 @@
440440
192: [("x <= y", "x ≤ y"), ("y <= 0.5", "y ≤ 1/2")], # P6/mcc
441441
193: [("x <= y", "x ≤ y"), ("y <= 0.5", "y ≤ 1/2")], # P6₃/mcm
442442
194: [("x <= y", "x ≤ y"), ("y <= 0.5", "y ≤ 1/2")], # P6₃/mmc
443-
443+
444444
# Cubic Space Groups
445445
195: [("x <= y", "x ≤ y"), ("y <= z", "y ≤ z")], # P23
446446
196: [("x <= y", "x ≤ y"), ("y <= z", "y ≤ z")], # F23
@@ -483,11 +483,11 @@
483483
def get_additional_asu_conditions(space_group: int):
484484
"""
485485
Get additional ASU conditions for a space group.
486-
486+
487487
Args:
488488
space_group: Space group number (1-230)
489-
489+
490490
Returns:
491491
List of tuples (condition_string, description) or empty list
492492
"""
493-
return ASU_ADDITIONAL_CONDITIONS.get(space_group, [])
493+
return ASU_ADDITIONAL_CONDITIONS.get(space_group, [])

pyxtal/symmetry.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
from numpy.random import Generator
2222
from pandas import read_csv
2323

24-
from pyxtal.constants import all_sym_directions, hex_cell, letters#, ASU
24+
from pyxtal.constants import all_sym_directions, hex_cell, letters, ASU_bounds
2525
from pyxtal.operations import (
2626
OperationAnalyzer,
2727
SymmOp,
@@ -663,7 +663,7 @@ def get_ASU(self):
663663
Returns:
664664
list: A list of inequalities defining the asymmetric unit.
665665
"""
666-
return ASU[self.number-1]
666+
return ASU_bounds[self.number-1]
667667

668668
def get_ASU_instance(self):
669669
"""

0 commit comments

Comments
 (0)