FURTHResearch
  • FURTHRmind
  • RESEARCH DATA HANDLING
  • ABOUT
  • SUPPORT
  • JOBS
  • CONTACT

How to write your own python script for data analysis?

Write a python script that contains a method called "rawDataCalc" with three input arguments:
  • 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
Every dataObject has the methods: getValueByFieldName and getUnitByFieldName, which returns a dataObjectUnit (or None if not set). This unit object has the methods convertToSI and convertToCertainUnit, where you have to pass the ShortName of an existing unit.

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
To process data:
  • numpy
If you need more packages, just let us now and will add them to the list of supported packages. ​

Downloads


Imprint

Terms and conditions

Privacy

  • FURTHRmind
  • RESEARCH DATA HANDLING
  • ABOUT
  • SUPPORT
  • JOBS
  • CONTACT