Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

IllegalFormatConversionException with LocalProteinDomainParser #1009

Copy link
Copy link

Description

@yamule
Issue body actions

I met IllegalFormatConversionException when I tried to use LocalProteinDomainParser in biojava-structure-6.0.3.jar .

java.util.IllegalFormatConversionException: d != java.lang.Double
	at java.util.Formatter$FormatSpecifier.failConversion(Formatter.java:4302)
	at java.util.Formatter$FormatSpecifier.printInteger(Formatter.java:2793)
	at java.util.Formatter$FormatSpecifier.print(Formatter.java:2747)
	at java.util.Formatter.format(Formatter.java:2520)
	at java.io.PrintStream.format(PrintStream.java:970)
	at java.io.PrintStream.printf(PrintStream.java:871)
	at org.biojava.nbio.structure.domain.pdp.ClusterDomains.cluster(ClusterDomains.java:189)
	at org.biojava.nbio.structure.domain.LocalProteinDomainParser.suggestDomains(LocalProteinDomainParser.java:104)
	at org.biojava.nbio.structure.domain.LocalProteinDomainParser.suggestDomains(LocalProteinDomainParser.java:69)
	at com.mycompany.bijavacheck.MyMainClass.main(MyMainClass.java:29)

Possibly, the line https://github.com/biojava/biojava/blob/master/biojava-structure/src/main/java/org/biojava/nbio/structure/domain/pdp/ClusterDomains.java#L189
if(verbose) System.out.printf(" Maximum value is less than cut off value. (max:%d)%n", maximum_value);
should be
if(verbose) System.out.printf(" Maximum value is less than cut off value. (max:%f)%n", maximum_value);
.
(It looks fine in dev branch's one but its commit is older than that of main so I'm reporting this.)

Reactions are currently unavailable

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

Morty Proxy This is a proxified and sanitized view of the page, visit original site.