dlr-gtlab / python-module

GTlab Module for embadding Python into GTlab
0 stars 0 forks source link

Resolve "Footprint via python tasks" - [merged] #551

Closed rainman110 closed 4 months ago

rainman110 commented 7 months ago

In GitLab by @schn_bo on Apr 10, 2024, 10:50

Merges 269-footprint-via-python-tasks -> master

Closes #269

rainman110 commented 7 months ago

In GitLab by @schn_bo on Apr 10, 2024, 10:52

added 1 commit

Compare with previous version

rainman110 commented 7 months ago

In GitLab by @schn_bo on Apr 10, 2024, 10:55

Commented on src/module/utilities/gtpy_decorator.h line 198

@rainman110 I've implemented a first solution ... I'm not happy with the needed GtObject for calling the function. Is there a way to implement the function without a type definition?

rainman110 commented 7 months ago

In GitLab by @schn_bo on Apr 10, 2024, 10:56

requested review from @rainman110

rainman110 commented 7 months ago

You should pass GtProject instead as an argument! Isn't it possible. Look at isOpen(GtProject* ).

rainman110 commented 7 months ago

You should also add the core version to the footprint

rainman110 commented 7 months ago

Also, the footprint should only return the modules used by the project

rainman110 commented 7 months ago

In GitLab by @schn_bo on Apr 11, 2024, 12:45

Commented on src/module/utilities/gtpy_decorator.h line 198

If I use the GtProject-Object (was also my first thought) I cannot use it within the python task (or is there also a getter for the project available -> currentProject is not callable)

rainman110 commented 7 months ago

In GitLab by @schn_bo on Apr 11, 2024, 15:33

Commented on src/module/utilities/gtpy_decorator.h line 198

changed this line in version 2 of the diff

rainman110 commented 7 months ago

In GitLab by @schn_bo on Apr 11, 2024, 15:33

added 1 commit

Compare with previous version

rainman110 commented 7 months ago

In GitLab by @schn_bo on Apr 17, 2024, 07:22

added 1 commit

Compare with previous version

rainman110 commented 7 months ago

In GitLab by @schn_bo on Apr 17, 2024, 07:25

Commented on src/module/utilities/gtpy_decorator.cpp line 1389

@rainman110 Is this the correct name? I've adapted it from the GUI -> 'About GTlab'

rainman110 commented 7 months ago

In the project xml, the footprint for the core is this

<core-ver>2.0.5</core-ver>

So maybe just name it core.

rainman110 commented 7 months ago

In GitLab by @schn_bo on Apr 17, 2024, 10:05

Commented on src/module/utilities/gtpy_decorator.cpp line 1390

    retVal.insert("Core",
                  QString(GtVersionNumber(GT_VERSION_MAJOR,
rainman110 commented 7 months ago

In GitLab by @schn_bo on Apr 17, 2024, 10:05

Commented on src/module/utilities/gtpy_decorator.cpp line 1389

changed this line in version 4 of the diff

rainman110 commented 7 months ago

In GitLab by @schn_bo on Apr 17, 2024, 10:05

added 1 commit

Compare with previous version

rainman110 commented 7 months ago

In GitLab by @schn_bo on Apr 17, 2024, 10:06

Commented on src/module/utilities/gtpy_decorator.cpp line 1389

@rainman110 Done

rainman110 commented 7 months ago

In GitLab by @schn_bo on Apr 19, 2024, 05:37

requested review from @rainman110

rainman110 commented 6 months ago

In GitLab by @schn_bo on Apr 24, 2024, 15:36

@rainman110 Could you check the code again? -> Do you have a better idea how to realize the access via the Python task? Otherwise I would keep the solution with the GtObject ;-)

rainman110 commented 6 months ago

I am gonna check, if we can get rid of the gtobject argument.

rainman110 commented 6 months ago

changed this line in version 5 of the diff

rainman110 commented 6 months ago

changed this line in version 5 of the diff

rainman110 commented 6 months ago

added 1 commit

Compare with previous version

rainman110 commented 6 months ago

marked this merge request as ready

rainman110 commented 6 months ago

@schn_bo I managed to implement this function without the need to pass a GTObject as an argument.

Can you please give it a try?

rainman110 commented 6 months ago

In GitLab by @jensschmeink on Apr 26, 2024, 13:10

Commented on src/module/utilities/gtpy_decorator.h line 17

rainman110 commented 6 months ago

In GitLab by @jensschmeink on Apr 26, 2024, 13:10

Commented on src/module/utilities/gtpy_decorator.cpp line 25

rainman110 commented 6 months ago

added 1 commit

Compare with previous version

rainman110 commented 6 months ago

changed this line in version 7 of the diff

rainman110 commented 6 months ago

changed this line in version 7 of the diff

rainman110 commented 6 months ago

added 1 commit

Compare with previous version

rainman110 commented 6 months ago

Thanks for the catch!

rainman110 commented 6 months ago

In GitLab by @schn_bo on Apr 29, 2024, 07:08

approved this merge request

rainman110 commented 6 months ago

mentioned in commit e008948d2e4442be2599f7c512cce0520015af4a