Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Magnetic Hall symbol DB #47

Merged
merged 4 commits into from
Jan 11, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,3 +45,4 @@ RUST_LOG=debug cargo test -- --nocapture
## Acknowledgments

We thank Dr. Yusuke Seto for providing the crystallographic database.
We thank Juan Rodríguez-Carvajal for providing the magnetic space-group database.
3 changes: 2 additions & 1 deletion moyo/src/base.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ pub use error::MoyoError;
pub use lattice::Lattice;
pub use magnetic_cell::{Collinear, MagneticCell, MagneticMoment, NonCollinear};
pub use operation::{
MagneticOperation, MagneticOperations, Operation, Operations, Rotation, Rotations, Translation,
MagneticOperation, MagneticOperations, Operation, Operations, Rotation, Rotations,
TimeReversal, Translation,
};
pub use permutation::Permutation;
pub use tolerance::AngleTolerance;
Expand Down
2 changes: 2 additions & 0 deletions moyo/src/data.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ mod centering;
mod classification;
mod hall_symbol;
mod hall_symbol_database;
mod magnetic_hall_symbol_database;
mod magnetic_space_group;
mod point_group;
mod setting;
mod wyckoff;
Expand Down
18 changes: 18 additions & 0 deletions moyo/src/data/centering.rs
Original file line number Diff line number Diff line change
Expand Up @@ -125,3 +125,21 @@ impl Centering {
}
}
}

#[cfg(test)]
mod tests {
use strum::IntoEnumIterator;

use super::*;
use crate::base::Transformation;

#[test]
fn test_conventional_transformation_matrix() {
for centering in Centering::iter() {
assert_eq!(
Transformation::from_linear(centering.linear()).size,
centering.order()
);
}
}
}
Loading
Loading