Skip to content
This repository has been archived by the owner on Nov 4, 2024. It is now read-only.

A web-based ptychographic workflow controller, job submitter and monitor

License

Notifications You must be signed in to change notification settings

DiamondLightSource/ptyhub-prototype

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Note

This was an early prototype developed by Thomas Milburn. The production version of PtyHub can be found at https://github.com/DiamondLightSource/ptyhub.

PtyHub Prototype

A web-based ptychography configuration editor, job submitter, and reconstruction viewer.

Overview

PtyHub provides a web-based interface for configuring ptychography jobs, submitting jobs to a cluster, and viewing the results in real-time.

PtyHub was coded specifically for Diamond Light Source, however, with some tinkering it should be able to be modified to work elsewhere. If you are serious about this, please review the contact section below.

PtyHub can be run in 2 different modes, local mode and deployment mode. In local mode, the frontend and backend run on the same machine. The frontend is then accessed via localhost. In this mode, connections from elsewhere are disabled for security reasons. Both PtyRex and PtyPy are supported in this mode. In deployment mode, the backend is assumed to be running on a server and connections are allowed from external sources, enabling remote access and interaction with the application. In this mode authentication is required. Only PtyPy is supported in this mode. You can toggle between the two modes by setting the env variable PTYHUB_DEPLOYMENT to either true or false.

The repository contains two folders

  • @ptyhub/frontend - a React app that containing the web interface.
  • @ptyhub/backend - a Python package coded using FastAPI that provides a REST API for all the functions of the frontend

UI Preview

An annotated preview of the UI running in local mode

Contact

If you have any questions about the project or wish to try and set it up for yourself, please contact Benedikt Daurer.

About

A web-based ptychographic workflow controller, job submitter and monitor

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published