Skip to content
Snippets Groups Projects
Commit 00be8be8 authored by Mads M. Pedersen's avatar Mads M. Pedersen
Browse files

radius_ac renamed to radius_curved_ac in at_time_file.py

parent d296524e
No related branches found
No related tags found
No related merge requests found
......@@ -66,7 +66,7 @@ class AtTimeFile(object):
for column, att_name in enumerate(self.attribute_names):
setattr(self, att_name, func_factory(column))
def radius_ac(self, radius=None):
def radius_curved_ac(self, radius=None):
"""Radius (curved distance) of aerodynamic calculation point(s)
Parameters
......
......@@ -76,7 +76,7 @@ class H2BladeInfo(BladeInfo, PCFile, AtTimeFile):
From at_time_filename
- attribute_names
- xxx(radius=None, curved_length=None) # xxx for each attribute name
- radius_ac(radius=None) # Curved length of nearest/all aerodynamic calculation points
- radius_curved_ac(radius=None) # Curved length of nearest/all aerodynamic calculation points
From ST file
- radius_st(radius=None, mset=1, set=1)
......
......@@ -126,7 +126,7 @@ class BladeData(object):
class Blade(MainBody, BladeData):
def __init__(self, htc_filename, modelpath, blade_number=1):
def __init__(self, htc_filename, modelpath=None, blade_number=1):
self.htcfile = htcfile = HTCFile(htc_filename, modelpath)
......
......@@ -56,9 +56,9 @@ class TestAtTimeFile(unittest.TestCase):
def test_at_time_file_radius(self):
atfile = AtTimeFile(self.testfilepath + "at_time.dat")
self.assertEqual(atfile.radius_ac()[12], 10.2505)
self.assertEqual(atfile.radius_ac(10), 10.2505)
self.assertEqual(atfile.radius_ac(10.5), 10.2505)
self.assertEqual(atfile.radius_curved_ac()[12], 10.2505)
self.assertEqual(atfile.radius_curved_ac(10), 10.2505)
self.assertEqual(atfile.radius_curved_ac(10.5), 10.2505)
if __name__ == "__main__":
#import sys;sys.argv = ['', 'Test.testName']
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment