Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 8 Next »

The new IntegralPy library can be used to control INTEGRAL from Python-Script: loading grid data, editing grid data, start calculations.

Quick-start Video: COMING SOON;

For comments, questions contact eimantas.survila@fgh-ma.de

VisuService Integral Start

Video: COMING SOON;

Execute the following script as macro:

function activate_for_integralpy() {
Netz.setze_steuerdatum("/webvisualisierung/zeige_webvis_steuerparameter","1");
}

Activate both “Nutze ProtobufGridIO API lokal” and “Nutze Web-Visualisierung …”.

grafik-20240705-132705.png

Open VisuService through the button in INTEGRAL:

VisuService.PNG

Documentation IntegralPy

Activate the ProtobufGridIO in INTEGRAL

Execute the following script as macro:

function activate_for_integralpy() {
Netz.setze_steuerdatum("/webvisualisierung/zeige_webvis_steuerparameter","1");
}

Go to control parameters and activate “Nutze ProtobufGridIO API lokal”

grafik-20240705-132705.png

Importing the library

import integralpy

Methods

integralpy.connect(host)
Returns session object

session.load_grid_file(local_path)
session.load_grid_database(dbname, host, user, port, password)
Loads and returns grid object

session.get_current_grid()
Returns the grid object of currently loaded grid

grid.get(type, attr, ids)
type is either list or single type from integralpy.Type
attr is a list of attributes from integralpy.Attribute
ids is either single id or list of ids

returns either a single object or a list of objects

grid.write(objects)
objects is either a single object or list of objects

grid.create(type)
type is a single type
returns a newly created object

grid.remove_attribute(type, attr, ids)
type is either list or single type from integralpy.Type
attr is a list of attributes from integralpy.Attribute
ids is either single id or list of ids

grid.remove()
objects is either a single object or list of objects

  • No labels