本文整理汇总了Python中mathkit.mfn.mfn_line.mfn_line.MFnLineArray.data_changed方法的典型用法代码示例。如果您正苦于以下问题:Python MFnLineArray.data_changed方法的具体用法?Python MFnLineArray.data_changed怎么用?Python MFnLineArray.data_changed使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类mathkit.mfn.mfn_line.mfn_line.MFnLineArray
的用法示例。
在下文中一共展示了MFnLineArray.data_changed方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: _mfn_line_array_target_default
# 需要导入模块: from mathkit.mfn.mfn_line.mfn_line import MFnLineArray [as 别名]
# 或者: from mathkit.mfn.mfn_line.mfn_line.MFnLineArray import data_changed [as 别名]
def _mfn_line_array_target_default(self):
mfn = MFnLineArray( xdata = self.xdata_target, ydata = self.ydata_target )
mfn.data_changed = True
return mfn
示例2: MFnLineArray
# 需要导入模块: from mathkit.mfn.mfn_line.mfn_line import MFnLineArray [as 别名]
# 或者: from mathkit.mfn.mfn_line.mfn_line.MFnLineArray import data_changed [as 别名]
4.69876847, 4.78526735, 4.87387975, 4.96459931, 5.0574041 , 5.15226056,
5.24912666, 5.3479542 , 5.44869074, 5.55128092, 5.65566766, 5.76179299,
5.86959871, 5.97902693, 6.09002044, 0.74043954, 0.74661105, 0.75304179,
0.75972494, 0.7666537 , 0.77382139, 0.7812214 , 0.78884722, 0.79669249,
0.80475096, 0.81301651, 0.82148317, 0.83014509, 0.83899658, 0.84803208,
0.85724617, 0.86663356, 0.87618913, 0.88590785, 0.89578486, 0.90581541,
0.91599489, 0.9263188 , 0.93678277, 0.94738257, 0.95811405, 0.9689732,
0.9689732 ])
# interpolation function for fitting data
mfn_line_array_fit = MFnLineArray()
mfn_line_array_fit.set( xdata = xdata_fit, ydata = ydata_fit )
mfn_line_array_fit.data_changed = True
# get the current strain:
eps_app_tn1 = copy( fitter.tloop.U_k )
print 'eps_app_tn1', eps_app_tn1
# get the current sctx:
sctx = fitter.tloop.tstepper.sctx
print 'sctx', sctx
# for fitting use default method 'get_value' of 'MFnLineArray' as 'phi_fn':
fitter.mats2D_eval.polar_fn.phi_fn.mfn.get_value = MFnLineArray().get_value
e_max_value_new = max( fitter.mats2D_eval._get_state_variables( sctx, eps_app_tn1 ) )
print 'e_max_value_new', e_max_value_new