might be better to refactor some of these functions to a utility file in a separate PR isntead of having it in observer.py and is not a property of the observer. `float_to_apot` is used by your observer visualization and when quantizing a tensor. 