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

alternate space group field label #166

Merged
merged 1 commit into from
Jul 29, 2022
Merged
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
4 changes: 3 additions & 1 deletion src/crystal.jl
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ function Crystal(filename::String;
end

# Make sure the space group is P1
if line[1] == "_symmetry_space_group_name_H-M"
if line[1] == "_symmetry_space_group_name_H-M" || line[1] == "_space_group_name_Hall"
# use anonymous function to combine all terms past the first
# to extract space group name
space_group = reduce((x, y) -> x * " " * y, line[2:end])
Expand Down Expand Up @@ -472,6 +472,8 @@ function Crystal(filename::String;
# if crystal has bonds, make sure distances aren't missing
calc_missing_bond_distances!(crystal)

@assert space_group ≠ "" "Failed to determine space group!"

return crystal
end

Expand Down