File remove_spam.patch of Package ecmwf-opendata
diff -Nupr ecmwf-opendata-0.3.26.b/ecmwf/opendata/client.py ecmwf-opendata-0.3.26/ecmwf/opendata/client.py
--- ecmwf-opendata-0.3.26.b/ecmwf/opendata/client.py 2025-12-04 16:00:51.000000000 +0100
+++ ecmwf-opendata-0.3.26/ecmwf/opendata/client.py 2025-12-04 23:21:50.215439503 +0100
@@ -45,7 +45,7 @@ EXTENSIONS = {"tf": "bufr"}
ONCE = set()
-_ATTRIBUTION_SHOWN = False # module-level guard to avoid spamming
+_ATTRIBUTION_SHOWN = True # module-level guard to avoid spamming
def _show_attribution_message():
@@ -138,17 +138,17 @@ class Client:
self.debug = debug
self.verify = verify
- if source == "ecmwf":
- warning_once(
- "To ensure the stability of our systems and to "
- "preserve resources for our operational activities (network, compute, etc.), "
- "access to the open-data portal is limited to 500 simultaneous connections. "
- "This limit helps us guarantee reliable service for our operational users, "
- "especially during periods of high demand. "
- "For added reliability, the open-data is replicated across AWS, Azure, and Google Cloud."
- " If you experience difficulties accessing the portal directly, "
- "you can also retrieve the data from these cloud platforms."
- )
+ #if source == "ecmwf":
+ #warning_once(
+ # "To ensure the stability of our systems and to "
+ # "preserve resources for our operational activities (network, compute, etc.), "
+ # "access to the open-data portal is limited to 500 simultaneous connections. "
+ # "This limit helps us guarantee reliable service for our operational users, "
+ # "especially during periods of high demand. "
+ # "For added reliability, the open-data is replicated across AWS, Azure, and Google Cloud."
+ # " If you experience difficulties accessing the portal directly, "
+ # "you can also retrieve the data from these cloud platforms."
+ #)
# If the data source is azure, enable SAS token generation
if use_sas_token is None: