Update src/seismic_hazard_forecasting.py

This commit is contained in:
ftong 2025-06-30 18:15:24 +02:00
parent 6085979207
commit b822019942

View File

@ -1,4 +1,6 @@
# -*- coding: utf-8 -*-
from datetime import timedelta, datetime
def datenum_to_datetime(datenum):
# MATLAB epoch starts at year 0, Python's datetime starts at year 1
matlab_epoch = datetime(1, 1, 1)