-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
131 make a simulated detector that can write hdf files (#144)
* add the sim module * day progress * more exploration * day's work * incremental changes * an attempt to put features together * incremental changes * try SimSample * make pattern generator do sensible things * make lint happy * attempt at tests * WIP setting up pytest with fake paths * write more test outlines * work on tests * WIP fix async tests * WIP make the tests work better * raw refactor * refactoring proof of concept * delete refactoring attempts * tests improvement * add basic streaming plan * rename to sim driver * change into SimDriver * fix formatting * work on the tests * correct 19 out of 32 errors * down to 10 errors * down to 4 errors, all due to observe_value decision and the NDfileHDF * swmr error * fix lint * setup for asyncio * still error with async * closing writer and file handle issue * move back to pattern generator * got to descriptor validation error * async setup for all IO failed * fix writer descriptor test. also component not found async error * fix the test * pass all tests * ran black * make lint happy * missed one * make mypy happy * fix black * add declare to the failing plan * update pyproject for wrong pyside6 * fix the flyer test * delete mistaken test file * rollback some unintended changes * make lint happy * delete sim sample to lower the test lines * delete empty test * mistake double test * day work (not done yet) * add snake case@ * lock pyside6 to 6.6.2 to fix the svg indent issue in upstream * pyproject syntax error fix
- Loading branch information
Showing
16 changed files
with
741 additions
and
50 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 |
---|---|---|
@@ -1,47 +1,44 @@ | ||
// For format details, see https://containers.dev/implementors/json_reference/ | ||
{ | ||
"name": "Python 3 Developer Container", | ||
"build": { | ||
"dockerfile": "Dockerfile", | ||
"target": "build", | ||
// Only upgrade pip, we will install the project below | ||
"args": { | ||
"PIP_OPTIONS": "--upgrade pip" | ||
}, | ||
}, | ||
"remoteEnv": { | ||
"DISPLAY": "${localEnv:DISPLAY}" | ||
}, | ||
// Set *default* container specific settings.json values on container create. | ||
"settings": { | ||
"python.defaultInterpreterPath": "/venv/bin/python" | ||
}, | ||
"customizations": { | ||
"vscode": { | ||
// Add the IDs of extensions you want installed when the container is created. | ||
"extensions": [ | ||
"ms-python.python", | ||
"tamasfe.even-better-toml", | ||
"redhat.vscode-yaml", | ||
"ryanluker.vscode-coverage-gutters" | ||
] | ||
} | ||
}, | ||
// Make sure the files we are mapping into the container exist on the host | ||
"initializeCommand": "bash -c 'for i in $HOME/.inputrc; do [ -f $i ] || touch $i; done'", | ||
"runArgs": [ | ||
"--net=host", | ||
"--security-opt=label=type:container_runtime_t" | ||
], | ||
"mounts": [ | ||
"source=${localEnv:HOME}/.ssh,target=/root/.ssh,type=bind", | ||
"source=${localEnv:HOME}/.inputrc,target=/root/.inputrc,type=bind", | ||
// map in home directory - not strictly necessary but useful | ||
"source=${localEnv:HOME},target=${localEnv:HOME},type=bind,consistency=cached" | ||
], | ||
// make the workspace folder the same inside and outside of the container | ||
"workspaceMount": "source=${localWorkspaceFolder},target=${localWorkspaceFolder},type=bind", | ||
"workspaceFolder": "${localWorkspaceFolder}", | ||
// After the container is created, install the python project in editable form | ||
"postCreateCommand": "pip install -e .[dev] --config-settings editable_mode=compat" | ||
"name": "Python 3 Developer Container", | ||
"build": { | ||
"dockerfile": "Dockerfile", | ||
"target": "build", | ||
// Only upgrade pip, we will install the project below | ||
"args": { | ||
"PIP_OPTIONS": "--upgrade pip" | ||
} | ||
}, | ||
"remoteEnv": { | ||
"DISPLAY": "${localEnv:DISPLAY}" | ||
}, | ||
"customizations": { | ||
"vscode": { | ||
// Set *default* container specific settings.json values on container create. | ||
// "settings": { | ||
// "python.defaultInterpreterPath": "/venv/bin/python" | ||
// }, | ||
// Add the IDs of extensions you want installed when the container is created. | ||
"extensions": [ | ||
"ms-python.python", | ||
"tamasfe.even-better-toml", | ||
"redhat.vscode-yaml", | ||
"ryanluker.vscode-coverage-gutters" | ||
] | ||
} | ||
}, | ||
// Make sure the files we are mapping into the container exist on the host | ||
"initializeCommand": "bash -c 'for i in $HOME/.inputrc; do [ -f $i ] || touch $i; done'", | ||
"runArgs": ["--net=host", "--security-opt=label=type:container_runtime_t"], | ||
"mounts": [ | ||
"source=${localEnv:HOME}/.ssh,target=/root/.ssh,type=bind", | ||
"source=${localEnv:HOME}/.inputrc,target=/root/.inputrc,type=bind", | ||
// map in home directory - not strictly necessary but useful | ||
"source=${localEnv:HOME},target=${localEnv:HOME},type=bind,consistency=cached" | ||
], | ||
// make the workspace folder the same inside and outside of the container | ||
"workspaceMount": "source=${localWorkspaceFolder},target=${localWorkspaceFolder},type=bind", | ||
"workspaceFolder": "${localWorkspaceFolder}", | ||
// After the container is created, install the python project in editable form | ||
"postCreateCommand": "pip install -e .[dev] --config-settings editable_mode=compat" | ||
} |
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,11 @@ | ||
from .pattern_generator import PatternGenerator | ||
from .sim_pattern_detector_control import SimPatternDetectorControl | ||
from .sim_pattern_detector_writer import SimPatternDetectorWriter | ||
from .sim_pattern_generator import SimPatternDetector | ||
|
||
__all__ = [ | ||
"PatternGenerator", | ||
"SimPatternDetectorControl", | ||
"SimPatternDetectorWriter", | ||
"SimPatternDetector", | ||
] |
Oops, something went wrong.