Fix incorrect test directory
@@ -474,7 +474,7 @@ class TestLinearDerivatives(unittest.TestCase):
# czwa = (body_forces[-1, -1] - body_forces[0, -1]) / (forces[-1, 0] - forces[0, 0]) * 180 / np.pi
# print('Vertical force with vertical velocity perturbation {:.6e}'.format(czwa))
- with h5py.File(self.route_test_dir + '/output/' + ref_case_name + '/stability.h5', 'r') as f:
+ with h5py.File(self.route_test_dir + '/output/' + ref_case_name + '/derivatives/stability.h5', 'r') as f:
sharpy_force_angle = h5utils.load_h5_in_dict(f)['force_angle_velocity']
linsubtests = ((2, cla, 'lift'),
@@ -505,11 +505,11 @@ class TestLinearDerivatives(unittest.TestCase):
# raise AssertionError
return forces, moments
- # def tearDown(self):
- # import shutil
- # folders = ['cases', 'output']
- # for folder in folders:
- # shutil.rmtree(self.route_test_dir + '/' + folder)
+ def tearDown(self):
+ import shutil
+ folders = ['cases', 'output']
+ for folder in folders:
+ shutil.rmtree(self.route_test_dir + '/' + folder)
if __name__ == '__main__':
