We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0971fbf commit 7bdde0fCopy full SHA for 7bdde0f
1 file changed
pysteps/io/exporters.py
@@ -92,6 +92,7 @@
92
93
import os
94
from datetime import datetime
95
+from importlib.metadata import version as get_version
96
97
import numpy as np
98
@@ -501,7 +502,7 @@ def initialize_forecast_exporter_netcdf(
501
502
ncf.Conventions = "CF-1.7"
503
ncf.title = "pysteps-generated nowcast"
504
ncf.institution = institution
- ncf.source = "pysteps" # TODO(exporters): Add pySTEPS version here
505
+ ncf.source = "pysteps v" + get_version("pysteps")
506
ncf.history = ""
507
ncf.references = references
508
ncf.comment = comment
0 commit comments