Skip to content

Commit

Permalink
Added uninit method needed by mxcube-web tests
Browse files Browse the repository at this point in the history
  • Loading branch information
marcus-oscarsson committed Sep 1, 2022
1 parent cd7c54c commit 155a89d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions mxcubecore/HardwareRepository.py
Original file line number Diff line number Diff line change
Expand Up @@ -301,6 +301,12 @@ def init_hardware_repository(configuration_path):
beamline = load_from_yaml(BEAMLINE_CONFIG_FILE, role="beamline")


def uninit_hardware_repository():
global _instance, beamline
_instance = None
beamline = None


def get_hardware_repository():
"""
Get the HardwareRepository (singleton) instance,
Expand Down

0 comments on commit 155a89d

Please sign in to comment.