Coder Social home page Coder Social logo

tubbz-alt / crispy-1 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mretegan/crispy

0.0 1.0 0.0 30.17 MB

Core-Level Spectroscopy Simulations in Python

Home Page: http://www.esrf.eu/computing/scientific/crispy

License: MIT License

Python 96.41% Batchfile 0.01% Shell 2.22% Inno Setup 1.36%

crispy-1's Introduction

Crispy is a modern graphical user interface to calculate core-level spectra using the semi-empirical multiplet approaches implemented in Quanty. The interface provides a set of tools to generate input files, submit calculations, and plot the resulting spectra.

release downloads DOI licence

image

Installation

Latest Release

Using the Package Installers

The easiest way to install Crispy on Windows and macOS operating systems is to use the installers provided on the project downloads page. The installers bundle Python, the required dependencies, and Crispy. However, because for the moment they are only created when a new release is published, they might lack newly implemented features.

Using pip

Pip is the package manager for Python, and before you can use it to install Crispy, you have to make sure that you have a working Python distribution. While Crispy works with both Python 2 and Python 3, you should install Python 3.5 or greater, as in previous versions some of the dependencies like PyQt5 cannot be easily installed using pip. On macOS and Windows you can install Python using the official installers. In particular for Windows you should install the 64-bit version of Python, and make sure that during the installation you select to add Python to system's PATH.

Crispy depends on the following Python packages:

On current Linux distributions, both Python 2 and Python 3 should be present. Start by checking the installed Python 3 version:

python3 -V

If the version number is at least 3.5, you can install Crispy and all dependencies using pip:

pip3 install --upgrade --user crispy

For lower Python versions, you will have to use the system's package manager (apt, dnf, pacman, etc.) to install the dependencies. Crispy can then be installed using pip, but this time without the depencies.

pip3 install --no-deps --upgrade --user crispy # Python 3
pip  install --no-deps --upgrade --user crispy # Python 2

After the installation finishes, you should be able to start the program from the command line:

crispy

If you are having problems running the previous command, it is probably due to not having your PATH environment variable set correctly.

export PATH=$HOME/.local/bin:$PATH

Just as in the case of using the package installers, this will install the latest release, and not the development version (see below). Also, please note that when you install Crispy using pip, external programs needed to run the calculations have to be installed and their path must be set in the interface (preferred way) or using the PATH environment variable.

Development Version

Using pip

Assuming that you have a working Python distribution (version 3.5 or greater), you can easily install the development version of Crispy using pip:

pip install --upgrade --user https://github.com/mretegan/crispy/tarball/master

It is possible, although unlikely, that this version requires features that are not yet available with the pip installable version of silx. In this case you have to also install the development version of silx. This is not always a very simple task, especially on Windows, but there is extensive documentation on how to do it.

Running from Source

As an alternative to the pip installation above, you can download the source code from GitHub either as an archive or using git, and run Crispy without installing it:

git clone https://github.com/mretegan/crispy.git
cd crispy
python -m crispy

In this case the dependencies are not automatically installed and you will have to do it yourself:

pip install --user -r https://raw.githubusercontent.com/mretegan/crispy/master/requirements.txt

Usage

If you have used the installers, Crispy should be easy to find and launch. For the installation using pip or if you are running directly from the source folder, follow the instructions from the Installation section.

Citation

Crispy is a scientific software. If you use it for a scientific publication, please cite the following reference (change the version number if required):

@misc{retegan_crispy,
  author       = {Retegan, Marius},
  title        = {Crispy: v0.7.3},
  year         = {2019},
  doi          = {10.5281/zenodo.1008184},
  url          = {https://dx.doi.org/10.5281/zenodo.1008184}
}

License

The source code of Crispy is licensed under the MIT license.

crispy-1's People

Contributors

mretegan avatar skuschel avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.