Skip to content

Commit

Permalink
refactor: Added type hints and docstrings to helper functions. Remove…
Browse files Browse the repository at this point in the history
…d unused helper functions
  • Loading branch information
pabloitu committed Aug 23, 2024
1 parent b34f72b commit a91339b
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions tests/test_plots.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,18 +76,18 @@ def is_github_ci():
show_plots = False


# class TestPlots(unittest.TestCase):
#
# def __init__(self, *args, **kwargs):
# super().__init__(*args, **kwargs) # Call the parent constructor
# # Define the save directory
# self.artifacts = os.path.join(os.path.dirname(__file__), "artifacts")
# self.save_dir = os.path.join(self.artifacts, "plots")
# os.makedirs(self.save_dir, exist_ok=True)
#
# def savefig(self, ax, name):
# ax.figure.savefig(os.path.join(self.save_dir, name))
#
class TestPlots(unittest.TestCase):

def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs) # Call the parent constructor
# Define the save directory
self.artifacts = os.path.join(os.path.dirname(__file__), "artifacts")
self.save_dir = os.path.join(self.artifacts, "plots")
os.makedirs(self.save_dir, exist_ok=True)

def savefig(self, ax, name):
ax.figure.savefig(os.path.join(self.save_dir, name))

#
# class TestTimeSeriesPlots(TestPlots):
#
Expand Down

0 comments on commit a91339b

Please sign in to comment.