8.1.2.17 Column::GetType

It is recommended that you switch to the originpro package. PyOrigin is primarily for users who need to work with Origin version prior to 2021.


Description

Get the type designator of a column (X, Y, Z, YErr, XErr, L or disregard).

Syntax

GetType()

Parameters

Return

the Column Type as an integer

0: Y
1: Disregard
2: Y Error
3: X
4: Label
5: Z
6: X Error

Examples

import PyOrigin
PyOrigin.FindWorksheet('[Book1]Sheet1').Columns(0).SetType(0)
type= PyOrigin.FindWorksheet('[Book1]Sheet1').Columns(0).GetType()
if type==0:
	print('column 1 is designated as Y')

See Also

Column::SetType