Skip to content

Commit f832108

Browse files
committed
Added basic framework for cryo-SIM context
1 parent 14aab9f commit f832108

2 files changed

Lines changed: 29 additions & 0 deletions

File tree

src/murfey/client/analyser.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -401,6 +401,7 @@ def _analyse(self, transferred_file: Path):
401401
"AtlasContext"
402402
| "CLEMContext"
403403
| "FIBContext"
404+
| "SIMContext"
404405
| "SPAMetadataContext"
405406
| "SXTContext"
406407
| "TomographyMetadataContext"

src/murfey/client/contexts/sim.py

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
import logging
2+
from pathlib import Path
3+
4+
from murfey.client.context import Context
5+
from murfey.client.instance_environment import MurfeyInstanceEnvironment
6+
7+
logger = logging.getLogger("murfey.client.contexts.sim")
8+
9+
10+
class SIMContext(Context):
11+
def __init__(
12+
self,
13+
acquisition_software: str,
14+
basepath: Path,
15+
machine_config: dict,
16+
token: str,
17+
):
18+
super().__init__("SIMContext", acquisition_software, token)
19+
self._basepath = basepath
20+
self._machine_config = machine_config
21+
22+
def post_transfer(
23+
self,
24+
transferred_file: Path,
25+
environment: MurfeyInstanceEnvironment | None = None,
26+
**kwargs,
27+
):
28+
return None

0 commit comments

Comments
 (0)