diff --git a/docs/inputs/agents.rst b/docs/inputs/agents.rst index da2245d7..40e724dd 100644 --- a/docs/inputs/agents.rst +++ b/docs/inputs/agents.rst @@ -42,6 +42,7 @@ Type technologies. If only "New" agents are included, they will also invest to make up for decommissioned assets, but the end mix might be different than using a specialised "Retrofit" agent for that. + *Note: Retrofit agents will be deprecated in a future release.* AgentShare Name used to assign a fraction of existing capacity to the agent in the :ref:`inputs-technodata` file. diff --git a/src/muse/readers/csv.py b/src/muse/readers/csv.py index 9e681863..5a7efbc7 100644 --- a/src/muse/readers/csv.py +++ b/src/muse/readers/csv.py @@ -482,6 +482,8 @@ def read_csv_agent_parameters(filename) -> list: Returns a list of dictionaries, where each dictionary can be used to instantiate an agent in :py:func:`muse.agents.factories.factory`. """ + from logging import getLogger + from muse.readers import camel_to_snake if ( @@ -534,6 +536,15 @@ def read_csv_agent_parameters(filename) -> list: "agent": "agent", "default": "agent", }[getattr(row, "Type", "agent").lower()] + + # Add warning about retrofit agents + if agent_type == "retrofit": + msg = ( + "Retrofit agents will be deprecated in a future release. " + "Please modify your model to use only agents of the 'New' type." + ) + getLogger(__name__).warning(msg) + data = { "name": row.Name, "region": row.RegionName,