How to write your own python script for data analysis?
Write a python script that contains a method called "rawDataCalc" with three input arguments:
The rawDataObject has the method getColumnByName, which return a Dict with "Name", "Type", "Unit" and "Data" as keys. You can find the raw data of this column under the Key "Data". To get the raw data you can ask for the "Data" key or you call directly the getDataByName method. The raw data of each column are a list with lists for each step. So even if your data have only one step, it will be a list with just one list for this single step.
During analysis this method will be called. You can define other classes and other method that can be called from the rawDataCalc method.
You can use all standard python modules plus the following packages:
To interact with classical data files:
- dataObjceRawData: An data object representing the raw data. It contains also the referred dataObjectExperiment by calling: dataObjectRawData["ExpID]
- dataObjectSample: An data object representing the referred sample
- dataObjectGroup: An data object representing the referred group
The rawDataObject has the method getColumnByName, which return a Dict with "Name", "Type", "Unit" and "Data" as keys. You can find the raw data of this column under the Key "Data". To get the raw data you can ask for the "Data" key or you call directly the getDataByName method. The raw data of each column are a list with lists for each step. So even if your data have only one step, it will be a list with just one list for this single step.
During analysis this method will be called. You can define other classes and other method that can be called from the rawDataCalc method.
You can use all standard python modules plus the following packages:
To interact with classical data files:
- csv, pyexcel, pyexcel_ods, pyexcel_xlsx, pyexcel_xls, pyexcel_io, openpyxl
- numpy