Skip to main content

Colab notebooks for Collimator

These are created on the google account hydrotrekgqc@gmail.com

Sending the simulation result CSV to visualize with Grafana

Notebook link

  1. This will read in the CSV files generated from MATLAB and Collimator Simulators and visualize the results in Grafana dashboard, Collimator vs Matlab Validation which is available in gqccollimator organization in grafana cloud.
  2. CSV data is first sent to TDEngine cloud (@pavan@gqc.com) and grafana is quering data from that.

dashboard

Adding new submodules to the visualizer

  1. In the info csv files, specify 'in0', 'out0' under 'Port' column for the new submodels. info csv

  2. In the colab notebook append the new submodule names to this dictionary. The (key, value) pair should be arranged as 'Name for Grafana':'Name in CSV'. The only difference I had to make so far is just removing the space. Check the already available submodule names as examples.

    # Append submodel names here
    submodel_names = {'Plant': 'Plant', 'PrimaryClarifier' : 'Primary Clarifier', 'ActivatedSludge':'Activated Sludge', 'Settler':'Settler', 'Thickener':'Thickener'}
  3. Update the grafana dashboard variable with the new submodules.

    1. Goto dashboard settings. settings
    2. Goto Variables and select Processvariables
    3. Append the new submodules to the Custom Options field.