Skip to content

Commit

Permalink
Made update_for_plot() private
Browse files Browse the repository at this point in the history
  • Loading branch information
bedoge committed Jan 5, 2024
1 parent f1b80c4 commit 539dacf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 13 deletions.
2 changes: 0 additions & 2 deletions docs/source/api.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@ API

.. autofunction:: src.WMSDTransformer.WMSDTransformer.plot

.. autofunction:: src.WMSDTransformer.WMSDTransformer.update_for_plot

.. autofunction:: src.WMSDTransformer.WMSDTransformer.plot2

.. autofunction:: src.WMSDTransformer.WMSDTransformer.show_ranking
Expand Down
14 changes: 3 additions & 11 deletions src/WMSDTransformer.py
Original file line number Diff line number Diff line change
Expand Up @@ -352,16 +352,8 @@ def max_std(m, n):
)
return fig

def update_for_plot(self, id, changes, change_number):
"""TO DO
Parameters
----------
parameter : type
description
Returns
-------
TO DO
"""
def __update_for_plot(self, id, changes, change_number):

if "Mean" in changes.columns and "Std" in changes.columns:
self.X_newPoint = self.X_new.copy()
self.X_newPoint.loc["NEW " + id] = self.X_newPoint.loc[id]
Expand Down Expand Up @@ -419,7 +411,7 @@ def plot2(self, id, changes, show_names=False, change_number=0):
-------
TO DO
"""
self.update_for_plot(id, changes, change_number)
self.__update_for_plot(id, changes, change_number)
old_rank = (
self.X_new.sort_values(by="AggFn", ascending=False).index.get_loc(id) + 1
)
Expand Down

0 comments on commit 539dacf

Please sign in to comment.