Skip to content

Commit

Permalink
update readme with container info and test with default values
Browse files Browse the repository at this point in the history
  • Loading branch information
d-perl committed Nov 11, 2024
1 parent 79805d4 commit 504a592
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
10 changes: 8 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,12 @@ pybind11-stubgen rtc6_fastcs.bindings.rtc6_bindings -o src
ruff format .
```

# using devcontainer on RH7
# developing in the container over ssh

manually build the container with ``
At diamond the default devcontainer settings result in some permission issues when run over ssh, but you can build the container and develop in it manually

manually build the container with `podman build -t rtc6-fastcs-dev --target=developer .`
and run it with `podman run -it --net=host --security-opt=label=disable --mount=type=bind,source=/scratch/ziq44869/rtc6-fastcs/,destination=/workspaces rtc6-fastcs-dev`
then connect vscode to the laser lab workstation with `remote:ssh` and attach to the running container from the `remote:containers` view
the first time for a running container you will need to install the relevant extensions, run `pip install -e .[dev]`, and `rtc6-fastcs install-library` or the `install-library.sh` script from the repo
when everything is set up, `test_connect()` from `test_bindings.py` should pass
2 changes: 1 addition & 1 deletion tests/test_bindings.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,4 +52,4 @@ def test_connection_exception():
def test_connect():
from rtc6_fastcs.bindings import rtc6_bindings as bindings

bindings.connect("123.123.123.123", "/foo/bar.dat", "/foo/bar.dat")
bindings.connect("172.23.17.192", "./rtc6_files/program_files", "./rtc6_files/correction_files/Cor_1to1.ct5")

0 comments on commit 504a592

Please sign in to comment.