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

[WIP] Port from STORM to peewee and add python3 support #33

Open
wants to merge 45 commits into
base: master
Choose a base branch
from

Conversation

pieterdavid
Copy link
Member

These go together since the reason to change ORM library was to also support python3. Since this meant touching most code anyway, I took advantage to do a bit of cleanup and modernisation here and there.

Current status: tests with a small local database show that the basic functionality works (but these don't cover all possible cases). Also search_SAMADhi.py seems to behave correctly, the models should be largely compatible with the production database, but the other scripts need more testing with that (next would be the 'add_*' scripts and dbAnalysis, then checkAndClean in dryrun mode; is there some way to protect against messing up while doing this?), and there are also some scripts in GridIn that need to be ported.

@pieterdavid pieterdavid changed the title [WIP] Port from STORM to peewee and add python3 support Port from STORM to peewee and add python3 support Jul 11, 2019
@pieterdavid pieterdavid changed the title Port from STORM to peewee and add python3 support [WIP] Port from STORM to peewee and add python3 support Jul 11, 2019
pieterdavid and others added 24 commits July 11, 2019 15:55
for python3 compatibility. At this point search_SAMADhi.py works from a
python3 pip-installed version - much more testing needed.
added --database argument to command-line script, to use an alternative
database (which may be an sqlite file for testing)
- setup.cfg: alias such that 'python setup.py test' runs pytest
- import cppyy instead of ROOT (avoid atexit error with setup.py test)
- silence mysql version warning also outside CMSSW
- update .gitignore
…(future package) for python3.7 compatibility
@pieterdavid
Copy link
Member Author

First dataset added with this branch is here, I will add some more 2018 samples to check that everything is working.

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.

1 participant