This repository has been archived on 2025-04-15. You can view files and clone it, but cannot push or open issues or pull requests.
2023-06-04 18:57:49 +02:00
2023-06-02 16:52:14 +02:00
2023-06-02 09:26:12 +02:00
2023-06-04 18:57:49 +02:00
2023-06-04 18:57:49 +02:00
2023-06-04 18:57:49 +02:00
2023-05-30 12:03:09 +02:00
2023-06-02 09:34:28 +02:00
2023-05-31 14:29:03 +02:00
2023-06-02 11:29:34 +02:00
2023-06-02 17:44:04 +02:00

python_cpp_example

Minimal example building a C++ python extension.

Useful links:

Build instructions

Simplified build using make

$ make #build c extension inplace
$ make help
clean                Remove the build folder and the shared library
debug                Build extension with debug prints and assertions
ext                  [DEFAULT] build c extension in place
test                 Run unit tests using pytest

Manual build


#build in place and use from the same folder
#sometimes necessary to remove build folder and .so
#by hand
$ python setup.py build_ext --inplace

To use make sure that the .so and potentially python files are in PYTHONPATH (or installed in developer mode)

#conda
$ conda develop install . 

#or with pip
$ pip install --editable .

Cluster file specifications

[int32 frame_number][int32 n_clusters][clusters....]

// Cluster data type
typedef struct {
  int16_t x;
  int16_t y;
  int32_t data[9];
} Cluster ;
Description
Deprecated replaced by aare. Migrated and archived repo for reference.
Readme 1.4 MiB
Languages
C 66.2%
Python 30.2%
C++ 2.6%
Makefile 1%