ephys_link.platforms.new_scale_pathfinder_handler
Handle communications with New Scale’s HTTP server
Implements New Scale specific API calls.
This is a subclass of ephys_link.platform_handler.PlatformHandler
.
Classes
Handler for New Scale HTTP server |
- class NewScalePathfinderHandler(port: int = 8080)[source]
Bases:
PlatformHandler
Handler for New Scale HTTP server
- VALID_MANIPULATOR_IDS = ('A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z', 'AA', 'AB', 'AC', 'AD', 'AE', 'AF', 'AG', 'AH', 'AI', 'AJ', 'AK', 'AL', 'AM', 'AN')
- query_data() dict [source]
Query New Scale HTTP server for data and return as dict.
- Returns:
Parsed JSON data from New Scale HTTP server.
- Return type:
dict
- query_manipulator_data(manipulator_id: str) dict [source]
Query New Scale HTTP server for data on a specific manipulator.
- Parameters:
manipulator_id – manipulator ID.
- Returns:
Parsed JSON data for a particular manipulator.
- Return type:
dict
- Raises:
ValueError – if manipulator ID is not found in query.