Skip to content

Commit dba397f

Browse files
authored
Merge pull request #927 from josemduarte/cif-passparams
Cif reader file parsing parameters fix
2 parents f601cd3 + 93b0539 commit dba397f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

biojava-structure/src/main/java/org/biojava/nbio/structure/URLIdentifier.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ public Structure loadStructure(AtomCache cache) throws StructureException, IOExc
153153

154154
switch(format) {
155155
case CIF: case BCIF:
156-
return CifStructureConverter.fromURL(url);
156+
return CifStructureConverter.fromURL(url, cache.getFileParsingParams());
157157
case MMTF:
158158
return MmtfActions.readFromInputStream(url.openStream());
159159
default: case PDB:

biojava-structure/src/main/java/org/biojava/nbio/structure/io/cif/CifStructureConverter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ public static Structure fromURL(URL url) throws IOException {
5757
* @return the target
5858
* @throws IOException thrown when reading fails
5959
*/
60-
private static Structure fromURL(URL url, FileParsingParameters parameters) throws IOException {
60+
public static Structure fromURL(URL url, FileParsingParameters parameters) throws IOException {
6161
return fromInputStream(url.openStream(), parameters);
6262
}
6363

0 commit comments

Comments
 (0)