-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
25 changed files
with
502 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,3 +15,4 @@ task_db = "tasks" | |
|
||
[sample_positions] | ||
sample_db = "sample_positions" | ||
containers = ["crucible", "flask", "vial"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,19 @@ | ||
""" | ||
To remove all the device, task, sample position definition from database | ||
""" | ||
|
||
from ..config import config | ||
from ..db import get_collection | ||
|
||
|
||
def clean_up_db(): | ||
""" | ||
Drop device, task, sample_position collection from MongoDB | ||
""" | ||
device_collection = get_collection(config["devices"]["device_db"]) | ||
task_collection = get_collection(config["tasks"]["task_db"]) | ||
sample_position_collection = get_collection(config["sample_positions"]["sample_db"]) | ||
|
||
device_collection.drop() | ||
task_collection.drop() | ||
sample_position_collection.drop() | ||
|
||
|
||
def main(): | ||
clean_up_db() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# Minimal makefile for Sphinx documentation | ||
# | ||
|
||
# You can set these variables from the command line, and also | ||
# from the environment for the first two. | ||
SPHINXOPTS ?= | ||
SPHINXBUILD ?= sphinx-build | ||
SOURCEDIR = source | ||
BUILDDIR = build | ||
|
||
# Put it first so that "make" without argument is like "make help". | ||
help: | ||
@$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O) | ||
|
||
.PHONY: help Makefile | ||
|
||
# Catch-all target: route all unknown targets to Sphinx using the new | ||
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS). | ||
%: Makefile | ||
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O) |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
alab\_management.device\_def package | ||
==================================== | ||
|
||
Submodules | ||
---------- | ||
|
||
alab\_management.device\_def.base\_device module | ||
------------------------------------------------ | ||
|
||
.. automodule:: alab_management.device_def.base_device | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: | ||
|
||
Module contents | ||
--------------- | ||
|
||
.. automodule:: alab_management.device_def | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
alab\_management.executor package | ||
================================= | ||
|
||
Submodules | ||
---------- | ||
|
||
alab\_management.executor.executor module | ||
----------------------------------------- | ||
|
||
.. automodule:: alab_management.executor.executor | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: | ||
|
||
alab\_management.executor.scheduler module | ||
------------------------------------------ | ||
|
||
.. automodule:: alab_management.executor.scheduler | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: | ||
|
||
Module contents | ||
--------------- | ||
|
||
.. automodule:: alab_management.executor | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
alab\_management.lab\_status package | ||
==================================== | ||
|
||
Submodules | ||
---------- | ||
|
||
alab\_management.lab\_status.device\_view module | ||
------------------------------------------------ | ||
|
||
.. automodule:: alab_management.lab_status.device_view | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: | ||
|
||
alab\_management.lab\_status.sample\_view module | ||
------------------------------------------------ | ||
|
||
.. automodule:: alab_management.lab_status.sample_view | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: | ||
|
||
alab\_management.lab\_status.task\_view module | ||
---------------------------------------------- | ||
|
||
.. automodule:: alab_management.lab_status.task_view | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: | ||
|
||
Module contents | ||
--------------- | ||
|
||
.. automodule:: alab_management.lab_status | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
alab\_management.logger package | ||
=============================== | ||
|
||
Module contents | ||
--------------- | ||
|
||
.. automodule:: alab_management.logger | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: |
Oops, something went wrong.