Skip to content

KhiopsDictionaryDomain JSON export method doesn't work. #535

@folmos-at-orange

Description

@folmos-at-orange

Description

KhiopsDictionaryDomain.write_khiops_json_file doesn't work. Neither to_dict.

Questions/Ideas

To reproduce

# _bug.py
import json
import sys
from khiops import core as kh


kdom = kh.read_dictionary_file(f"{kh.get_samples_dir()}/Iris/Iris.kdic")
json.dump(kdom.to_dict(), sys.stdout)
kdom.write_khiops_json_file("iris_kdic.json")

Output

❯ python _bug.py | jq
{
  "tool": "Khiops Dictionary",
  "version": "11.0.0",
  "khiops_encoding": "ascii"
}

❯ jq . iris_kdic.json
{
  "tool": "Khiops Dictionary",
  "version": "11.0.0",
  "khiops_encoding": "ascii"
}

Metadata

Metadata

Assignees

Labels

Type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions