Skip to content

Toy example to analyze how to do the MaRDI open-interfaces project.

Notifications You must be signed in to change notification settings

MaRDI4NFDI/oif-toy-example

 
 

Repository files navigation

Description

This repository contains toy example that I am working on to understand how to develop open-interface project within MaRDI initiative.

This toy example investigates how to connect users using Python with software written in C and Python using a broker library in-between.

Installation for development

Use conda or mamba package manager:

mamba env create -n env-name -f environment-linux.yaml

if you use Linux or

mamba env create -n env-name -f environment-macos.yaml

Build

To build the software, use command

    make

which invokes underlying CMake build and builds software inside the build directory.

Run examples

One needs set PYTHONPATH:

export PYTHONPATH=src/oif/backend_python/src:

Run examples from Python

To run examples on invoking quadratic solver from Python, run

python examples/call_qeq_from_python.py [c|python]

where backend specification is optional and defaults to C backend.

Run examples from C

To run examples on invoking quadratic solver from Python, run

build/examples/call_qeq_from_c [c|python]

where backend specification is optional and defaults to C backend.

About

Toy example to analyze how to do the MaRDI open-interfaces project.

Resources

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 62.6%
  • Python 23.6%
  • CMake 9.9%
  • Makefile 2.2%
  • C++ 1.7%