Opened 13 years ago

Closed 13 years ago

#229 closed defect (invalid)

Bug in HazardSpectrumLocal

Reported by: anonymous Owned by: Peter Powers
Priority: major Milestone:
Component: sha Version:
Keywords: HazardSpectrumLocal Cc:

Description

Steps to reproduce: (PLEASE FILL IN)

Other info: (PLEASE FILL IN)

Application: HazardSpectrumLocal?
Version: 1.1.2
Bulid Type: dist

Metadata:

IMR Param List:


IMR = Campbell & Bozorgnia (2008); Gaussian Truncation = None; Tectonic Region = Active Shallow Crust; Component = Average Horizontal (GMRotI50); Std Dev Type = Total

Site Param List:


Longitude = -122.264185; Latitude = 37.877259; Vs30 = 270.0; Depth 2.5 km/sec = 1.0

IML/Prob Param List:


Map Type = IML@Prob; Probability = 0.5

Forecast Param List:


Eqk Rup Forecast = USGS/CGS 1996 Adj. Cal. ERF; Fault Model = Frankel's; GR Fraction on B Faults = 0.5; Rupture Offset = 10.0; Background Seismicity = Exclude

TimeSpan? Param List:


Duration = 50.0

Maximum Distance = 200.0

Exception:

java.lang.NumberFormatException: For input string: "0,00010"
	at sun.misc.FloatingDecimal.readJavaFormatString(FloatingDecimal.java:1224)
	at java.lang.Double.parseDouble(Double.java:510)
	at org.opensha.sha.gui.infoTools.IMT_Info.getDefaultHazardCurve(IMT_Info.java:107)
	at org.opensha.sha.gui.HazardSpectrumLocalModeApplication.initX_Values(HazardSpectrumLocalModeApplication.java:646)
	at org.opensha.sha.gui.HazardSpectrumLocalModeApplication.computeHazardCurve(HazardSpectrumLocalModeApplication.java:305)
	at org.opensha.sha.gui.HazardCurveServerModeApplication.run(HazardCurveServerModeApplication.java:943)
	at java.lang.Thread.run(Thread.java:680)

Change History (1)

comment:1 Changed 13 years ago by Kevin Milner

Resolution: invalid
Status: newclosed

This is another case of using commas instead of periods in numbers. See new ticket, #253 for future improvement on catching these issues.

Note: See TracTickets for help on using tickets.