Skip to content

Commit

Permalink
PyIRoGlass v0.2.0 released!
Browse files Browse the repository at this point in the history
  • Loading branch information
sarahshi committed Sep 24, 2023
1 parent 1db290a commit ec0decf
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions UnitTests/test_plotting.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@
import pandas as pd
import sys
import PyIRoGlass as pig
import matplotlib.pyplot as plt
import matplotlib
import matplotlib.pyplot
from matplotlib import pyplot as plt


class test_plotting_trace(unittest.TestCase):
Expand Down Expand Up @@ -66,7 +68,7 @@ def setUp(self):
self.decimalPlace = 5


@patch.object(matplotlib.pyplot.Figure, 'savefig')
@patch('matplotlib.pyplot.Figure.savefig')
def test_modelfit_savefile(self, mock_savefig):

file_path = os.path.join(os.path.dirname(os.path.realpath(__file__)), '../src/PyIRoGlass/BaselineAvgPC.npz')
Expand All @@ -90,7 +92,7 @@ def test_modelfit_savefile(self, mock_savefig):
self.assertIn('dummy_filename.png', args[0])
plt.close('all')

@patch.object(matplotlib.pyplot.Figure, 'savefig')
@patch('matplotlib.pyplot.Figure.savefig')
def test_modelfit_nosavefile(self, mock_savefig):

file_path = os.path.join(os.path.dirname(os.path.realpath(__file__)), '../src/PyIRoGlass/BaselineAvgPC.npz')
Expand Down

0 comments on commit ec0decf

Please sign in to comment.