Closed dgarijo closed 1 year ago
I have run inspect4py -i Chowlk -o Chowlk_out -cl -si -html -sc And I got a different output for converter. I just goint open Chowlk/json_files/converter.json . See here:
![Uploading Screenshot 2023-02-17 at 19.41.13.png…]()
Just going to put the screenshot for the functions and body - of converters.json. You can see that I get the printer_errors, and I dont get the transform_ontology:
The problem is that I ran it on an old version of the code, where there is a transform_ontology
and there is no printer_errors
function. But then I looked into the latest version of the repo to verify everything.
My bad, inspect4py
is working appropriately. I'll close the issue/
In this project: https://github.com/oeg-upm/Chowlk
I see this file: https://github.com/oeg-upm/Chowlk/blob/webservice/converter.py which has a
main
function, abody
and aprint_errors
function. However, when I ran inspect4py I find the following:There is no
print_errors
and thetransform_ontology
function is not declared in this file, it's imported. I think the problem is that the function is imported like this:from source.chowlk.transformations import transform_ontology
and therefore inspect4py thinks it's a local function, when it isn'tWhat I don't understand is why
print_errors
is deleted.