compas_fab.utilities
Package containing a set of utility functions.
File system functions
This function lists just the files in a directory, not sub-directories. |
|
Reads a csv file and returns a dictionary with the respective keys specified in the first row of the csv file. |
|
Read data from pickle file. |
|
Write data to pickle file. |
Numerical functions
Returns True if two lists are element-wise equal within a tolerance. |
|
Returns evenly spaced values within a given interval. |
|
Clamps a value within the bound [min_value, max_value] |
|
Returns the element-wise differences between two lists. |
|
Performs a linear interpolation of a value within the range of [from_min, from_max] to another range of [to_min, to_max]. |
|
Returns a list of numbers with a certain relation to each other. |
|
Returns the sign of a number: +1 or -1. |
Other functions
Returns the index of the maximum value in numbers. |
|
Returns the index of the minimum value in numbers. |
|
Returns the indices that would sort an array of numbers. |
|
Lazily import a module, mainly to avoid pulling in large dependencies. |