schrodinger.application.matsci.device_formulations module

Utilities for device design and device machine learning

Copyright Schrodinger, LLC. All rights reserved.

schrodinger.application.matsci.device_formulations.get_oled_layer_color(layer_type, index)

Get the color of the OLED layer

Parameters:
  • layer_type (str) – The type of the layer

  • index (int) – The index of the layer

Returns:

The color of the layer in RGB 0-255 format

Return type:

tuple

schrodinger.application.matsci.device_formulations.is_layer_allowed(layer_type, layer_index, allowed_layers=None)

Check if the layer is allowed in the OLED stack

Parameters:
  • layer_type (str) – The type of the layer

  • layer_index (int) – The index of the layer

  • allowed_layers (dict or None) – The allowed layers types as a dictionary and the values are lists of layer names, if None, use the default OLED_PREDEFINED_LAYERS

Returns:

True if the layer is allowed, False otherwise

Return type:

bool

schrodinger.application.matsci.device_formulations.get_max_layer_index(layer_type, all_layers=None)

Get the maximum index of the layer

Parameters:
  • layer_type (str) – The type of the layer

  • all_layers (dict or None) – The allowed layers types as a dictionary and the values are lists of layer names or None to use the default OLED_PREDEFINED_LAYERS

Returns:

The maximum index of the layer

Return type:

int