Skip to content

Commit

Permalink
check command args for host and port values (#45)
Browse files Browse the repository at this point in the history
* check command args for host and port values

* update unittest action
  • Loading branch information
mjrosengrant authored Feb 7, 2024
1 parent 0ab9acd commit 405df02
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/unittests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ jobs:
steps:
- uses: actions/checkout@v2
- run: cd docker && ./build.sh
- run: docker run --rm cryo-em:latest python -m unittest discover tests
- run: docker run --rm cryoem:latest python -m unittest discover tests

4 changes: 2 additions & 2 deletions run.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ def main():
parser = create_parser()
args = parser.parse_args()
server = PluginServer()
host = os.environ['NTS_HOST']
port = int(os.environ['NTS_PORT'])
host = args.host or os.environ.get('NTS_HOST', None)
port = args.port or int(os.environ.get('NTS_PORT', 8888))
name = "Cryo-EM"
description = "Nanome plugin to load Cryo-EM maps and display them in Nanome as iso-surfaces"
plugin_class = CryoEM
Expand Down

0 comments on commit 405df02

Please sign in to comment.