pyuvdata icon indicating copy to clipboard operation
pyuvdata copied to clipboard

Refactor equality testing in uvbase and parameter to allow diff printing and move printing in `__eq__` calls to logging

Open bhazelton opened this issue 2 years ago • 0 comments

It would be useful to be able to print the differences between objects without calling __eq__ and we probably do not want __eq__ to print out things by default (it's super useful in test debugging but probably not very useful for users).

Proposal is to move all the code to a helper function that returns a message containing information about the differences.

Then add a method to just print that info, and update the __eq__ function to call it without the printing but add it to logging with a level of "info".

bhazelton avatar Feb 23 '23 18:02 bhazelton