Refactored class name

This commit is contained in:
Harrison Deng 2025-01-09 16:22:50 +00:00
parent e66525d341
commit 022200f197

View File

@ -7,7 +7,7 @@ from aiohttp import ClientSession, ClientTimeout
from automlst.engine.data.genomics import NamedString from automlst.engine.data.genomics import NamedString
from automlst.engine.data.mlst import Allele, MLSTProfile from automlst.engine.data.mlst import Allele, MLSTProfile
class BigSDBMLSTProfiler(AbstractAsyncContextManager): class BIGSdbMLSTProfiler(AbstractAsyncContextManager):
def __init__(self, database_api: str, database_name: str, schema_id: int): def __init__(self, database_api: str, database_name: str, schema_id: int):
self._database_name = database_name self._database_name = database_name
@ -124,8 +124,8 @@ class BIGSdbIndex(AbstractAsyncContextManager):
self._seqdefdb_schemas[seqdef_db_name] = schema_descriptions self._seqdefdb_schemas[seqdef_db_name] = schema_descriptions
return self._seqdefdb_schemas[seqdef_db_name] # type: ignore return self._seqdefdb_schemas[seqdef_db_name] # type: ignore
async def build_profiler_from_seqdefdb(self, dbseqdef_name: str, schema_id: int) -> BigSDBMLSTProfiler: async def build_profiler_from_seqdefdb(self, dbseqdef_name: str, schema_id: int) -> BIGSdbMLSTProfiler:
return BigSDBMLSTProfiler(await self.get_bigsdb_api_from_seqdefdb(dbseqdef_name), dbseqdef_name, schema_id) return BIGSdbMLSTProfiler(await self.get_bigsdb_api_from_seqdefdb(dbseqdef_name), dbseqdef_name, schema_id)
async def close(self): async def close(self):
await self._http_client.close() await self._http_client.close()