KrishnaswamyLab / PHATE

PHATE (Potential of Heat-diffusion for Affinity-based Transition Embedding) is a tool for visualizing high dimensional data.
http://phate.readthedocs.io
Other
472 stars 73 forks source link

fix __repr__ errors #106

Closed lukebfunk closed 2 years ago

lukebfunk commented 3 years ago

Currently anything that calls the __repr__ method of a PHATE class instance (__repr__ is inherited from BaseEstimator) raises an error: e.g., anything like print(phate.PHATE()) raises AttributeError: 'PHATE' object has no attribute 'a'. This is due to the deprecated a being an argument of the __init__ method, but not an attribute of the class instance. There are many ways this could be fixed; here I wrote a decorator for __init__ that handles argument deprecation, removing deprecated arguments from __init__.

coveralls commented 3 years ago

Pull Request Test Coverage Report for Build 796760594


Totals Coverage Status
Change from base Build 556229105: 0.0%
Covered Lines: 0
Relevant Lines: 0

💛 - Coveralls
dburkhardt commented 3 years ago

@lukebfunk Can you lint the code using black and flake8?

lukebfunk commented 3 years ago

Great! I am new to lint-ing, but gave it a try. Feedback is welcome. Looks like flake8 should use --max-line-length 88 and ignore F401?

coveralls commented 1 month ago

Pull Request Test Coverage Report for Build 796760594

Warning: This coverage report may be inaccurate.

This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.

Details


Totals Coverage Status
Change from base Build 556229105: 0.0%
Covered Lines: 0
Relevant Lines: 0

💛 - Coveralls
coveralls commented 1 month ago

Pull Request Test Coverage Report for Build 796760594

Warning: This coverage report may be inaccurate.

This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.

Details


Totals Coverage Status
Change from base Build 556229105: 0.0%
Covered Lines: 0
Relevant Lines: 0

💛 - Coveralls