Skip to content

Commit

Permalink
change spacegroup names according to new pyxtal version
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexandraVolokhova committed Aug 15, 2024
1 parent 262cda6 commit 93fd9ce
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 27 deletions.
54 changes: 27 additions & 27 deletions gflownet/envs/crystals/space_groups.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -182,12 +182,12 @@
crystal_class: rhombic-disphenoidal
crystal_lattice_system_idx: 3
crystal_system: orthorhombic
full_symbol: P2_12_121
full_symbol: P2_12_12_1
lattice_system: orthorhombic
point_group: '222'
point_symmetry: enantiomorphic
point_symmetry_idx: 4
symbol: P2_12_121
symbol: P2_12_12_1
20:
crystal_class: rhombic-disphenoidal
crystal_lattice_system_idx: 3
Expand Down Expand Up @@ -232,12 +232,12 @@
crystal_class: rhombic-disphenoidal
crystal_lattice_system_idx: 3
crystal_system: orthorhombic
full_symbol: I2_12_121
full_symbol: I2_12_12_1
lattice_system: orthorhombic
point_group: '222'
point_symmetry: enantiomorphic
point_symmetry_idx: 4
symbol: I2_12_121
symbol: I2_12_12_1
25:
crystal_class: rhombic-pyramidal
crystal_lattice_system_idx: 3
Expand Down Expand Up @@ -472,7 +472,7 @@
crystal_class: rhombic-dipyramidal
crystal_lattice_system_idx: 3
crystal_system: orthorhombic
full_symbol: Pnnn1
full_symbol: Pnnn
lattice_system: orthorhombic
point_group: mmm
point_symmetry: centrosymmetric
Expand All @@ -492,7 +492,7 @@
crystal_class: rhombic-dipyramidal
crystal_lattice_system_idx: 3
crystal_system: orthorhombic
full_symbol: Pban1
full_symbol: Pban
lattice_system: orthorhombic
point_group: mmm
point_symmetry: centrosymmetric
Expand Down Expand Up @@ -582,7 +582,7 @@
crystal_class: rhombic-dipyramidal
crystal_lattice_system_idx: 3
crystal_system: orthorhombic
full_symbol: Pmmn1
full_symbol: Pmmn
lattice_system: orthorhombic
point_group: mmm
point_symmetry: centrosymmetric
Expand Down Expand Up @@ -672,7 +672,7 @@
crystal_class: rhombic-dipyramidal
crystal_lattice_system_idx: 3
crystal_system: orthorhombic
full_symbol: Ccce1
full_symbol: Ccce
lattice_system: orthorhombic
point_group: mmm
point_symmetry: centrosymmetric
Expand All @@ -692,7 +692,7 @@
crystal_class: rhombic-dipyramidal
crystal_lattice_system_idx: 3
crystal_system: orthorhombic
full_symbol: Fddd1
full_symbol: Fddd
lattice_system: orthorhombic
point_group: mmm
point_symmetry: centrosymmetric
Expand Down Expand Up @@ -842,7 +842,7 @@
crystal_class: tetragonal-dipyramidal
crystal_lattice_system_idx: 4
crystal_system: tetragonal
full_symbol: P4/n1
full_symbol: P4/n
lattice_system: tetragonal
point_group: 4/m
point_symmetry: centrosymmetric
Expand Down Expand Up @@ -1242,7 +1242,7 @@
crystal_class: ditetragonal-dipyramidal
crystal_lattice_system_idx: 4
crystal_system: tetragonal
full_symbol: P4/nbm1
full_symbol: P4/nbm
lattice_system: tetragonal
point_group: 4/mmm
point_symmetry: centrosymmetric
Expand All @@ -1252,7 +1252,7 @@
crystal_class: ditetragonal-dipyramidal
crystal_lattice_system_idx: 4
crystal_system: tetragonal
full_symbol: P4/nnc1
full_symbol: P4/nnc
lattice_system: tetragonal
point_group: 4/mmm
point_symmetry: centrosymmetric
Expand Down Expand Up @@ -1282,7 +1282,7 @@
crystal_class: ditetragonal-dipyramidal
crystal_lattice_system_idx: 4
crystal_system: tetragonal
full_symbol: P4/nmm1
full_symbol: P4/nmm
lattice_system: tetragonal
point_group: 4/mmm
point_symmetry: centrosymmetric
Expand All @@ -1292,7 +1292,7 @@
crystal_class: ditetragonal-dipyramidal
crystal_lattice_system_idx: 4
crystal_system: tetragonal
full_symbol: P4/ncc1
full_symbol: P4/ncc
lattice_system: tetragonal
point_group: 4/mmm
point_symmetry: centrosymmetric
Expand Down Expand Up @@ -1452,7 +1452,7 @@
crystal_class: trigonal-pyramidal
crystal_lattice_system_idx: 5
crystal_system: trigonal
full_symbol: R3H
full_symbol: R3
lattice_system: rhombohedral
point_group: '3'
point_symmetry: enantiomorphic-polar
Expand All @@ -1472,7 +1472,7 @@
crystal_class: rhombohedral
crystal_lattice_system_idx: 5
crystal_system: trigonal
full_symbol: R-3H
full_symbol: R-3
lattice_system: rhombohedral
point_group: '-3'
point_symmetry: centrosymmetric
Expand Down Expand Up @@ -1542,7 +1542,7 @@
crystal_class: trigonal-trapezohedral
crystal_lattice_system_idx: 5
crystal_system: trigonal
full_symbol: R32H
full_symbol: R32
lattice_system: rhombohedral
point_group: '32'
point_symmetry: enantiomorphic
Expand Down Expand Up @@ -1592,7 +1592,7 @@
crystal_class: ditrigonal-pyramidal
crystal_lattice_system_idx: 5
crystal_system: trigonal
full_symbol: R3mH
full_symbol: R3m
lattice_system: rhombohedral
point_group: 3m
point_symmetry: polar
Expand All @@ -1602,7 +1602,7 @@
crystal_class: ditrigonal-pyramidal
crystal_lattice_system_idx: 5
crystal_system: trigonal
full_symbol: R3cH
full_symbol: R3c
lattice_system: rhombohedral
point_group: 3m
point_symmetry: polar
Expand Down Expand Up @@ -1652,7 +1652,7 @@
crystal_class: ditrigonal-scalenohedral
crystal_lattice_system_idx: 5
crystal_system: trigonal
full_symbol: R-3mH
full_symbol: R-3m
lattice_system: rhombohedral
point_group: -3m
point_symmetry: centrosymmetric
Expand All @@ -1662,7 +1662,7 @@
crystal_class: ditrigonal-scalenohedral
crystal_lattice_system_idx: 5
crystal_system: trigonal
full_symbol: R-3cH
full_symbol: R-3c
lattice_system: rhombohedral
point_group: -3m
point_symmetry: centrosymmetric
Expand Down Expand Up @@ -2002,7 +2002,7 @@
crystal_class: diploidal
crystal_lattice_system_idx: 8
crystal_system: cubic
full_symbol: Pn-31
full_symbol: Pn-3
lattice_system: cubic
point_group: m-3
point_symmetry: centrosymmetric
Expand All @@ -2022,7 +2022,7 @@
crystal_class: diploidal
crystal_lattice_system_idx: 8
crystal_system: cubic
full_symbol: Fd-31
full_symbol: Fd-3
lattice_system: cubic
point_group: m-3
point_symmetry: centrosymmetric
Expand Down Expand Up @@ -2212,7 +2212,7 @@
crystal_class: hexoctahedral
crystal_lattice_system_idx: 8
crystal_system: cubic
full_symbol: Pn-3n1
full_symbol: Pn-3n
lattice_system: cubic
point_group: m-3m
point_symmetry: centrosymmetric
Expand All @@ -2232,7 +2232,7 @@
crystal_class: hexoctahedral
crystal_lattice_system_idx: 8
crystal_system: cubic
full_symbol: Pn-3m1
full_symbol: Pn-3m
lattice_system: cubic
point_group: m-3m
point_symmetry: centrosymmetric
Expand Down Expand Up @@ -2262,7 +2262,7 @@
crystal_class: hexoctahedral
crystal_lattice_system_idx: 8
crystal_system: cubic
full_symbol: Fd-3m1
full_symbol: Fd-3m
lattice_system: cubic
point_group: m-3m
point_symmetry: centrosymmetric
Expand All @@ -2272,7 +2272,7 @@
crystal_class: hexoctahedral
crystal_lattice_system_idx: 8
crystal_system: cubic
full_symbol: Fd-3c1
full_symbol: Fd-3c
lattice_system: cubic
point_group: m-3m
point_symmetry: centrosymmetric
Expand Down
3 changes: 3 additions & 0 deletions tests/gflownet/envs/test_spacegroup.py
Original file line number Diff line number Diff line change
Expand Up @@ -345,6 +345,9 @@ def test__states_are_compatible_with_pymatgen(env):
sg = pmgg.SpaceGroup(sg_int)
assert sg.int_number == env.state[env.sg_idx]
assert sg.crystal_system == env.crystal_system
# If this test is the only one failing, you might have
# an older version of pymatgen in which there was a typo
# in the space group name P2_12_12_1
assert sg.symbol == env.space_group_symbol
assert sg.point_group == env.point_group

Expand Down

0 comments on commit 93fd9ce

Please sign in to comment.