message_ix_models.model.transport.files.add

message_ix_models.model.transport.files.add(*, replace: bool = False, **kwargs) Key[source]

Add or replace an entry in FILES.

Parameters:
  • replace (bool, *optional*) – If True, replace any existing entry in FILES that targets an equivalent key to the one implied by kwargs. Otherwise (default), raise an exception.

  • kwargs – Passed on to ExogenousDataFile.

Returns:

The ExogenousDataFile.key at which the loaded and transformed data will be available.

Return type:

Key