-
Notifications
You must be signed in to change notification settings - Fork 1
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
base: master
Are you sure you want to change the base?
Ontology Change #13
Conversation
There was a problem hiding this 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.
python/enthic/extract_bundle.py
Outdated
@@ -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 |
There was a problem hiding this comment.
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 ...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Okay
There was a problem hiding this comment.
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
38a0c4c
to
8ca906a
Compare
There was a problem hiding this 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(",")} |
There was a problem hiding this comment.
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.
No description provided.