Skip to content

Commit

Permalink
Remove ignored adapters
Browse files Browse the repository at this point in the history
Two adapters per application removed.
  • Loading branch information
GDYendell committed Aug 2, 2024
1 parent 68ce40c commit e87ffec
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
4 changes: 0 additions & 4 deletions src/odin_fastcs/odin_controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
types = {"float": Float(), "int": Int(), "bool": Bool(), "str": String()}

REQUEST_METADATA_HEADER = {"Accept": "application/json;metadata=true"}
IGNORED_ADAPTERS = ["od_fps", "od_frs", "od_mls"]
UNIQUE_FP_CONFIG = [
"rank",
"number",
Expand Down Expand Up @@ -235,9 +234,6 @@ async def initialise(self) -> None:
)

for adapter in adapters:
if adapter in IGNORED_ADAPTERS:
continue

# Get full parameter tree and split into parameters at the root and under
# an index where there are N identical trees for each underlying process
response = await self._connection.get(
Expand Down
5 changes: 1 addition & 4 deletions tests/dump_server_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import requests
import typer

from odin_fastcs.odin_controller import IGNORED_ADAPTERS, REQUEST_METADATA_HEADER
from odin_fastcs.odin_controller import REQUEST_METADATA_HEADER

HERE = Path(__file__).parent

Expand All @@ -28,9 +28,6 @@ def main(
adapters = requests.get(f"{url}/api/0.1/adapters").json()["adapters"]

for adapter in adapters:
if adapter in IGNORED_ADAPTERS:
continue

try:
adapter_tree = requests.get(
f"{url}/api/0.1/{adapter}", headers=REQUEST_METADATA_HEADER
Expand Down

0 comments on commit e87ffec

Please sign in to comment.