-
Notifications
You must be signed in to change notification settings - Fork 26
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
First step for building the mermaid flow chart is to parse all the resources and add them as nodes to the flow chart #555
base: main
Are you sure you want to change the base?
Conversation
…sources and add them as nodes to the flow chart
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.
a couple minor questions
REPOSITORY_ROOT_PATH = str(pathlib.Path(os.path.abspath(__file__)).parent.parent) | ||
sys.path.insert(0, REPOSITORY_ROOT_PATH) |
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.
cool -- is this to fix the module import errors? asking because I always run something like this
export PYTHONPATH=/Users/kchao/code/gnomad_methods/:/Users/kchao/code/gnomad_qc/
to fix module imports when running scripts locally (so interested in learning about alternatives)
) | ||
|
||
for p in paths: | ||
if check_file_exists_raise_error(p, error_if_exists=False): |
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.
should this have error_if_not_exists=True
?
bind_kwargs=bind_kwargs, | ||
) | ||
except (ValueError, DataException, KeyError): | ||
continue |
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.
should this have a warning message (since it's currently a silent failure)? or are you expecting that some resources will fail
This is just the first step for building the flow chart. It adds all of the nodes that refer to resources. It also adds helpful node attributes like a link to the gnomad_qc resource function in the sphinx documentation, node type, node color, node display name, node id to put in the flowchart code.
There is a very basic outline for the QCFlowchart class that will be filled in more as I add things to this