Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Tortar committed Oct 17, 2024
1 parent 8538e22 commit 673479f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/calibration.jl
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ date2num(d::Dates.DateTime) = Dates.value(d - MATLAB_EPOCH) / (1000 * 60 * 60 *

# imverse function of the above
const MATLAB_EPOCH = Dates.DateTime(-1, 12, 31)
num2date(n::Number) = MATLAB_EPOCH + Dates.Millisecond(matlab_round(Int64, n * 1000 * 60 * 60 * 24))
num2date(n::Number) = MATLAB_EPOCH + Dates.Millisecond(round(Int64, n * 1000 * 60 * 60 * 24))


function get_params_and_initial_conditions(calibration_object, calibration_date; scale = 0.001)
Expand Down

0 comments on commit 673479f

Please sign in to comment.