UserDefinedFieldNormalizer is marked as DEPRECATED and will be removed in future versions
Analysis & Postprocessing
2
Posts
2
Posters
111
Views
2
Watching
-
UserDefinedFieldNormalizer previously used for normalization is marked as DEPRECATED. Now, I wonder if it's feasible to normalize to 1mA? I noticed that the factor remains 1 across different simulations.
# Adding a new DataTableHTMLViewer output1 = current_extractor1.Outputs["Total Flux(J(x,y,z,f0))"] output1.Update() comp1 = output1.Data.GetComponent(0) flux1 = np.real(comp1)[0] inputs1 = [em_sensor_extractor1.Outputs["EM E(x,y,z,f0)"]] multiplier_filter = analysis.core.Multiplier(inputs=inputs1) multiplier_filter.Factor = 1.0 / (flux1 * 1000) multiplier_filter.Name = f"{value1}_{value2}_Normalize" multiplier_filter.UpdateAttributes() document.AllAlgorithms.Add(multiplier_filter) multiplier_filter.Outputs["EM E(x,y,z,f0)"].Update()
-
Hi, there aren't any known issues with the Multiplier tool that would prevent you from scaling your field by any arbitrary value.
Is it possible that in your script, you are using the same variable 'output1' for each case and as such are calculating the same value each time?
If you are still having issues, could you share your project and script with the support team via s4l-support@zmt.swiss?