Skip to content
This repository was archived by the owner on Nov 15, 2024. It is now read-only.

Commit 7378662

Browse files
committed
Add uncommitted changes
1 parent 5f007ec commit 7378662

2 files changed

Lines changed: 11 additions & 10 deletions

File tree

biojava-structure/src/main/java/org/biojava/nbio/structure/align/xml/AFPChainXMLConverter.java

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -244,24 +244,24 @@ public static void printXMLHeader(PrettyXMLWriter xml, AFPChain afpChain) throws
244244
xml.attribute("optLength", afpChain.getOptLength() + "");
245245
xml.attribute("totalLenIni", afpChain.getTotalLenIni() + "");
246246

247-
xml.attribute("alignScore", String.format("%5.2f", afpChain.getAlignScore() ).trim());
248-
xml.attribute("chainRmsd", String.format("%5.2f", afpChain.getChainRmsd() ).trim());
249-
xml.attribute("identity",String.format("%5.4f", afpChain.getIdentity() ).trim());
250-
xml.attribute("normAlignScore", String.format("%5.2f",afpChain.getNormAlignScore()).trim());
251-
xml.attribute("probability", String.format("%.2e", afpChain.getProbability() ).trim());
252-
xml.attribute("similarity", String.format("%5.4f", afpChain.getSimilarity() ).trim());
247+
xml.attribute("alignScore", String.format(Locale.US, "%5.2f", afpChain.getAlignScore() ).trim());
248+
xml.attribute("chainRmsd", String.format(Locale.US, "%5.2f", afpChain.getChainRmsd() ).trim());
249+
xml.attribute("identity",String.format(Locale.US, "%5.4f", afpChain.getIdentity() ).trim());
250+
xml.attribute("normAlignScore", String.format(Locale.US, "%5.2f",afpChain.getNormAlignScore()).trim());
251+
xml.attribute("probability", String.format(Locale.US, "%.2e", afpChain.getProbability() ).trim());
252+
xml.attribute("similarity", String.format(Locale.US, "%5.4f", afpChain.getSimilarity() ).trim());
253253

254254
xml.attribute("similarity1", afpChain.getCoverage1() + "");
255255
xml.attribute("similarity2", afpChain.getCoverage2() + "");
256-
xml.attribute("totalRmsdIni", String.format("%5.2f",afpChain.getTotalRmsdIni() ).trim());
257-
xml.attribute("totalRmsdOpt", String.format("%5.2f",afpChain.getTotalRmsdOpt() ).trim());
256+
xml.attribute("totalRmsdIni", String.format(Locale.US, "%5.2f",afpChain.getTotalRmsdIni() ).trim());
257+
xml.attribute("totalRmsdOpt", String.format(Locale.US, "%5.2f",afpChain.getTotalRmsdOpt() ).trim());
258258
xml.attribute("ca1Length", afpChain.getCa1Length()+"");
259259
xml.attribute("ca2Length", afpChain.getCa2Length()+"");
260260
xml.attribute("afpNum",afpChain.getAfpSet().size()+"");
261-
xml.attribute("alignScoreUpdate",String.format("%5.2f",afpChain.getAlignScoreUpdate()).trim());
261+
xml.attribute("alignScoreUpdate",String.format(Locale.US, "%5.2f",afpChain.getAlignScoreUpdate()).trim());
262262
xml.attribute("time", String.format("%d",afpChain.getCalculationTime()));
263263
if ( afpChain.getTMScore() != -1){
264-
xml.attribute("tmScore", String.format("%.2f",afpChain.getTMScore()));
264+
xml.attribute("tmScore", String.format(Locale.US, "%.2f",afpChain.getTMScore()));
265265
}
266266

267267
// test if alignment is CP:

biojava-structure/src/main/java/org/biojava/nbio/structure/xtal/CrystalCell.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
import java.io.Serializable;
2525
import java.util.ArrayList;
2626
import java.util.Collections;
27+
import java.util.Locale;
2728

2829
//import org.slf4j.Logger;
2930
//import org.slf4j.LoggerFactory;

0 commit comments

Comments
 (0)