-
Notifications
You must be signed in to change notification settings - Fork 7
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Looking at some NuSTAR data it appears that one of the FITS files has an integer stored as a string. Here's the Stacktrace.
Stacktrace:
[1] _read_fits_and_close(f::SpectralFitting.OGIP.var"#7#8"{Float64, Int64, Int64}, path::String)
@ SpectralFitting.OGIP ~/Documents/GitHub/SWIFT_J0909/dev/SpectralFitting/src/datasets/ogip.jl:130
[2] read_rmf(path::String, ogip_config::StandardOGIPConfig{Float64})
@ SpectralFitting.OGIP ~/Documents/GitHub/SWIFT_J0909/dev/SpectralFitting/src/datasets/ogip.jl:141
[3] _dataset_from_ogip(paths::SpectralFitting.SpectralDataPaths, config::StandardOGIPConfig{Float64})
@ SpectralFitting ~/Documents/GitHub/SWIFT_J0909/dev/SpectralFitting/src/datasets/spectraldata.jl:256
[4] SpectralData(paths::SpectralFitting.SpectralDataPaths, config::StandardOGIPConfig{Float64})
@ SpectralFitting ~/Documents/GitHub/SWIFT_J0909/dev/SpectralFitting/src/datasets/spectraldata.jl:55
[5] NuStarData(spec_path::String; T::Type, kwargs::@Kwargs{})
@ SpectralFitting ~/Documents/GitHub/SWIFT_J0909/dev/SpectralFitting/src/datasets/nustart.jl:23
[6] NuStarData(spec_path::String)
@ SpectralFitting ~/Documents/GitHub/SWIFT_J0909/dev/SpectralFitting/src/datasets/nustart.jl:10
[7] top-level scope
@ ~/Documents/GitHub/SWIFT_J0909/src/sed_fitting.jl:53
caused by: MethodError: no method matching Int64(::String)I've called this as a "bug" but it is really just needing to handle a poorly typed FITS file.
Let me know if you need the specific code to reproduce this.
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working