Commit 19931b5
Fix #480. Correct spelling of _symmetry.space_group_name_H-M in CIF output
CIF categories are represented as a simple bean, typically extending AbstractBean.
By default, all fields from the bean are taken as the CIF labels. Fields may be omitted
by annotating them as @IgnoreField. The CIF label for a field may be changed
by defining a function, `static Map<String,String> getCIFLabelMap();`,
mapping from the field's name to the correct label.
This commit also changes the MMCIFFileTools.toMMCIF method to be generic,
so that we enforce at compile time that all loop rows must be of the same type.1 parent 62926e6 commit 19931b5
File tree
6 files changed
+211
-61
lines changed- biojava-structure/src
- main/java/org/biojava/nbio/structure
- contact
- io
- mmcif
- model
- test/java/org/biojava/nbio/structure/io
6 files changed
+211
-61
lines changedLines changed: 17 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
24 | 37 | | |
25 | 38 | | |
26 | 39 | | |
27 | 40 | | |
28 | 41 | | |
29 | 42 | | |
30 | 43 | | |
| 44 | + | |
31 | 45 | | |
32 | 46 | | |
33 | 47 | | |
34 | 48 | | |
35 | 49 | | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | 50 | | |
43 | 51 | | |
44 | 52 | | |
| |||
753 | 761 | | |
754 | 762 | | |
755 | 763 | | |
756 | | - | |
| 764 | + | |
757 | 765 | | |
758 | 766 | | |
759 | 767 | | |
| |||
771 | 779 | | |
772 | 780 | | |
773 | 781 | | |
774 | | - | |
| 782 | + | |
775 | 783 | | |
776 | 784 | | |
777 | 785 | | |
| |||
Lines changed: 4 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
680 | 680 | | |
681 | 681 | | |
682 | 682 | | |
683 | | - | |
684 | | - | |
685 | | - | |
| 683 | + | |
686 | 684 | | |
687 | 685 | | |
688 | | - | |
| 686 | + | |
689 | 687 | | |
690 | 688 | | |
691 | 689 | | |
| |||
697 | 695 | | |
698 | 696 | | |
699 | 697 | | |
700 | | - | |
701 | | - | |
702 | | - | |
| 698 | + | |
703 | 699 | | |
704 | | - | |
| 700 | + | |
705 | 701 | | |
706 | 702 | | |
707 | 703 | | |
| |||
0 commit comments