Open dhimmel opened 5 years ago
Current API call https://search-api.het.io/v1/paths/source/6602/target/17054/metapath/DaGuCrC/ returns:
"dgp_nonzero_mean": null,
"dgp_nonzero_sd": null,
So this is fixed in terms of the backend API response, but not sure if we updated the database to replace the NaN
with null.
After repopulating the database in #79, this issue is still present:
PGPASSWORD=tm8ut9uzqx7628swwkb9 psql \
--username=read_only_user \
--dbname=connectivity_db \
--host=search-db.het.io --port=5432 \
--command "SELECT * FROM dj_hetmech_app_degreegroupedpermutation WHERE id=23633958;"
id | metapath_id | source_degree | target_degree | n_dwpcs | n_nonzero_dwpcs | nonzero_mean | nonzero_sd
----------+-------------+---------------+---------------+---------+-----------------+--------------+------------
23633958 | CrCuGaD | 0 | 540 | 54200 | 0 | NaN | NaN
(1 row)
returns:
Notice how
nonzero_mean
andnonzero_sd
arenan
. I was expecting missing values to be None here, which would help with JSON encoding.We double checked this occurs in the database:
Related to the following API call http://localhost:8000/v1/query-paths/?target=17054&source=6602&metapath=DaGuCrC