berhoel.holtrop.test namespace¶
Submodules¶
berhoel.holtrop.test.test_holtrop module¶
Testing Holtrop.
berhoel.holtrop.test.test_read_ship module¶
Testing read_ship.
berhoel.holtrop.test.test_ship module¶
Testing module holtrop.ship.
- class berhoel.holtrop.test.test_ship.Ship(**kw)[source]¶
Bases:
Ship- __abstractmethods__ = frozenset({})¶
- __firstlineno__ = 32¶
- __static_attributes__ = ()¶
- _abc_impl = <_abc._abc_data object>¶
- class berhoel.holtrop.test.test_ship.TestPrau[source]¶
Bases:
object- __firstlineno__ = 37¶
- __static_attributes__ = ()¶
- class berhoel.holtrop.test.test_ship.TestGenerated[source]¶
Bases:
object- __firstlineno__ = 97¶
- __static_attributes__ = ()¶
- class berhoel.holtrop.test.test_ship.TestGenerated_C_B[source]¶
Bases:
object- class C_B_References(F_n, C_B_Ayre_1_06, C_B_Ayre_1_08, C_B_Ayre_1_09, C_B_Schneekluth_1, C_B_Schneekluth_2)[source]¶
Bases:
NamedTuple- __annotations__ = {'C_B_Ayre_1_06': <class 'float'>, 'C_B_Ayre_1_08': <class 'float'>, 'C_B_Ayre_1_09': <class 'float'>, 'C_B_Schneekluth_1': <class 'float'>, 'C_B_Schneekluth_2': <class 'float'>, 'F_n': <class 'float'>}¶
- __firstlineno__ = 169¶
- __getnewargs__()¶
Return self as a plain tuple. Used by copy and pickle.
- __match_args__ = ('F_n', 'C_B_Ayre_1_06', 'C_B_Ayre_1_08', 'C_B_Ayre_1_09', 'C_B_Schneekluth_1', 'C_B_Schneekluth_2')¶
- static __new__(_cls, F_n: float, C_B_Ayre_1_06: float, C_B_Ayre_1_08: float, C_B_Ayre_1_09: float, C_B_Schneekluth_1: float, C_B_Schneekluth_2: float)¶
Create new instance of C_B_References(F_n, C_B_Ayre_1_06, C_B_Ayre_1_08, C_B_Ayre_1_09, C_B_Schneekluth_1, C_B_Schneekluth_2)
- __orig_bases__ = (<function NamedTuple>,)¶
- __replace__(**kwds)¶
Return a new C_B_References object replacing specified fields with new values
- __repr__()¶
Return a nicely formatted representation string
- __slots__ = ()¶
- __static_attributes__ = ()¶
- _asdict()¶
Return a new dict which maps field names to their values.
- _field_defaults = {}¶
- _fields = ('F_n', 'C_B_Ayre_1_06', 'C_B_Ayre_1_08', 'C_B_Ayre_1_09', 'C_B_Schneekluth_1', 'C_B_Schneekluth_2')¶
- classmethod _make(iterable)¶
Make a new C_B_References object from a sequence or iterable
- _replace(**kwds)¶
Return a new C_B_References object replacing specified fields with new values
- test_C_B(probe, C_B_reference: tuple[C_B_References, Quantity])[source]¶
- test_C_B_calc_Ayre_1_06(probe, C_B_reference: tuple[C_B_References, Quantity])[source]¶
- test_C_B_calc_Ayre_1_08(probe, C_B_reference: tuple[C_B_References, Quantity])[source]¶
- test_C_B_calc_Ayre_1_09(probe, C_B_reference: tuple[C_B_References, Quantity])[source]¶
- test_C_B_calc_Schneekluth_1(probe, C_B_reference: tuple[C_B_References, Quantity])[source]¶
- test_C_B_calc_Schneekluth_2(probe, C_B_reference: tuple[C_B_References, Quantity])[source]¶
- __firstlineno__ = 144¶
- __static_attributes__ = ()¶
- class berhoel.holtrop.test.test_ship.C_WP_References(C_B, C_M, C_WP_U, C_WP_medium, C_WP_V, C_WP_V_alt_1, C_WP_V_alt_2)[source]¶
Bases:
NamedTuple- __annotations__ = {'C_B': <class 'float'>, 'C_M': <class 'float'>, 'C_WP_U': <class 'float'>, 'C_WP_V': <class 'float'>, 'C_WP_V_alt_1': <class 'float'>, 'C_WP_V_alt_2': <class 'float'>, 'C_WP_medium': <class 'float'>}¶
- __firstlineno__ = 234¶
- __getnewargs__()¶
Return self as a plain tuple. Used by copy and pickle.
- __match_args__ = ('C_B', 'C_M', 'C_WP_U', 'C_WP_medium', 'C_WP_V', 'C_WP_V_alt_1', 'C_WP_V_alt_2')¶
- static __new__(_cls, C_B: float, C_M: float, C_WP_U: float, C_WP_medium: float, C_WP_V: float, C_WP_V_alt_1: float, C_WP_V_alt_2: float)¶
Create new instance of C_WP_References(C_B, C_M, C_WP_U, C_WP_medium, C_WP_V, C_WP_V_alt_1, C_WP_V_alt_2)
- __orig_bases__ = (<function NamedTuple>,)¶
- __replace__(**kwds)¶
Return a new C_WP_References object replacing specified fields with new values
- __repr__()¶
Return a nicely formatted representation string
- __slots__ = ()¶
- __static_attributes__ = ()¶
- _asdict()¶
Return a new dict which maps field names to their values.
- _field_defaults = {}¶
- _fields = ('C_B', 'C_M', 'C_WP_U', 'C_WP_medium', 'C_WP_V', 'C_WP_V_alt_1', 'C_WP_V_alt_2')¶
- classmethod _make(iterable)¶
Make a new C_WP_References object from a sequence or iterable
- _replace(**kwds)¶
Return a new C_WP_References object replacing specified fields with new values