Measurer not getting the right library name
Closed this issue · 3 comments
mari-s4e commented
- it would be nicer if the measurer got the full name of the library instead of the alias. Example
geopandas
instead ofgpd
- some libraries are not recorded
Example libraries in the script:
import sqlite3
import pandas as pd
import xarray as xr
from src import utils
from src.measurer import Measurer
import time
from dask.distributed import Client
from dask.distributed import LocalCluster
import geopandas as gpd
```
What the measurer gets:
sqlite3
pd
xr
utils
time
gpd
Here `dask` library is missing.
cozzolinoac11 commented
Hi @mari-s4e
-
I just updated the code (example.py) and now the measurer returns the full name instead of the alias.
-
Regarding undetected libraries, the problem is given by the type different than ModuleType when using the 'from' statement and I am trying to solve it.
Thanks
jetschny commented
Maria,did the last version resolved your issue, can this issue be closed maybe?
mari-s4e commented
yes, it looks like that the libraries are correctly listed