apply_periodic_map
compute.apply_periodic_map(input_array, periodic_map)Relabel an integer array using a label-to-label map.
It takes an array of integers and a dictionary that maps integers to integers, and returns an array of integers that is the result of applying the dictionary to the input array
Parameters
| Name | Type | Description | Default |
|---|---|---|---|
| input_array | a numpy array of integers | required | |
| periodic_map | a dictionary that maps the input values to the output values | required |
Returns
| Name | Type | Description |
|---|---|---|
| the value of the key in the dictionary. |