Skip to content

Web application for viewing and editing PyLith parameters.

License

Notifications You must be signed in to change notification settings

baagaard/pylith_parameters

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PyLith Parameter Viewer

Web-browser application to view PyLith parameter JSON files created by pylithinfo or generated when running pylith.

Installation

Download and unpack the tarball for the latest release. We recommend unpacking the tarball in the top-level PyLith directory.

tar -zxvf pylith_parameters-dist-vX.X.X.tgz

Running the parameter viewer

  1. Change to the pylith_parameters directory containing the index.html file and start the web server. You can change the default port (9000) for the web server using the --port=PORT command line argument to pylith_paramviewer.
cd pylith_parameters
pylith_paramviewer
  1. Point your web-browser to http://127.0.0.1:9000.
  2. Load the sample JSON file sample_parameters.json or other file by clicking on the Choose File button.

Reloading a file

If you regenerate the JSON parameter file, simply click on the Reload button to reload the currently selected JSON parameter file. The time stamp embedded in the parameter file corresponding to the time it was generated is shown below the filename.

Parameter information

The Parameter tab (selected by default) displays the information about the parameters.

The left panel shows the hierarchy of parameters as a tree. You can expand/collapse the tree by clicking on the triangles or Expand all and Collapse all buttons.

Selecting a component in the left panel by clicking on the component type (red text) will display detailed information about the component in the right panel.

Version information

The Version tab displays the version information for PyLith.

Installation (Development Version)

  1. Clone repository
git clone https://github.com/baagaard-usgs/pylith_parameters.git
cd pylith_parameters
  1. Install dependencies

  2. Install Node.js

  3. Use node to install JavaScript libraries (dependencies)

  4. Start development web server.

npm install
npm start

About

Web application for viewing and editing PyLith parameters.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 70.2%
  • CSS 21.4%
  • Python 5.2%
  • HTML 3.2%