From 28f75315ceb7f04d5df3a220350654e92a471f47 Mon Sep 17 00:00:00 2001 From: Manuel Lera-Ramirez Date: Thu, 7 Nov 2024 11:08:20 +0000 Subject: [PATCH] move requests optional dependency into function body --- src/pydna/tm.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/pydna/tm.py b/src/pydna/tm.py index e7938041..8c4e3423 100644 --- a/src/pydna/tm.py +++ b/src/pydna/tm.py @@ -14,7 +14,6 @@ import textwrap as _textwrap from pydna._pretty import pretty_str as _pretty_str -import requests # See the documentation for Bio.SeqUtils.MeltingTemp for more details # The 10X Taq Buffer with (NH4)2SO4 is commercialized by companies like @@ -331,6 +330,8 @@ def tmbresluc(primer: str, *args, primerc=500.0, saltc=50, **kwargs): def tm_neb(primer, conc=0.5, prodcode="q5-0"): + import requests + """Calculates a single primers melting temp from NEB. Parameters