You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<spanclass="k">raise</span><spanclass="ne">ValueError</span><spanclass="p">(</span><spanclass="s1">'Name for pickled material must be given.'</span><spanclass="p">)</span>
<spanclass="n">syld</span><spanclass="o">=</span><spanclass="n">np</span><spanclass="o">.</span><spanclass="n">zeros</span><spanclass="p">((</span><spanclass="bp">self</span><spanclass="o">.</span><spanclass="n">Nset</span><spanclass="p">,</span><spanclass="n">Nlc_min</span><spanclass="p">,</span><spanclass="mi">6</span><spanclass="p">))</span><spanclass="c1"># Voigt stress tensor at onset of yielding</span>
290
290
<spanclass="k">for</span><spanclass="n">iset</span><spanclass="p">,</span><spanclass="n">dset</span><spanclass="ow">in</span><spanclass="nb">enumerate</span><spanclass="p">(</span><spanclass="bp">self</span><spanclass="o">.</span><spanclass="n">set</span><spanclass="p">):</span><spanclass="c1"># loop over data sets</span>
@@ -1475,11 +1475,11 @@ <h1>Source code for pylabfea.material</h1><div class="highlight"><pre>
1475
1475
<spanclass="sd"> sname : str</span>
1476
1476
<spanclass="sd"> Name of script that created this material</span>
1477
1477
<spanclass="sd"> source : str</span>
1478
-
<spanclass="sd"> Source of parameters (optiona, default: None)</span>
1478
+
<spanclass="sd"> Source of parameters (optional, default: None)</span>
1479
1479
<spanclass="sd"> file : str</span>
1480
1480
<spanclass="sd"> Trunk of filename to which CSV flies are written (optional, default: None)</span>
1481
1481
<spanclass="sd"> path : str</span>
1482
-
<spanclass="sd"> Path to which files are written (optional: default: '')</span>
1482
+
<spanclass="sd"> Path to which files are written (optional: default: '../../models/')</span>
1483
1483
<spanclass="sd"> descr : list</span>
1484
1484
<spanclass="sd"> List of names of model parameters used for generating this ML material (optional, default: [])</span>
1485
1485
<spanclass="sd"> param : list</span>
@@ -1511,7 +1511,9 @@ <h1>Source code for pylabfea.material</h1><div class="highlight"><pre>
1511
1511
<spanclass="k">raise</span><spanclass="ne">ValueError</span><spanclass="p">(</span><spanclass="s1">'Lists for descr and param must have the same lengths.'</span><spanclass="p">)</span>
<spanclass="sd">'''Define material properties from parameters of trained machine learning </span>
1850
+
<spanclass="sd"> models that have been written with `Material.export_MLparam`.</span>
1851
+
<spanclass="sd"> Will invoke definition of elastic parameters by calls to the methods </span>
1852
+
<spanclass="sd"> `Material.elasticity` with the parameters provided in the data set. </span>
1853
+
<spanclass="sd"> Also initializes current texture to first one in list and resets work hardening</span>
1854
+
<spanclass="sd"> parameters.</span>
1855
+
1856
+
<spanclass="sd"> Parameters</span>
1857
+
<spanclass="sd"> ----------</span>
1858
+
<spanclass="sd"> name : string</span>
1859
+
<spanclass="sd"> Name of parameter files (`name`.csv file and metadata file `name_meta.json`)</span>
1860
+
<spanclass="sd"> path : string</span>
1861
+
<spanclass="sd"> Path in which files are stored (optional, default: '../../models/') </span>
1862
+
<spanclass="sd"> '''</span>
1863
+
<spanclass="k">raise</span><spanclass="ne">ModuleNotFoundError</span><spanclass="p">(</span><spanclass="s1">'Import from ML parameters not yet implemented.'</span><spanclass="p">)</span></div>
0 commit comments