Skip to main content

Edit parameters for the Astra generator program and run generator using a GUI.

Project description

# generatorGUI

Edit parameters for the Astra generator program and run generator using a GUI.

### Purpose
Summarizes all the parameters for Astra generator in a table and displays it in
the PyQt
environment.

The parameters are saved in an *Excel* format. The user can start from a
blank "all-default" table, or load an Excel file with parameters already
defined in it. The parameters can be changed and saved again to the Excel
spreadsheet.

When all the necessary parameters are defined in the PyQt table, simply click
"Run" to execute the Astra generator.

### Usage

The script can be executed in two ways. Both ways require some basic
information about how to run Python scripts, of course.

* Option 1: **Run script from command line**
```BASH
> python /path/to/your/pip/installation/generatorGUI/main.py
```
For instance, on my OSX I used `pip` installed by *anaconda*, such that
the packages are installed in my *anaconda* diretory. So for me:
```BASH
> python ~/anaconda3/lib/python3.7/site-packages/generatorGUI/main.py
```
* Option 2: **Import the module and run the main function**
You can also run the GUI from the Python prompt, or *Jupyter notebook*,
for instance:
```Python
>>> import generatorGUI
>>> generatorGUI.main()
```

For each of the parameters, the *type*, *unit*, and *default* have already
been defined. Do not change the values in those cells. If a parameter needs
to be modified from its default value, enter the correct value in the *set*
column.

Notice, that for *str* type, the value does not need the single quotes '
around the string; the *list_?* type asks for a list of *?* type values: e.g.
for *list_float* you can put `[1.0, 2.0, 3.0]`, just like a *Python list*,
for *list_str*, single quotes ' are not needed either: e.g. `[abc.dat, foo
.dat]`.

####A note on the parameter *fname*
Notice that by default the *generator* program will be called from the
current working directory, i.e. where you run the **main.py** script. If only
a file name is


### Installation
Install easyexception using `pip`, or `pip3`

pip install generatorGUI

### Repository
[GitHub page](https://github.com/frankliuao/generatorGUI)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

generatorGUI-0.1.1.tar.gz (93.5 kB view details)

Uploaded Source

File details

Details for the file generatorGUI-0.1.1.tar.gz.

File metadata

  • Download URL: generatorGUI-0.1.1.tar.gz
  • Upload date:
  • Size: 93.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.2

File hashes

Hashes for generatorGUI-0.1.1.tar.gz
Algorithm Hash digest
SHA256 b620ee92d4958e67fc7962e2e531c5ca03df89317277271ec3c4452c829415a1
MD5 70faa93838d175fd7cac138a75a57b39
BLAKE2b-256 282616db74543b5ad189128bf67b2d7c8cdf2b42ae6b11d33cfe6e94a98eee74

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page