Attribute datatypes#

SHOP attributes, both inputs and outputs, uses the following datatypes:

int#

An integer, a number without decimals. For example, it is used to denote number of generators on a plant through the num_gen attribute.

int_array#

A list of integers.

double#

A decimal number.

double_array#

A list of decimal numbers.

string#

A text string.

string_array#

A list of text strings.

xy#

An indexed table.

xy_array#

A list of indexed tables.

txy#

A time series.

xyt#

Similar to xy_array, but the xy array reference value is a timestamp.

sy#

A map with string keys and numerical values.