Skip to content

Commit

Permalink
Explictly convert N and L parameters from .pras files to Int
Browse files Browse the repository at this point in the history
  • Loading branch information
GordStephen committed Jan 5, 2023
1 parent 8fdee7b commit d5a49ef
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/PRASBase/read.jl
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ function systemmodel_0_5(f::File)
start_timestamp = ZonedDateTime(read(metadata["start_timestamp"]),
dateformat"yyyy-mm-ddTHH:MM:SSz")

N = read(metadata["timestep_count"])
L = read(metadata["timestep_length"])
N = Int(read(metadata["timestep_count"]))
L = Int(read(metadata["timestep_length"]))
T = timeunits[read(metadata["timestep_unit"])]
P = powerunits[read(metadata["power_unit"])]
E = energyunits[read(metadata["energy_unit"])]
Expand Down

0 comments on commit d5a49ef

Please sign in to comment.