ODM2 / ODM2PythonAPI

A set of Python functions that provides data read/write access to an ODM2 database by leveraging SQLAlchemy.
http://odm2.github.io/ODM2PythonAPI/
BSD 3-Clause "New" or "Revised" License
4 stars 13 forks source link

Add function to populate/update CVs in an existing database #56

Open horsburgh opened 8 years ago

horsburgh commented 8 years ago

There is a script in the ODM2 repository now that does the initial population of the CVs for a blank ODM2 database. We should add a function to the ODM2 API that updates the CVs:

UpdateCVs(IncludeUnits = "True")

There should be an option for including the Units (or not) since it is not a CV. We might also want to add a flag that specifies what to do with terms that might be in the database, but don't match terms in the master CV.

emiliom commented 8 years ago

https://github.com/ODM2/ODM2/tree/master/src/load_cvs

emiliom commented 8 years ago

I'd thought about that script, too, and how to pull it out the ODM2 repo and make it more visible/accessible.

A couple of comments:

Either in its current state or if it were overhauled to use odm2api, I wonder if the odm2api repo is where it best fits (but as a stand-alone "utility"), or if there's a better repo (maybe a new one) for it, to keep odm2api leaner.