Skip to content

Ontology Change#13

Open
foundkim wants to merge 1 commit intomasterfrom
Ontology
Open

Ontology Change#13
foundkim wants to merge 1 commit intomasterfrom
Ontology

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.

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

@foundkim foundkim closed this Dec 8, 2020
@foundkim foundkim reopened this Dec 8, 2020
@foundkim foundkim force-pushed the Ontology branch 2 times, most recently from 38a0c4c to 8ca906a Compare December 8, 2020 14:57
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