Skip to content

Instantly share code, notes, and snippets.

@MichaelCurrie
Last active February 2, 2018 16:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MichaelCurrie/00073eeb33a629eaf7d375e283f49d62 to your computer and use it in GitHub Desktop.
Save MichaelCurrie/00073eeb33a629eaf7d375e283f49d62 to your computer and use it in GitHub Desktop.
Run wconviewer standalone
You can view WCON files at:
movement.openworm.org/wconviewer
But until the HTML5 fix is in, you have to upload and then download the file, which is awkward. Instead:
1. Clone movement validation
2. Start -> Run -> cmd -> navigate to C:\Users\Fling\Documents\GitHub\movement_cloud\webworm
3. Run `python ..\utilities\upload_handler.py`
4. Navigate to run templates/webworm/wconViewer-template.html
5. Add the following lines to the top of templates/webworm/wconViewer-template.html
```
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" type="text/css" href="../../static/webworm/WCON_viewer.css" media="screen" />
<script type="text/javascript">
var wconFilePath = "../../static/webworm/example.wcon";
</script>
<!-- Dependencies -->
<script src="../../static/extern/dist/d3.v4.min.js"></script>
<script src="../../static/extern/dist/babel.min.js"></script>
<script src="../../static/extern/dist/dropzone.js"></script>
<script src="../../static/extern/dist/ajv.min.js"></script>
<!-- Local -->
<script src="../../static/webworm/wormviz_parameters.js"></script>
<script src="../../static/webworm/WCON_viewer_helpers.js"></script>
<script src="../../static/webworm/WCON_viewer.js"></script>
</head>
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment