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