fosanalysis
A framework to evaluate distributed fiber optic sensor data
Loading...
Searching...
No Matches
examples.filehandlerpattern Namespace Reference

This script shows how to use the file handler to read ODiSI data files. More...

Variables

 channel
 
 data
 
str filepath = "data/demofile.dat"
 
 gage_names = list(gages.keys())
 
 gages = sensor.gages
 
 handler = FileHandler(filepath)
 
 segments = sensor.segments
 
 segments_gages
 
 sensor = typing.cast(SensorInfo, sensor)
 
 sensor_name = sensor.name
 
 serial_number = sensor.serial_number
 
 strain = data['All']['strain']
 
 tare = data['All']['tare']
 
 testname = handler.metadata.get('test name', '')
 
 times
 
 x_axis = data['All']['x_axis']
 

Detailed Description

This script shows how to use the file handler to read ODiSI data files.

For .dat files all channels can be read. A .tsv file is also supported.

Author
Anett Kielreiter
Date
2024

Variable Documentation

◆ channel

examples.filehandlerpattern.channel

Definition at line 44 of file filehandlerpattern.py.

◆ data

examples.filehandlerpattern.data

Definition at line 29 of file filehandlerpattern.py.

◆ filepath

str examples.filehandlerpattern.filepath = "data/demofile.dat"

Definition at line 15 of file filehandlerpattern.py.

◆ gage_names

examples.filehandlerpattern.gage_names = list(gages.keys())

Definition at line 35 of file filehandlerpattern.py.

◆ gages

examples.filehandlerpattern.gages = sensor.gages

Definition at line 25 of file filehandlerpattern.py.

◆ handler

examples.filehandlerpattern.handler = FileHandler(filepath)

Definition at line 17 of file filehandlerpattern.py.

◆ segments

examples.filehandlerpattern.segments = sensor.segments

Definition at line 26 of file filehandlerpattern.py.

◆ segments_gages

examples.filehandlerpattern.segments_gages

Definition at line 37 of file filehandlerpattern.py.

◆ sensor

examples.filehandlerpattern.sensor = typing.cast(SensorInfo, sensor)

Definition at line 22 of file filehandlerpattern.py.

◆ sensor_name

examples.filehandlerpattern.sensor_name = sensor.name

Definition at line 23 of file filehandlerpattern.py.

◆ serial_number

examples.filehandlerpattern.serial_number = sensor.serial_number

Definition at line 24 of file filehandlerpattern.py.

◆ strain

examples.filehandlerpattern.strain = data['All']['strain']

Definition at line 32 of file filehandlerpattern.py.

◆ tare

examples.filehandlerpattern.tare = data['All']['tare']

Definition at line 31 of file filehandlerpattern.py.

◆ testname

examples.filehandlerpattern.testname = handler.metadata.get('test name', '')

Definition at line 18 of file filehandlerpattern.py.

◆ times

examples.filehandlerpattern.times

Definition at line 29 of file filehandlerpattern.py.

◆ x_axis

examples.filehandlerpattern.x_axis = data['All']['x_axis']

Definition at line 30 of file filehandlerpattern.py.