This repository contains code for a GUI for analyzing LIBS and other point spectra.
Python Other
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.

README.md

Build Status Coverage Status Join the chat at https://gitter.im/USGS-Astrogeology/PySAT

Installation

1. Fresh install of Miniconda (Skip to step 2 if you have Anaconda/Miniconda)

Install Miniconda

*Note for Windows: If you have previous versions of Python on your system, it may make it difficult for Anaconda/Miniconda to use the command conda. If this is the case, you have two options:

  1. You can choose to uninstall previous versions of Python using IObit Uninstaller
  2. If uninstalling previous version of Python is not an option, you can do a full Anaconda install and then use the Anaconda Prompt that gets installed with it to execute the following commands.

2. Download the environment file (right click the link and save)

Environment.yml

3. Open a terminal (on Windows, use the Anaconda prompt or cmd, not Powershell) in the directory where you saved the file and type:

conda --v # this will give you your version, make sure it is 4 or greater, if not use the below command
conda install conda=4  # SKIP THIS LINE ON WINDOWS
conda env create -n point_spectra_gui -f environment.yml
source activate point_spectra_gui  # omit the `source` on Windows

4. Done! How to use point_spectra_gui

source activate point_spectra_gui  # omit the `source` on Windows
point_spectra_gui

5. Optional. Run program with a script

If you'd like to be able to run our program without having to retype 4 out, simply copy the below text into notepad, and then save it as point_spectra_gui.bat

call activate point_spectra_gui
point_spectra_gui

6. Update an existing installation

If you already have an earlier version of the PySAT Point Spectra GUI installed as described above and you want to wipe it and update to the latest version, just do:

conda env remove -n point_spectra_gui

And then follow the instructions above to install a fresh version.

Bugs

Run into bugs or features that are missing? Let us know by reporting an issue!

PYSAT UI

PYSAT splash

  • The UI's backend is designed and created in Python with the QT framework

Control Flow

FlowChart

  • The user begins by starting __main__.py.
  • __main__.py will load MainWindow.py which in turn will load the splash screen and all necessary UI pieces
  • MainWindow.py displays the mainframe in which the UI's submodules will be loaded into
  • MainWindow.py will then foward control to each submodule of focus
  • Each of the submodules build the collective UI library
  • Each submodule also contains all the necessary functions that will interact with Anaconda and PYSAT
  • The PYSAT and Anaconda libraries will then do the necessary data manipulations
  • The values are then returned back up to the Submodule which in turn is returned back to MainWindow which will then deal with changed data

Walkthrough (with images)

1. Fresh install of Miniconda (Skip to step 2 if you have Anaconda/Miniconda)

982f2828-0d23-4dac-b84c-5808d47cd3ae

2. Download the environment file (right click the link and save)

dc336619-0412-4d4d-959d-dd4d83d863f8

3. Open a terminal (on Windows, cmd, not Powershell) in the directory where you saved the file and type:

55096025-e378-4728-ba89-9ed1a5bcf24b

4. Done! How to use point_spectra_gui

0f5329a7-1e09-49f2-8971-6e503b25f648