(datatypes)= # Attribute datatypes SHOP attributes, both inputs and outputs, uses the following datatypes: ```{contents} :local: :depth: 1 ``` (datatype:int)= ## int An integer, a number without decimals. For example, it is used to denote number of generators on a plant through the [](plant:num_gen) attribute. - [JSON example](json:int) - [pyshop example](pyshop:scalar) - [Yaml example](yaml:int) (datatype:int_array)= ## int_array A list of integers. - [JSON example](json:int_array) - [pyshop example](pyshop:array) - [Yaml example](yaml:int_array) (datatype:double)= ## double A decimal number. - [JSON example](json:double) - [pyshop example](pyshop:scalar) - [Yaml example](yaml:double) (datatype:double_array)= ## double_array A list of decimal numbers. - [JSON example](json:double_array) - [pyshop example](pyshop:array) - [Yaml example](yaml:double_array) (datatype:string)= ## string A text string. - [JSON example](json:string) - [pyshop example](pyshop:scalar) - [Yaml example](yaml:string) (datatype:string_array)= ## string_array A list of text strings. - [JSON example](json:string_array) - [pyshop example](pyshop:array) (datatype:xy)= ## xy An indexed table. - [ASCII example](ascii:xy) - [JSON example](json:xy) - [pyshop example](pyshop:xy) - [Yaml example](yaml:xy) (datatype:xy_array)= ## xy_array A list of indexed tables. - [JSON example](json:xy_array) - [pyshop example](pyshop:xy_array) - [Yaml example](yaml:xy_array) (datatype:txy)= ## txy A time series. - [ASCII example](ascii:txy) - [JSON example (deterministic)](json:txy) - [pyshop example](pyshop:txy) - [Yaml example (deterministic)](yaml:txy) - [Yaml example (stochastic)](yaml:stxy) (datatype:xyt)= ## xyt Similar to [](datatype:xy_array), but the xy array reference value is a timestamp. - [ASCII example](ascii:xyt) - [JSON example](json:xyt) - [pyshop example](pyshop:xyt) - [Yaml example](yaml:xyt) (datatype:sy)= ## sy A map with string keys and numerical values. - [ASCII example](ascii:sy) - [JSON example](json:sy) - [pyshop example](pyshop:sy) - [Yaml example](yaml:sy)