| |
Frowns » frowns » test » test_sditerator2.py | text = """
-- StrEd --
48 42 0 0 0 0 0 0 0 0 2
2.8235 -5.1335 0.0000 C 0 0 0 0 0 0 0
6.5885 -3.8220 0.0000 C 0 0 0 0 0 0 0
2.8235 -6.0070 0.0000 C 0 0 0 0 0 0 0
3.5740 -4.6990 0.0000 C 0 0 0 0 0 0 0
9.6005 -4.6915 0.0000 C 0 0 0 0 0 0 0
5.0810 -4.6915 0.0000 C 0 0 0 0 0 0 0
5.8360 -3.3875 0.0000 C 0 0 0 0 0 0 0
4.3285 -5.1300 0.0000 C 0 0 0 0 0 0 0
5.0795 -3.8240 0.0000 C 0 0 0 0 0 0 0
11.1075 -4.6915 0.0000 C 0 0 0 0 0 0 0
8.0955 -4.6915 0.0000 C 0 0 0 0 0 0 0
4.3325 -6.0050 0.0000 C 0 0 0 0 0 0 0
7.3410 -5.1260 0.0000 C 0 0 0 0 0 0 0
12.6145 -4.6915 0.0000 C 0 0 0 0 0 0 0
6.5885 -4.6915 0.0000 C 0 0 0 0 0 0 0
11.8620 -5.1260 0.0000 C 0 0 0 0 0 0 0
10.3550 -5.1260 0.0000 N 0 0 0 0 0 0 0
8.8480 -5.1260 0.0000 O 0 0 0 0 0 0 0
3.5760 -6.4415 0.0000 N 0 0 0 0 0 0 0
15.2110 -3.8180 0.0000 O 0 0 0 0 0 0 0
15.1440 -5.3980 0.0000 O 0 0 0 0 0 0 0
15.2455 -6.8075 0.0000 O 0 0 0 0 0 0 0
15.1135 -8.2265 0.0000 O 0 0 0 0 0 0 0
15.1440 -9.5150 0.0000 O 0 0 0 0 0 0 0
15.1135 -10.9550 0.0000 O 0 0 0 0 0 0 0
9.6005 -3.8220 0.0000 S 0 0 0 0 0 0 0
5.8395 -5.1245 0.0000 N 0 0 0 0 0 0 0
10.0045 -8.3545 0.0000 Co 0 0 0 0 0 0 0
14.4565 -3.3815 0.0000 H 0 0 0 0 0 0 0
16.0000 -6.3725 0.0000 H 0 0 0 0 0 0 0
14.4930 -6.3725 0.0000 H 0 0 0 0 0 0 0
15.9635 -3.3815 0.0000 H 0 0 0 0 0 0 0
15.8680 -7.7915 0.0000 H 0 0 0 0 0 0 0
14.3610 -7.7915 0.0000 H 0 0 0 0 0 0 0
15.8985 -4.9615 0.0000 H 0 0 0 0 0 0 0
15.8985 -9.0805 0.0000 H 0 0 0 0 0 0 0
14.3915 -9.0805 0.0000 H 0 0 0 0 0 0 0
14.3915 -4.9615 0.0000 H 0 0 0 0 0 0 0
15.8680 -10.5205 0.0000 H 0 0 0 0 0 0 0
14.3610 -10.5205 0.0000 H 0 0 0 0 0 0 0
11.0560 -8.3545 0.0000 O 0 0 0 0 0 0 0
9.4785 -9.2655 0.0000 O 0 0 0 0 0 0 0
11.5820 -7.4440 0.0000 N 0 3 0 0 0 0 0
8.4270 -9.2655 0.0000 N 0 3 0 0 0 0 0
7.9010 -10.1760 0.0000 O 0 5 0 0 0 0 0
7.9010 -8.3545 0.0000 O 0 0 0 0 0 0 0
12.6335 -7.4440 0.0000 O 0 0 0 0 0 0 0
11.0560 -6.5330 0.0000 O 0 5 0 0 0 0 0
5 18 1 0 0 0
6 27 1 0 0 0
26 5 2 0 0 0
8 6 1 0 0 0
19 12 2 0 0 0
17 5 1 0 0 0
16 10 1 0 0 0
15 27 1 0 0 0
14 16 2 0 0 0
18 11 1 0 0 0
13 15 1 0 0 0
12 8 1 0 0 0
11 13 1 0 0 0
10 17 1 0 0 0
9 6 1 0 0 0
7 2 1 0 0 0
4 8 2 0 0 0
3 19 1 0 0 0
2 15 1 0 0 0
1 4 1 0 0 0
29 20 1 0 0 0
30 22 1 0 0 0
31 22 1 0 0 0
32 20 1 0 0 0
33 23 1 0 0 0
34 23 1 0 0 0
35 21 1 0 0 0
36 24 1 0 0 0
37 24 1 0 0 0
38 21 1 0 0 0
39 25 1 0 0 0
40 25 1 0 0 0
9 7 1 0 0 0
3 1 2 0 0 0
28 41 1 0 0 0
28 42 1 0 0 0
41 43 1 0 0 0
42 44 1 0 0 0
44 45 1 0 0 0
44 46 2 0 0 0
43 47 2 0 0 0
43 48 1 0 0 0
M END
> <IDNUMBER> (ST012965)
ST012965
> <SUPPLIER> (ST012965)
TimTec
> <NATURAL> (ST012965)
SEMI-NATURAL
> <Plate> (ST012965)
10
> <Well location> (ST012965)
B06
> <CATALOG_NUMBER> (ST012965)
ST012965
> <LIBRARY> (ST012965)
TimTec
> <96PLATE> (ST012965)
TIMTEC010
> <96ROW> (ST012965)
B
> <96COL> (ST012965)
6
> <384PLATE> (ST012965)
TIC384003
> <384COL> (ST012965)
12
> <384ROW> (ST012965)
C
$$$$"""
from cStringIO import StringIO
data = StringIO(text)
from frowns import MDL
mol, errors, text = MDL.sdin(data).next()
print mol
|
|