pyicat_plus.utils.sync_store.ExperimentalSessionStore#
- class pyicat_plus.utils.sync_store.ExperimentalSessionStore(cache_dir=None, save_dir=None, raw_data_format='esrfv3', invalidate_cache=False)[source]#
Bases:
object
- Parameters:
cache_dir (
Optional
[str
])save_dir (
Optional
[str
])raw_data_format (
str
)invalidate_cache (
bool
)
- add_session(exp_session)[source]#
Add session to the in-memory cache and when enabled save it on disk.
- Parameters:
exp_session (
ExperimentalSession
)- Return type:
None
- get_session(session_dir)[source]#
- Parameters:
session_dir (
str
)- Return type:
Optional
[ExperimentalSession
]
- remove_session(exp_session)[source]#
Remove session from the in-memory cache and when enabled from disk.
- Parameters:
exp_session (
ExperimentalSession
)- Return type:
None