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

sth #11

Merged
merged 1 commit into from
May 26, 2024
Merged

sth #11

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 0 additions & 25 deletions src/chembalancer/chembalancer.py
Original file line number Diff line number Diff line change
@@ -1,28 +1,3 @@
"""Example module to get you started."""


def hello_smiles(smiles: str) -> str:
"""
Return a greeting string that incorporates the given smiles.

Parameters
----------
smiles : str
A text string representing a SMILES (Simplified
Molecular Input Line Entry System) notation or any string.

Returns
-------
str
A greeting message incorporating the input smiles.

Examples
--------
>>> hello_smiles("C(=O)O")
'Hello, C(=O)O!'
"""
return f"Hello, {smiles}!"


if __name__ == "__main__":
print(hello_smiles("C(=O)O"))
Expand Down
16 changes: 0 additions & 16 deletions tests/test_example_module.py
Original file line number Diff line number Diff line change
@@ -1,16 +0,0 @@
import sys
import os

try:
current_dir = os.path.dirname(os.path.abspath(__file__))
except NameError:
current_dir = os.path.dirname(os.path.abspath(sys.argv[0]))
src_path = os.path.join(current_dir, '..', 'src')
sys.path.insert(0, src_path)

from chembalancer.chembalancer import test_hello_smiles


# Test the function
def test_hello_smiles():
assert hello_smiles("C(=O)O") == "Hello, C(=O)O!", "Test failed: SMILES input"
Loading