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

Allow a PI's institution name to be search with subdomains #62

Merged
merged 1 commit into from
Jun 17, 2024

Conversation

QuanMPhm
Copy link
Contributor

Closes #59. Now, for PIs whose emails contain multiple subdomains (i.e a@b.c.edu), each of their subdomains will be matched against institute_map.json, from the most qualified to least qualified subdomain.

In the example of a@b.c.edu, this means b.c.edu would be matched first, then c.edu, then edu.

I have removed the "Harvard University" entries from institute_map.json made redundant by this new feature.

)
answers = {
"q@bu.edu": "Boston University",
"c@mclean.harvard.edu": "McLean Hospital",
Copy link
Contributor

Choose a reason for hiding this comment

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

would it be helpful to add these items to the test as well?
"childrens.harvard.edu" : "Boston Children's Hospital",
"meei.harvard.edu" : "Massachusetts Eye & Ear",
"dfci.harvard.edu" : "Dana-Farber Cancer Institute",
"bwh.harvard.edu" : "Brigham and Women's Hospital",
"bidmc.harvard.edu" : "Beth Israel Deaconess Medical Center",

Copy link
Contributor Author

Choose a reason for hiding this comment

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

If we want to test more domains, I guess the question would be do we want to test for all the domains in institute_map.json, or just a few examples that validates the get_institution_from_pi function. @naved001 What is your opinion?

Copy link
Collaborator

Choose a reason for hiding this comment

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

@QuanMPhm I think it's okay to test the additional domains that @joachimweyl suggested.

Now, for PIs whose emails contain multiple subdomains (i.e `a@b.c.edu`),
each of their subdomains will be matched against institute_map.json,
from the most qualified to least qualified subdomain.

In the example of `a@b.c.edu`, this means `b.c.edu` would be matched first,
then `c.edu`, then `edu`
@QuanMPhm QuanMPhm merged commit 9a4cd3a into CCI-MOC:main Jun 17, 2024
3 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.

Find PI's institute by through the order of most qualified domain name
3 participants