diff --git a/wetb/hawc2/at_time_file.py b/wetb/hawc2/at_time_file.py index c84c75e6fdd38bb6646aac366556b261e40744fa..25de3b42e9e81a5a4ef59dd2d594e330748abf90 100644 --- a/wetb/hawc2/at_time_file.py +++ b/wetb/hawc2/at_time_file.py @@ -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 diff --git a/wetb/hawc2/bladeinfo.py b/wetb/hawc2/bladeinfo.py index 43c97c5c945eba6b8d37fd1d05f43a55da7a4c68..072924378a48318f235aa8dc97e37678812fba0d 100644 --- a/wetb/hawc2/bladeinfo.py +++ b/wetb/hawc2/bladeinfo.py @@ -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) diff --git a/wetb/hawc2/mainbody.py b/wetb/hawc2/mainbody.py index 02f89796a012b53b74700399d2fa22840737dc1c..0744294d0b2aefb591f8ee0fd61776ea66ded8fe 100644 --- a/wetb/hawc2/mainbody.py +++ b/wetb/hawc2/mainbody.py @@ -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) diff --git a/wetb/hawc2/tests/test_AtTimeFile.py b/wetb/hawc2/tests/test_AtTimeFile.py index 09573fd33ba82feb1f5dc5d52cc5ba1ec1ea0b21..e45e176d25e97fb32443123d81a94fc632d899c0 100644 --- a/wetb/hawc2/tests/test_AtTimeFile.py +++ b/wetb/hawc2/tests/test_AtTimeFile.py @@ -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']