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

feat: implement 1H NMR endpoint #4

Closed
wants to merge 3 commits into from
Closed

feat: implement 1H NMR endpoint #4

wants to merge 3 commits into from

Conversation

kjappelbaum
Copy link
Collaborator

Fixes #1

How do you want to handle unit tests? I feel it would be good to set up some. For this, it is perhaps easier if we have an installable package and then use pytest?

@@ -24,3 +23,42 @@ def tanimoto(s1: str, s2: str) -> float:
return DataStructs.TanimotoSimilarity(fp1, fp2)
except (TypeError, ValueError, AttributeError):
return "Error: Not a valid SMILES string"


@app.function
Copy link
Collaborator

Choose a reason for hiding this comment

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

Would you need @app.function(image=rdkit_image)?

Image.debian_slim(python_version="3.12")
.pip_install("rdkit")
)
rdkit_image = Image.debian_slim(python_version="3.12").pip_install(["rdkit", "numpy"])
Copy link
Collaborator

Choose a reason for hiding this comment

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

Would it be good to fix the versions of the packages? Numpy just had a major update (and at least in my course there were a lot of projects with breaking changes).

@whitead
Copy link
Contributor

whitead commented Jul 19, 2024

Hi @kjappelbaum - thanks for getting this! I fixed CI/deploy strategy and now you can rebase to main and get the code deployed/built to a "-dev" instance.

@kjappelbaum
Copy link
Collaborator Author

@whitead is there any chance you removed the secrets from this repo?

@kjappelbaum kjappelbaum closed this by deleting the head repository Aug 10, 2024
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.

implement 1H NMR endpoint
3 participants