Commit d56dfd49 authored by Tjerk Vreeken's avatar Tjerk Vreeken

Whitespace fixes around comma

parent f52af23b
......@@ -21,7 +21,7 @@ f.autofmt_xdate()
# Upper subplot
axarr[0].set_ylabel('Water Volume [m³]')
axarr[0].ticklabel_format(style='sci', axis='y', scilimits=(0,0))
axarr[0].ticklabel_format(style='sci', axis='y', scilimits=(0, 0))
axarr[0].plot(results['time'], results['V_storage'], label='Storage',
linewidth=2, color='b')
axarr[0].plot(results['time'], [420000]*len(results['time']), label='Storage Max',
......
......@@ -26,7 +26,7 @@ f.autofmt_xdate()
# Upper Subplot
axarr[0].set_ylabel('Water Volume in Storage [m³]')
axarr[0].ticklabel_format(style='sci', axis='y', scilimits=(0,0))
axarr[0].ticklabel_format(style='sci', axis='y', scilimits=(0, 0))
# Lower Subplot
axarr[1].set_ylabel('Flow Rate [m³/s]')
......
......@@ -21,7 +21,7 @@ f.autofmt_xdate()
# Upper subplot
axarr[0].set_ylabel('Water Volume [m³]')
axarr[0].ticklabel_format(style='sci', axis='y', scilimits=(0,0))
axarr[0].ticklabel_format(style='sci', axis='y', scilimits=(0, 0))
axarr[0].plot(results['time'], results['storage_V'], label='Storage',
linewidth=2, color='b')
axarr[0].plot(results['time'], results['V_max'], label='Storage Max',
......
......@@ -64,14 +64,14 @@ class TestSimulation(TestCase):
idx += 1
varname = self.problem.get_var_name(idx)
self.assertEqual(varname,'switched')
self.assertEqual(varname, 'switched')
def test_get_time(self):
# test methods for get_time
start = 0.0
stop = 10.0
dt = 1.0
self.problem.setup_experiment(start,stop, dt)
self.problem.setup_experiment(start, stop, dt)
self.problem.initialize()
val = self.problem.get_start_time()
self.assertAlmostEqual(self.problem.get_start_time(), start, 1e-6)
......@@ -88,7 +88,7 @@ class TestSimulation(TestCase):
start = 0.0
stop = 10.0
dt = 1.0
self.problem.setup_experiment(start,stop, dt)
self.problem.setup_experiment(start, stop, dt)
self.problem.initialize()
curtime = self.problem.get_current_time()
while curtime < stop:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment