Skip to content

Latest commit

 

History

History
81 lines (69 loc) · 2.29 KB

README.md

File metadata and controls

81 lines (69 loc) · 2.29 KB

TurbineDAQ

A Python desktop app for automated turbine data acquisition in the UNH tow tank.

Screenshot

Test plan

A matrix of test parameters should be created and placed in the test-plan directory inside of an experiment directory. Each "section" of the experiment gets its own CSV file. See example/test-plan for an example. The test plan, if one exists, is loaded into the GUI at startup. To change, it must be edited externally and reloaded.

Directory and file structure

my-experiment-name/
    config/
        test-plan/
            top-level.csv
            perf-0.8.csv
            tare-drag.csv
        fbg_properties.json
        turbine_properties.json
    data/
        processed/
            perf-0.8.csv
            tare_drag.csv
        raw/
            perf-0.8/
                0/
                    metadata.json
                    acsdata.h5
                    nidata.h5
                    vecdata.h5
                    fbgdata.h5
                    vecdata.vno
                1/
                    metadata.json
                    acsdata.h5
                    fbgdata.h5
                    nidata.h5
                    vecdata.h5
                    vecdata.vno
            tare-drag/
                0/
                    metadata.json
                    acsdata.h5
                    nidata.h5

Types of runs

In the runtypes module, there are classes to represent each type of run:

  • TurbineTow
  • TareDragRun
  • TareTorqueRun

Each of these subclass PyQt's QThread. For future experiments, there will likely be a TurbineTowInWaves or options in TurbineTow for wave generation with makewaves.

Developers

To get started, install a Python distribution that includes Conda or Mamba. Miniforge is a good choice. Next, create the turbinedaq conda environment with conda env create or mamba env create. Additional useful dev dependencies can be installed with pip install isort black pytest. Next, install the turbinedaq package in editable mode with pip install -e .. The app can be run by running turbinedaq from the command line. Note that the turbinedaq environment should be activated before installation or running with conda activate turbinedaq.