Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

JIRA

SUMMARY

DESCRIPTOIN

DETAILS

ORG-30144

Python supports setting parameter bounds in NLFit

Added following function to set parameter bounds in NLFit.

Code Block
def set_lbound(self, p, ctrl='>', val=None)
def set_ubound(self, p, ctrl='<', val=None)

Example:

Code Block
import originpro as op
wks = op.new_sheet()
fn=op.path('e') + r'Samples\Curve Fitting\Gaussian.dat'
wks.from_file(fn, False)
model2 = op.NLFit('Gauss')
model2.set_data(wks, 0, 1)
model2.set_lbound('y0','>','6')
model2.set_ubound('A','<','800')
model2.fit()

ORG-30621

Enable reading from and writing to a matrix sheet using a 1D array

Improve ms.from_np()function to support set 1D array to Matrixsheet as a row.

Example:

Code Block
import originpro as op
import numpy as np
arr = np.array([1, 2, 3, 4, 5])
ms = op.new_sheet('m')
ms.from_np(arr)

LabTalk

JIRA

SUMMARY

DESCRIPTOIN

DETAILS

ORG-30110

More efficient way to assign values on label Rows

Label row supports assign numeric value and supports assigning scalar string values to dataset.

How to assign values to a user-defined parameter row.

Code Block
newbook;
//C, L, U are label row characters
range -v rvA=[C]:[C], rvB=[L]:[L], rvC=[U]:[U];
rvA[1]=20;
rvA[2]$="hello";
rvB=30;
rvC="world";

...