Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ontology Change #13

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Ontology Change #13

wants to merge 1 commit into from

Conversation

foundkim
Copy link
Collaborator

@foundkim foundkim commented Dec 3, 2020

No description provided.

Copy link
Owner

@phe-sto phe-sto left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

python/enthic/ontology.py should not be modified.
Ontology.csv has to be suppressed.
Please merge master before further develop, in the mean time our friend Leonard changed extract_bundle and we don't want lose his job. Please see my remarks in the file.

@@ -21,6 +21,7 @@
from os.path import dirname, join, isdir
from re import sub, compile
from zipfile import ZipFile, BadZipFile
from .ontology import CODE, ONTOLOGY
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It work fine but please use the package path import enthic.ontology ...

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Okay

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I will include the new variable CODE in bundle_extract directly

Copy link
Owner

@phe-sto phe-sto left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The code variable will cause has many maintenance issues as the actual system.
The split(",") give a list.

ACC_ONT[rows[3]]["bundleCodeAtt"].append(
{rows[1]: rows[2].split(",")}
ACC_ONT[ACCOUNTING[key][0]]["bundleCodeAtt"].append(
{ACCOUNTING[key]['code'][y][0]: str(code[ACCOUNTING[key]['code'][y][0]]).split(",")}
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

split(",") is not required anymore.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants