Skip to content
Merged
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
3 changes: 1 addition & 2 deletions app/core/scalar_docs.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@ def _remove_doc_routes(fastapi_app: FastAPI) -> None:
route
for route in fastapi_app.router.routes
if not (
isinstance(route, APIRoute)
and route.path in ("/docs", "/redoc")
getattr(route, "path", None) in ("/docs", "/redoc")
)
]
fastapi_app.docs_url = None
Expand Down
1 change: 0 additions & 1 deletion app/routers/chem.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ def get_health() -> HealthCheck:

@router.get(
"/hosecode",
tags=["chem"],
summary="Generate HOSE codes for a molecule",
description=(
"Generate **Hierarchically Ordered Spherical Environment (HOSE)** codes "
Expand Down
1 change: 0 additions & 1 deletion app/routers/converter.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ def get_health() -> HealthCheck:

@router.get(
"/spectra",
tags=["converter"],
summary="Convert NMR raw data to NMRium JSON",
description=(
"Fetch NMR raw data from a remote URL and convert it into "
Expand Down
2 changes: 0 additions & 2 deletions app/routers/predict.py
Original file line number Diff line number Diff line change
Expand Up @@ -472,7 +472,6 @@ def get_health() -> HealthCheck:

@router.post(
"/",
tags=["predict"],
summary="Predict NMR spectra from a MOL string",
description=(
"Submit a molecular structure as a MOL block string and predict NMR spectra "
Expand Down Expand Up @@ -553,7 +552,6 @@ async def predict_from_structure(request: PredictRequest):

@router.post(
"/file",
tags=["predict"],
summary="Predict NMR spectra from an uploaded MOL file",
description=(
"Upload a MOL file and predict NMR spectra using one of the supported engines. "
Expand Down
4 changes: 0 additions & 4 deletions app/routers/registration.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ def get_health() -> HealthCheck:

@router.post(
"/init",
tags=["registration"],
summary="Initialize the registration database",
description=(
"Initialize (or re-initialize) the molecule registration database. "
Expand Down Expand Up @@ -91,7 +90,6 @@ async def initialise_database(

@router.post(
"/register",
tags=["registration"],
summary="Register new molecules",
description=(
"Register one or more molecules in the database. Accepts SMILES strings "
Expand Down Expand Up @@ -199,7 +197,6 @@ async def register_compounds(

@router.get(
"/query",
tags=["registration"],
summary="Query if a molecule is already registered",
description=(
"Check whether a molecule (given as a SMILES string) has already been "
Expand Down Expand Up @@ -249,7 +246,6 @@ async def query_compounds(

@router.post(
"/retrieve",
tags=["registration"],
summary="Retrieve registered molecules by ID",
description=(
"Retrieve one or more registered molecules by their registry IDs (molregnos). "
Expand Down
6 changes: 1 addition & 5 deletions app/routers/spectra.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ def run_command(
result = subprocess.run(
["docker", "exec", NMR_CLI_CONTAINER] + cmd,
capture_output=True,
timeout=120,
timeout=600,
)
except subprocess.TimeoutExpired:
raise HTTPException(
Expand Down Expand Up @@ -329,7 +329,6 @@ def run_peaks_to_nmrium_command(payload: dict) -> str:

@router.post(
"/parse/file",
tags=["spectra"],
summary="Parse spectra from an uploaded file",
description=(
"Upload an NMR spectra file (JCAMP-DX, Bruker, etc.) and parse it into "
Expand Down Expand Up @@ -425,7 +424,6 @@ async def parse_spectra_from_file(

@router.post(
"/parse/url",
tags=["spectra"],
summary="Parse spectra from a remote URL",
description=(
"Provide a URL pointing to an NMR spectra file and parse it into structured "
Expand Down Expand Up @@ -478,7 +476,6 @@ async def parse_spectra_from_url(request: UrlParseRequest):

@router.post(
"/parse/publication-string",
tags=["spectra"],
summary="Resurrect NMR spectrum from an ACS publication string",
description=(
"Parse an ACS-style NMR publication string and resurrect it into a full "
Expand Down Expand Up @@ -558,7 +555,6 @@ async def parse_publication_string(

@router.post(
"/parse/peaks",
tags=["spectra"],
summary="Convert a peak list to an NMRium-compatible spectrum",
description=(
"Convert a list of NMR peaks (chemical shifts with optional intensity and "
Expand Down
Loading