Giter Site home page Giter Site logo

mcnp-devel / numjuggler Goto Github PK

View Code? Open in Web Editor NEW

This project forked from inr-kit/numjuggler

0.0 1.0 0.0 3.48 MB

Tool to rename cells, surfaces, materials and universes in MCNP input files.

Home Page: https://numjuggler.readthedocs.io/

License: GNU General Public License v3.0

Shell 0.67% Python 99.33%

numjuggler's Introduction

WARNING

The versions starting with 2.23a.17 should be considered as untested. Since version 2.22a.17, there were a lot of modifications toward more functionality, however, these changes were applied only to a small set of problems and therefore should be considered as not tested. If you experience any problems, consider fall back to the version 2.22a.17.

Information in the help message, returned by numjuggler -h mode is outdated. Therefore, the best way to see all current modes is to search for args.mode == string in main.py, and read comments in the correspondent sections of code.

numjuggler

Tool to rename cells, surfaces, materials and universes in MCNP input files. See https://numjuggler.readthedocs.io

Install

You must have Python 2.7 installed on your machine (Python 3 was not tested but might work). Unzip the most recent archive from dist folder and run

> python setup.py install --user

from the folder containing file setup.py. This installs the package, that can be used from the command line in the following way:

> python -m numjuggler ...

where ... -- are command line options specifying the input file and the rules how cells, surfaces, etc. are renamed.

Alternatively, you can use pip -- a tool for installing Python packages (for some Python distributions it is included, otherwise must be installed separately). Unzipping the archive in this case is not needed, and installation is done with the command

> pip install numjuggler-X.X.X.tar.gz --user

When the package is installed with pip, a script called numjuggler is added to ~/.local/bin (or to C:\Python27\Scripts), so that invocation of the tool is more simple. In this case, both two commands are identical:

> numjuggler ...
> python -m numjuggler ...

where .. -- are command line options.

Help

After installing the package, run the following command to get some help and instructions:

> python -m numjuggler -h

There is also a github repo, numjuggler.docs, related to numjuggler documentation.

numjuggler's People

Contributors

dvp2015 avatar travleev avatar derek-yfqiu avatar

Watchers

James Cloos 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.