repo.or.cz
/
qpms.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Don't import qpms_p in __init__, remove scipy from install dependencies
[qpms.git]
/
oldtests
/
pointgrouptest.py
blob
a14eadf924ddd297f7b73a4e58ad7639a3788f79
1
#!/usr/bin/env python3
2
from
qpms
import
PointGroup
,
CQuat
,
IRot3
,
PointGroupClass
as
PGC
3
4
try
:
5
PointGroup
(
PGC
.
CN
)
6
except
ValueError
:
7
print
(
"OK"
)
8
9
try
:
10
PointGroup
(
66
)
11
except
ValueError
:
12
print
(
"OK"
)
13
14
C1
=
PointGroup
(
PGC
.
CN
,
1
)
15
print
(
len
(
C1
))
16
print
(
C1
.
elems
())
17
18
19
C2
=
PointGroup
(
PGC
.
CN
,
2
)
20
print
(
len
(
C2
))
21
print
(
C2
.
elems
())
22
23
D2H
=
PointGroup
(
PGC
.
DNH
,
2
)
24
print
(
len
(
D2H
))
25
print
(
D2H
.
elems
())
26
27
exit
(
0
)