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

UMLS table creation #1

Merged
merged 3 commits into from
May 8, 2024
Merged

UMLS table creation #1

merged 3 commits into from
May 8, 2024

Conversation

dogversioning
Copy link
Contributor

This PR sets up the initial UMLS creation study.

  • Adds a builder which:
    • Fetches data from UMLS
    • Generates parquet files from this data
    • Pushes those to a remote DB, if needed
    • Creates tables pointed at those parquet files

ruff check
ruff format --check

unittest:
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is expected to fail until we cut a 2.1 release.

.github/workflows/ci.yaml Outdated Show resolved Hide resolved
Comment on lines +12 to +17
- repo: https://github.com/sqlfluff/sqlfluff
rev: 2.3.4
hooks:
- id: sqlfluff-lint
types: []
types_or: [sql,jinja]
Copy link
Contributor Author

Choose a reason for hiding this comment

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

not used currently, but it's possible there will be jinja files in here in the future.

.github/workflows/ci.yaml Outdated Show resolved Hide resolved
.github/workflows/pypi.yaml Outdated Show resolved Hide resolved
README.MD Outdated Show resolved Hide resolved
.pre-commit-config.yaml Show resolved Hide resolved
README.MD Outdated Show resolved Hide resolved

:param root: the location at the base of the path you want to remove

TODO: replace with native pathlib.rmtree when upgrading to python 3.12
Copy link

Choose a reason for hiding this comment

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

Does that method actually exist? I don't see it in the docs

You could/should replace this with shutil.rmtree today.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

walk() is the function i was looking for.

I was trying to keep all library path operation in pathlib - this might be silly.

pyproject.toml Outdated Show resolved Hide resolved
@dogversioning dogversioning merged commit 79c9641 into main May 8, 2024
0 of 2 checks passed
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