Logger python
Here I am updating the API for python and now use python's stack when printing an error.
Merge request reports
Activity
changed milestone to %Continuous Simulation Data Stream
- Resolved by Matthieu Schaller
added 80 commits
-
4b3ebaa2...c78c1aa2 - 76 commits from branch
master
- add64e71 - Start implementation of PyObjectReader
- 06e8c26d - Implement new API
- 7d6dd3f5 - Add docstring
- 4d5dd352 - Format
Toggle commit list-
4b3ebaa2...c78c1aa2 - 76 commits from branch
Previously the API was a bit too dirty, I am cleaning it in order to slowly get towards the following one https://gitlab.cosma.dur.ac.uk/swift/swiftsim/-/wikis/logger%20reader%20api.
I have created my own error function (
error_python
) that prints the python stack if we are compiling with python.I am creating a python class for the logger (
struct PyObjectReader
), it's function__init__
(Reader_init
) along with the destructor (Reader_dealloc
) and the two required function for the keywordwith
(__enter__
and__exit__
in python,pyEnter
andpyExit
in my code C). The listlibloggerReaderMethods
will give you details (and docstring) about all the methods owned by my new class.How familiar are you with python in C? If you wish I can deeply comment the merge request.
- Resolved by Loic Hausammann
- Resolved by Loic Hausammann
- Resolved by Matthieu Schaller
added 1 commit
- 33d63c79 - Update format + change makefile variable name
mentioned in commit ac2362fb