Skip to content

Commit

Permalink
fix the 3.8, 3.9 issue
Browse files Browse the repository at this point in the history
  • Loading branch information
minhuanli committed Apr 30, 2024
1 parent 4831f71 commit e6122f9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions SFC_Torch/symmetry.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import torch
import reciprocalspaceship as rs
import pandas as pd
from typing import Optional, List
from typing import Optional, List, Union

ccp4_hkl_asu = [
0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
Expand Down Expand Up @@ -275,7 +275,7 @@ def asu2p1_torch(atom_pos_orth, unitcell, spacegroup,
return sym_oped_pos_orth


def get_polar_axis(spacegroup : gemmi.SpaceGroup) -> List[int] | None:
def get_polar_axis(spacegroup : gemmi.SpaceGroup) -> Optional[List[int]]:
"""
Return list of polar axis of a spacegroup
Expand Down

0 comments on commit e6122f9

Please sign in to comment.