Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

compare data output for mcnp.py #1

Open
wants to merge 288 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
288 commits
Select commit Hold shift + click to select a range
cfe18ab
Merge pull request #788 from kellyrowland/install_instruct
scopatz Dec 1, 2015
f365d2f
Merge branch 'develop' of github.com:pyne/pyne into develop
Dec 2, 2015
edab29c
Merge branch 'develop' of https://github.com/crivera96/pyne into criv…
Dec 2, 2015
eb89160
changed index.rst 2 to conform to less than 80 char lines.
Dec 2, 2015
bdb1314
made github visual interface optional; I think this addresses scopatz…
Dec 2, 2015
16e6938
Merge branch 'crivera96-develop' into develop
Dec 2, 2015
90451ce
Merge pull request #780 from scopatz/ensdf-alpha
Dec 3, 2015
170c565
Merge branch 'develop' of github.com:pyne/pyne into develop
Dec 3, 2015
55e7aaa
Merge branch 'develop' of https://github.com/pcue/pyne into pcue-develop
Dec 3, 2015
4a36760
fixed spacing and character length.
Dec 3, 2015
b893c8d
Merge pull request #790 from rachelslaybaugh/pcue-develop
scopatz Dec 3, 2015
4adf962
removed githubsetup folder.
Dec 3, 2015
55324e0
Merge pull request #789 from rachelslaybaugh/develop
scopatz Dec 3, 2015
87eceb8
fix typo re: HIPAA
kellyrowland Dec 4, 2015
0778749
Merge pull request #791 from kellyrowland/hipaa
scopatz Dec 4, 2015
4ecdfbf
fix EAF data issue
scopatz Dec 22, 2015
e670a38
made file downloading more robust
scopatz Dec 22, 2015
5392d63
endl fixes
scopatz Dec 22, 2015
2997735
more fixes
scopatz Dec 22, 2015
17945a7
User std::abs (#792)
dschwen Dec 21, 2015
6b8cf4e
Regold tests (#793)
dschwen Dec 22, 2015
f51982d
Merge pull request #793 from dschwen/stdabs_792
scopatz Dec 22, 2015
424d792
Update 01-nuclide-naming.ipynb
jinneykil Apr 26, 2015
512ff0c
Update 03-nuclear-data.ipynb
jinneykil Apr 26, 2015
e0a047a
Update 01-nuclide-naming.ipynb
jinneykil Apr 26, 2015
6b9671a
Add test to check if tutorial files are valid JSON
dschwen Dec 22, 2015
8a8717f
Merge pull request #795 from dschwen/fix_729
scopatz Dec 23, 2015
98b829a
14.04 -> 15.04
elliottbiondo Dec 30, 2015
4402a2a
14.04 -> 15.04 description
elliottbiondo Dec 30, 2015
ec48ad6
Changed fortran flags, added ensdf-processing executable copying fram…
Jan 4, 2016
e1d0d62
Added ensdf-processing fortran source, and reference files for tests
Jan 4, 2016
e76bb16
Added ensdf_processing python interface and tests
Jan 4, 2016
2b5bad5
Added bricc test file reference output
Jan 4, 2016
4265e3a
Fixed incorrect indentation in setup.py and added nsdflib95.f for ens…
Jan 5, 2016
4b223d2
Removed bricc, and un-needed alphad test file from ensdf-processing m…
Jan 5, 2016
e1edf18
removed bricc test call
Jan 5, 2016
2044114
Added GABS program to ensdf-processing pyne modlue
Jan 5, 2016
ce29ffb
Removed accidental copied line
Jan 5, 2016
9d01cbf
Final pre pr ensdf-processing cleanup
Jan 5, 2016
4b62ce7
Fortran compiler flag changes in cmake/pynemacros.cmake
Jan 5, 2016
b4f63ba
More final cleanup for ensdf_processing pre pr
Jan 5, 2016
478c058
Removed -c flag from unknown fortran compiler
Jan 5, 2016
8dd47d9
Added path check to make sure ensdf executables copied to proper pyne…
Jan 5, 2016
b9d53bf
added first version
makeclean Jan 7, 2016
d9e9f7e
added tests and return from load_data_map
makeclean Jan 8, 2016
f277586
add the atomic_data to the amalgamation
makeclean Jan 8, 2016
a029d76
Added updated version with nicer formatting
makeclean Jan 8, 2016
a220567
Added hack to get pyne install path in event of import error when set…
Jan 9, 2016
1f5ed86
Fixed hack to get ensdf_processing executables copying the first time…
Jan 10, 2016
897005b
Another attempt at hack to get pyne install directory in setup.py for…
Jan 10, 2016
ad5b187
Converted tabs to spaces
Jan 10, 2016
de8df9b
Fixed a print statement
Jan 10, 2016
3774925
Removed prefix 0 from permission code
Jan 10, 2016
aa6a8c7
updated pipe writes to be python3 compadible
Jan 10, 2016
a964c52
updated pipe writes to be python3 compadible
Jan 10, 2016
5970847
added python3 compatable string method
makeclean Jan 11, 2016
895d988
added comment to say why we set the datapath to nonsense
makeclean Jan 11, 2016
4161916
Put in check for type of nuclide vector.
Jan 14, 2016
c75548e
Added cram test.
Jan 14, 2016
dc32605
Removed unnecessary comment.
Jan 14, 2016
40c718c
Removed extraneous print statement.
Jan 14, 2016
a1117ea
Changed xrange to range
Jan 15, 2016
5e85586
added functions to automatically generate atomic_data.cpp & atomic_da…
makeclean Jan 15, 2016
511fd1c
removed the atomic_data source files such that they are generated at …
makeclean Jan 15, 2016
f2c9dd4
Fixed ufunc error.
Jan 15, 2016
7e3ec3c
fixed the issue with the src path
makeclean Jan 15, 2016
24c3e8b
added last resort option for Conda based people
makeclean Jan 15, 2016
65b05d6
updated for the default amlgamate option
makeclean Jan 15, 2016
2570bd5
updated setup.py to fix silly error
makeclean Jan 15, 2016
cfd1b8f
Changed pdecay variable to float.
Jan 15, 2016
2af3a9c
Chaned pdecay variable for cram16 test.
Jan 15, 2016
cc1e319
Changed pdecay to list.
Jan 15, 2016
aca4c67
Fixed missing file close
makeclean Jan 15, 2016
e655d18
if . not in path then add src to path fix
makeclean Jan 15, 2016
ac1a6d9
move files around for consisteny
makeclean Jan 15, 2016
b3f001f
updated documentation for the data module
makeclean Jan 15, 2016
5463170
Merge pull request #807 from mzweig/cram
Jan 15, 2016
26c306f
change binary download command to conda channel
kellyrowland Jan 18, 2016
9e4dbc9
make conda binary command instruction more general
kellyrowland Jan 18, 2016
e097c77
update binary download instructions in readme and docs too
kellyrowland Jan 18, 2016
b021fd8
fix small space typo in binary instruct in docs
kellyrowland Jan 18, 2016
e0c2d48
Merge pull request #808 from kellyrowland/conda_bin_fix
katyhuff Jan 18, 2016
1f79179
Merge pull request #797 from howland/ensdf-processing-alphad
Jan 18, 2016
e8192c2
Added ensdf_processing/delta
Jan 19, 2016
ac724ea
Added ensdf_processing/gtol tool
Jan 19, 2016
c7e78cc
Added ensdf_processing/hsicc set of tools
Jan 19, 2016
b1d0250
Fixed gtol doccumentation and added missing endline to test_ensdf_pro…
Jan 19, 2016
8e14e39
removed out of place quotes
Jan 19, 2016
cefc6c1
Addressed review comments
makeclean Jan 21, 2016
9d9fcb4
renamed code-block type to bash
makeclean Jan 21, 2016
18aaa7a
missing new lines
makeclean Jan 21, 2016
8dd0551
more formatting
makeclean Jan 21, 2016
1114e5f
Fixed typo
Jan 22, 2016
e839c8e
Added interface, tests and reference files for the following ensdf an…
Jan 22, 2016
42b1278
Added fortran source for logft, radd and ruler ensdf analysis programs
Jan 22, 2016
6c16856
Removed print statement
Jan 22, 2016
e13da91
Added missing newline to end of file
Jan 22, 2016
df796fd
Removed extra newlines
Jan 22, 2016
54f2d0e
Added byte decoding for python3 to radd output
Jan 22, 2016
f7e6434
Forced reference files to open with ascii encoding
Jan 22, 2016
41d417e
Force fortran reference files to be read in with ascii encoding
Jan 22, 2016
4a5d4c9
Reveresed codecs change
Jan 22, 2016
4cd3ca7
stray OA
makeclean Jan 22, 2016
c60fbdb
Merge pull request #806 from makeclean/add_cpp_data
elliottbiondo Jan 22, 2016
1197679
Removed radlist
Jan 26, 2016
95ca3f5
Removed force read encoding as ascii for ensdf test files
Jan 26, 2016
c239150
Removed bldhst
Jan 26, 2016
7508d2f
Removed old bldhst executable copying code
Jan 26, 2016
317ed13
Updated docstrings to be numpydocstring compliant, and changed setup.…
Jan 27, 2016
1fae753
Updated variable names to be PEP8 compliant, and used a context manag…
Jan 27, 2016
cf37845
Updated setup.py to remove excessive executable copying code, consoli…
Jan 27, 2016
77e3dc3
Updated setup.py to remove excessive executable copying code, consoli…
Jan 27, 2016
27ce72d
Fixed styling issues with documentation
Jan 28, 2016
43c620c
Fixed styling issues with documentation
Jan 28, 2016
6558e02
Cleanpup and re initializing tests
Jan 28, 2016
7cf7c5c
Merge pull request #811 from howland/ensdf-processing-logft
scopatz Jan 28, 2016
4f5be79
removed unessessary instrinsic function declarations
makeclean Jan 29, 2016
dc4ebf7
Merge pull request #812 from makeclean/fortran_intrinsics
scopatz Jan 29, 2016
b21287c
Merged other ensdf evaluation tools in
Jan 29, 2016
7d0685b
Added bricc, bldhst and radlist ensdf evaluation tools. Also expande…
Jan 29, 2016
2d5c237
Merge pull request #809 from howland/ensdf-processing-delta
Jan 29, 2016
b90bb96
wq
Feb 3, 2016
b7f854d
Updated bldhst test to be python3 compliant and added beginnings of t…
Feb 3, 2016
d0cf4f8
Updated ensdf-processing tutorial
Feb 9, 2016
bd68d8a
fix fortran compiler errors on condor
ljacobson64 Feb 11, 2016
2b1d979
Adding capabilitiy of printing photon source totals
elliottbiondo Feb 12, 2016
abd3a3d
Automatic printing of e_bounds file
elliottbiondo Feb 12, 2016
c5a0b01
Minor errors
elliottbiondo Feb 12, 2016
5cc908c
Forgot to commit file
elliottbiondo Feb 13, 2016
ac7c4ed
Merge pull request #815 from elliottbiondo/r2s_updates
makeclean Feb 13, 2016
5c9590f
Fixing ipython notebooks
elliottbiondo Feb 13, 2016
5ca81dc
Merge branch 'site_fix' of https://github.com/elliottbiondo/pyne into…
elliottbiondo Feb 13, 2016
20f14d0
Merge pull request #816 from elliottbiondo/site_fix
scopatz Feb 13, 2016
4417ab7
Updated bricc tests
Feb 14, 2016
1cc8642
Reverted temporary change
Feb 14, 2016
1846527
Removed ELE.in & 98AK.. from tutorial folder
Feb 14, 2016
3f9b2b9
Merge branch 'develop' of https://github.com/pyne/pyne into ensdf-pro…
Feb 14, 2016
4fd418b
Build script instructions
elliottbiondo Feb 14, 2016
0045b1e
Merge branch 'develop' of https://github.com/pyne/pyne into doc_update
elliottbiondo Feb 14, 2016
81e756f
Ubuntu build scripts
elliottbiondo Feb 14, 2016
1f25b96
Merge pull request #818 from elliottbiondo/doc_update
scopatz Feb 14, 2016
eaa49d7
add fortran reader to mcnp.py
qwang252 Feb 15, 2016
833254b
add some fortran specifier to mcnp.py
Feb 16, 2016
635eaa4
Merge branch 'develop' of https://github.com/pyne/pyne into ensdf-pro…
Feb 22, 2016
dfcabad
Removed unnessesary parenthases
Feb 22, 2016
7018754
fixed open call to be compliant with py2.x and 3.x
Feb 22, 2016
487289f
New, hopefully faster download stragegy
Feb 23, 2016
9a27f6d
Re triggering travis-ci tests
Feb 23, 2016
32553a6
Fixed bricc interface and updated download code
Feb 23, 2016
31e4ade
add fortranformat to pyne
qwang252 Feb 26, 2016
60df3e8
attempt at fixing travis compile errors
ljacobson64 Feb 27, 2016
7f67cf6
consistency
ljacobson64 Feb 27, 2016
a02f570
Merge pull request #820 from ljacobson64/condor_build
makeclean Feb 29, 2016
b16735b
doc cleanup
elliottbiondo Feb 29, 2016
6655c13
Merge pull request #822 from elliottbiondo/doc_fix
scopatz Mar 1, 2016
a28a676
fixes the hydrogen issue
makeclean Mar 2, 2016
4ddb759
Merge pull request #825 from makeclean/fix_hydrogen
scopatz Mar 2, 2016
85af5e3
Fixing ALARA matlib error
elliottbiondo Mar 15, 2016
12954ac
added docker ci for pyne
makeclean Mar 17, 2016
78f501a
added alternate way of getting the docker id
makeclean Mar 17, 2016
e29dbb8
Merge pull request #829 from makeclean/add_docker_ci
elliottbiondo Mar 17, 2016
377403f
Merge branch 'develop' of https://github.com/pyne/pyne into alara_fix
elliottbiondo Mar 17, 2016
7ae3323
Merge pull request #828 from elliottbiondo/alara_fix
makeclean Mar 17, 2016
6b9005f
Merge pull request #730 from bprichar/develop
makeclean Mar 17, 2016
ede2245
Merge branch 'develop' of https://github.com/pyne/pyne into ensdf-pro…
Mar 17, 2016
dd5c233
Cleaned up commits, added special case for ensdf_processing to travis…
Mar 17, 2016
ae9a0e4
Removed travis_wait statement from travis nosetest file
Mar 17, 2016
bf9e1a8
add compare_data.py to compare output results and errors
qwang252 Mar 17, 2016
5c4aa92
test1 and test2 contain results and error as columns
qwang252 Mar 17, 2016
934c436
revise compare_data.py to unit comparsion
qwang252 Mar 18, 2016
39e21f7
putting in a temporary catch for missing ace files
Mar 25, 2016
098c007
Altered ensdf_processing module so that modules requiring a download …
Mar 28, 2016
41c0626
Some small corrections to the mesh basics tutorial narrative.
Mar 29, 2016
de03fee
Merge pull request #831 from Pshriwise/mesh_basics_edits
elliottbiondo Mar 29, 2016
e07e5a9
change *.rst to *.html in style guide to fix broken links
kellyrowland Mar 29, 2016
386d868
Merge pull request #833 from kellyrowland/style_guide_fix
scopatz Mar 29, 2016
dfca1e7
Split lines over 80 characters in ensdf_processing
Mar 31, 2016
de50234
Fixed more line over 80 char instances, spelling, etc
Mar 31, 2016
b2651d8
Merge pull request #817 from howland/ensdf-processing-bricc
kellyrowland Mar 31, 2016
74144d1
fix isnan compiler errors for newer clang,gcc
rwcarlsen Apr 7, 2016
b2b0912
Merge pull request #836 from rwcarlsen/fix-isnan
scopatz Apr 7, 2016
25d2861
combine mode 2 and 3 and include sigma mode
qwang252 Apr 11, 2016
b0f7907
Merge pull request #837 from FlanFlanagan/data_source_fix
scopatz Apr 14, 2016
5f5119d
added something to deal with a missing xs in cache
Apr 20, 2016
5716968
added some key error catches
Apr 24, 2016
b224e13
Update 00-intro.ipynb
yijinhua Apr 25, 2016
50c3397
Update 00-intro.ipynb
yijinhua Apr 25, 2016
25604f1
Update 00-intro.ipynb
yijinhua Apr 25, 2016
4463835
Update 00-intro.ipynb
yijinhua Apr 25, 2016
b682e49
Update 00-intro.ipynb
yijinhua Apr 25, 2016
0cde947
Update 01-nuclide-naming.ipynb
yijinhua Apr 25, 2016
aacd236
Update 01-nuclide-naming.ipynb
yijinhua Apr 25, 2016
b70009c
Update 01-nuclide-naming.ipynb
yijinhua Apr 25, 2016
8b57300
Update 02-materials.ipynb
yijinhua Apr 25, 2016
df9569a
Update 04-reaction_names.ipynb
yijinhua Apr 25, 2016
cbcf20f
Update 09-outro.ipynb
yijinhua Apr 25, 2016
a556973
Update 09-outro.ipynb
yijinhua Apr 25, 2016
08daa75
Update 09-outro.ipynb
yijinhua Apr 25, 2016
d16f814
Update 09-outro.ipynb
yijinhua Apr 25, 2016
351dfc2
Update 09-outro.ipynb
yijinhua Apr 25, 2016
c9e4b26
added key error checking to cross section generation
Apr 26, 2016
15f8d8b
individualized the try excepts for the new keyerror catches
Apr 26, 2016
3b73a56
fixed try except blocks and added a test for the key error
Apr 28, 2016
f174558
Update 10-spatial-solver.ipynb
yijinhua Apr 29, 2016
5a2ccf0
Update 10-spatial-solver.ipynb
yijinhua Apr 29, 2016
3c1bc21
Update 09-outro.ipynb
yijinhua Apr 29, 2016
039c684
Update 11-ensdf-processing.ipynb
yijinhua Apr 29, 2016
13f0a35
Update 11-ensdf-processing.ipynb
yijinhua Apr 29, 2016
9c1bb25
Update 01-nuclide-naming.ipynb
yijinhua May 1, 2016
10cbb98
Update 01-nuclide-naming.ipynb
yijinhua May 1, 2016
c3c89b4
Update 01-nuclide-naming.ipynb
yijinhua May 1, 2016
fef0a3a
Update 02-materials.ipynb
yijinhua May 1, 2016
980a8d7
fixed the test structure
May 5, 2016
3ad4c30
Merge pull request #841 from FlanFlanagan/data_source_fix
scopatz May 9, 2016
14112db
accept elements as keys in text based materials
scopatz May 9, 2016
26ad1ad
Merge pull request #842 from yijinhua/develop
katyhuff May 12, 2016
55f260a
added test for reading in element name from text
scopatz May 12, 2016
59dd3e5
Merge pull request #845 from scopatz/iselem
FlanFlanagan May 17, 2016
d510f8b
implement MCNP reader
qwang252 May 31, 2016
6c9546f
add mcnp reader with fortran reader
qwang252 Jun 1, 2016
5a4832f
little improvement
qwang252 Jun 2, 2016
903f363
Merge branch 'develop' of https://github.com/qwang252/pyne into develop
Jun 6, 2016
4af061a
Merge branch 'develop' of https://github.com/qwang252/pyne into develop
qwang252 Jun 8, 2016
c5adae0
Merge branch 'develop' of https://github.com/ngranda/pyne into develop
qwang252 Jun 8, 2016
9a426c0
adding a mctal file
Jun 8, 2016
469601f
Merge branch 'develop' of https://github.com/ngranda/pyne into develop
qwang252 Jun 8, 2016
ce514b2
little fixes 06-08
Jun 8, 2016
63a493f
Merge branch 'develop' of https://github.com/ngranda/pyne into develop
qwang252 Jun 8, 2016
afbdeaa
merge mcnp_reader with mcnp.py
qwang252 Jun 8, 2016
fb59a16
add pointwise cross section access to OpenMC data source
scopatz Jun 8, 2016
345dfde
a test fix
scopatz Jun 8, 2016
0fa5f88
Merge pull request #850 from scopatz/ptwise
FlanFlanagan Jun 9, 2016
627015f
Merge branch 'develop' of https://github.com/pyne/pyne into develop
qwang252 Jun 9, 2016
8ff6e13
statepoint datasource
Jun 9, 2016
7c9f7bc
moved same or none
Jun 9, 2016
d94d7c5
self shielding using pointwise
Jun 9, 2016
67104c4
self shielding tests
Jun 9, 2016
9f7c761
more in line with PEP8
Jun 10, 2016
11cf32e
Merge pull request #851 from FlanFlanagan/develop
scopatz Jun 10, 2016
cf5f4a4
add tally
qwang252 Jun 15, 2016
1ad04d0
Merge branch 'develop' of https://github.com/qwang252/pyne into develop
Jun 22, 2016
bacb28b
update to the mctal class
Jun 24, 2016
6d03ea1
some changes in tally class
qwang252 Jul 8, 2016
5e65167
small changes to the tally class
Jul 11, 2016
0013dd4
add tally dictionary
qwang252 Jul 11, 2016
e4b0866
build kcode dictionary
qwang252 Jul 12, 2016
895211d
formatting changes
Jul 14, 2016
5b6d3ad
some changes in kcode
qwang252 Jul 14, 2016
47645d8
Merge branch 'develop' of https://github.com/ngranda/pyne into develop
qwang252 Jul 14, 2016
75530f9
open the file only once
qwang252 Jul 21, 2016
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
80 changes: 34 additions & 46 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,53 +1,41 @@
sudo: required
language: python
python:
# We don't actually use the Travis Python, but this keeps it organized.
- "2.7"
- "3.4"
# - "3.4"
# - "3.5"
services:
- docker
before_install:
- sudo apt-get update -qq
- sudo apt-get install -y gfortran
- sudo docker pull pynedist/pyne-ubuntu
install:
# You may want to periodically update this, although the conda update
# conda line below will keep everything up-to-date. We do this
# conditionally because it saves us some downloading if the version is
# the same.
- if [[ "$TRAVIS_PYTHON_VERSION" == "2.7" ]]; then
wget http://repo.continuum.io/miniconda/Miniconda-latest-Linux-x86_64.sh -O miniconda.sh;
else
wget http://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh;
fi
- bash miniconda.sh -b -p $HOME/miniconda
- export PATH="$HOME/miniconda/bin:$PATH"
- hash -r
- conda config --set always_yes yes --set changeps1 no
- conda config --add channels pyne
- conda config --add channels cyclus
- conda update -q conda
- conda install conda-build jinja2 setuptools binstar patchelf nose
# Useful for debugging any issues with conda
- conda info -a

# download CI repo
- wget https://github.com/pyne/pyne-ci/archive/master.zip -O pyne-ci.zip
- unzip -j pyne-ci.zip "*/pyne/*" -d conda-recipe

# Replace dep1 dep2 ... with your dependencies
#- conda create -q -n test-environment python=$TRAVIS_PYTHON_VERSION dep1 dep2 ...
#- source activate test-environment
- conda build --no-test conda-recipe
- conda install pyne --use-local

# copy the git repo being tested into the docker instance
- sudo docker run pynedist/pyne-ubuntu /bin/sh -c "cd /root/opt/"
- commit_id=$(sudo docker ps -l | tail -n1 | awk '{print $1}')
- sudo docker cp ../pyne $commit_id:/root/opt/pyne
# - sudo docker run pynedist/pyne-ubuntu /bin/sh -c "cd /root/opt/ ; git clone https://github.com/pyne/pyne"
- commit_id=$(sudo docker ps -l | tail -n1 | awk '{print $1}')
- sudo docker commit $commit_id pynedist/pyne-ubuntu
- sudo docker run pynedist/pyne-ubuntu /bin/sh -c "cd /root/opt/pyne/ ; python setup.py install --user -- -DMOAB_LIBRARY=/root/opt/moab/lib/libMOAB.so -DMOAB_INCLUDE_DIR=/root/opt/moab/include"
- commit_id=$(sudo docker ps -l | tail -n1 | awk '{print $1}')
- sudo docker commit $commit_id pynedist/pyne-ubuntu
script:
- cd tests
#- nosetests
- ./travis-run-tests.sh

# Build the pyne-amalgamation test program
- git clone https://github.com/pyne/pyne-amalgamation.git
- cd ..
- python amalgamate.py
- mv pyne.h pyne.cpp tests/pyne-amalgamation
- cd tests
- BASE=/home/travis/miniconda make -C pyne-amalgamation


- sudo docker run -e LD_LIBRARY_PATH="/root/.local/lib/" pynedist/pyne-ubuntu /bin/bash -c "cd /root/opt/pyne ; /root/.local/bin/nuc_data_make"
- commit_id=$(sudo docker ps -l | tail -n1 | awk '{print $1}')
- sudo docker commit $commit_id pynedist/pyne-ubuntu
- sudo docker run -e LD_LIBRARY_PATH="/root/.local/lib/:/root/.local/lib/python2.7/site-packages/PyTAPS-1.4-py2.7-linux-x86_64.egg/:/root/opt/moab/lib" -e PYTHONPATH="/root/.local/lib/python2.7/site-packages/PyTAPS-1.4-py2.7-linux-x86_64.egg/" pynedist/pyne-ubuntu /bin/bash -c "cd /root/opt/pyne/tests ; ./travis-run-tests.sh"
- sudo docker run pynedist/pyne-ubuntu /bin/bash -c "cd /root/opt/pyne/tests ; git clone https://github.com/pyne/pyne-amalgamation.git"
- commit_id=$(sudo docker ps -l | tail -n1 | awk '{print $1}')
- sudo docker commit $commit_id pynedist/pyne-ubuntu
- sudo docker run pynedist/pyne-ubuntu /bin/bash -c "cd /root/opt/pyne/ ; python amalgamate.py"
- commit_id=$(sudo docker ps -l | tail -n1 | awk '{print $1}')
- sudo docker commit $commit_id pynedist/pyne-ubuntu
- sudo docker run pynedist/pyne-ubuntu /bin/bash -c "cd /root/opt/pyne/ ; mv pyne.h pyne.cpp tests/pyne-amalgamation"
- commit_id=$(sudo docker ps -l | tail -n1 | awk '{print $1}')
- sudo docker commit $commit_id pynedist/pyne-ubuntu
# need to add amalgamate test
- sudo docker run -e LIBS="/root/opt/moab/lib:/root/.local/lib" pynedist/pyne-ubuntu /bin/bash -c "cd /root/opt/pyne/tests/pyne-amalgamation ; make BASE=$LIBS all"
- commit_id=$(sudo docker ps -l | tail -n1 | awk '{print $1}')
- sudo docker commit $commit_id pynedist/pyne-ubuntu

2 changes: 2 additions & 0 deletions amalgamate.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@
'src/nucname.cpp',
'src/rxname.h',
'src/rxname.cpp',
'src/_atomic_data.h',
'src/_atomic_data.cpp',
'src/data.h',
'src/data.cpp',
#'src/dagmc_bridge.cpp',
Expand Down
14 changes: 7 additions & 7 deletions cmake/PyneMacros.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -20,22 +20,22 @@ get_filename_component (Fortran_COMPILER_NAME ${CMAKE_Fortran_COMPILER} NAME)

if (Fortran_COMPILER_NAME MATCHES "gfortran.*")
# gfortran
set (CMAKE_Fortran_FLAGS_RELEASE "-funroll-all-loops -fno-f2c -O3 -c -fpic -fdefault-real-8 -fdefault-double-8")
set (CMAKE_Fortran_FLAGS_DEBUG "-fno-f2c -O0 -g -fdefault-real-8 -fdefault-double-8")
set (CMAKE_Fortran_FLAGS_RELEASE "-funroll-all-loops -c -fpic -fdefault-real-8 -fdefault-double-8")
set (CMAKE_Fortran_FLAGS_DEBUG "-c -fpic -fdefault-real-8 -fdefault-double-8")
elseif (Fortran_COMPILER_NAME MATCHES "ifort.*")
# ifort (untested)
set (CMAKE_Fortran_FLAGS_RELEASE "-f77rtl -O3 -r8")
set (CMAKE_Fortran_FLAGS_RELEASE "-f77rtl -O2 -r8")
set (CMAKE_Fortran_FLAGS_DEBUG "-f77rtl -O0 -g -r8")
elseif (Fortran_COMPILER_NAME MATCHES "g77")
# g77
set (CMAKE_Fortran_FLAGS_RELEASE "-funroll-all-loops -fno-f2c -O3 -m32")
set (CMAKE_Fortran_FLAGS_RELEASE "-funroll-all-loops -fno-f2c -O2 -m32")
set (CMAKE_Fortran_FLAGS_DEBUG "-fno-f2c -O0 -g -m32")
else (Fortran_COMPILER_NAME MATCHES "gfortran.*")
message ("CMAKE_Fortran_COMPILER full path: " ${CMAKE_Fortran_COMPILER})
message ("Fortran compiler: " ${Fortran_COMPILER_NAME})
message ("No optimized Fortran compiler flags are known, we just try -O2...")
set (CMAKE_Fortran_FLAGS_RELEASE "-O2")
set (CMAKE_Fortran_FLAGS_DEBUG "-O0 -g")
message ("No optimized Fortran compiler flags are known, we just try -fpic...")
set (CMAKE_Fortran_FLAGS_RELEASE "-fpic")
set (CMAKE_Fortran_FLAGS_DEBUG "-fpic")
endif (Fortran_COMPILER_NAME MATCHES "gfortran.*")

macro( add_lib_to_pyne _name _source )
Expand Down
1 change: 1 addition & 0 deletions docs/devsguide/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ work builds upon past work well.
:maxdepth: 1

style_guide
new_devs_guide
testing
doc
release
Expand Down
34 changes: 34 additions & 0 deletions docs/devsguide/index.rst 2
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
.. Github Setup documentation master file, created by
sphinx-quickstart on Fri May 1 16:50:13 2015.
You can adapt this file completely to your liking, but it should at least
contain the root `toctree` directive.

Welcome to Github Setup's documentation!
========================================
**Installing Github**

Go to https://help.github.com/articles/set-up-git/ and follow the directions.
The download should include the latest Github visual interface as well as a
Bash shell terminal if your computer does not already have one.
Note that the visual interface is not needed and any shell can be used.

**Pushing Code and Documentation to Github**

Follow this tutorial: https://help.github.com/articles/pushing-to-a-remote/.
This tutorial covers how to push changes to local and remote repositories as
well as how to fork directories and initiate pull requests.

Contents:

.. toctree::
:maxdepth: 2



Indices and tables
==================

* :ref:`genindex`
* :ref:`modindex`
* :ref:`search`

Binary file added docs/devsguide/lhp.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
133 changes: 133 additions & 0 deletions docs/devsguide/new_dev_guide.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,133 @@
*********************
New Developer's Guide
*********************
=================
Setting up Github
=================
Before you start using GitHub, you have to make Git available on your computer.
Even if it’s already installed, it’s probably a good idea to update to the
latest version. You can either install it as a package or via another installer,
or download the source code and compile it yourself.

For download of Git visit `here <http://git-scm.com/downloads>`__

-----------------
Installing on Mac
-----------------
On Mavericks (10.9) or above you can do this simply by trying to run git from
the Terminal the very first time. If you don’t have it installed already, it
will prompt you to install it. You might be prompted to install command line
developer tools if Xcode isn’t installed on your computer. If you want a more up
to date version, you can also install it via a binary installer. An OSX Git
installer is maintained and available for download at the `Git website
<http://git-scm.com/download/mac.>`__.

---------------------
Installing on Windows
---------------------
There are also a few ways to install Git on Windows. The most official build is
available for download on the Git `website <http://git-scm.com/download/win>`__
and the download will start automatically. Note that this is a project called
Git for Windows (also called msysGit), which is separate from Git itself; for
more information on it, go to http://msysgit.github.io/.

-------------------
Installing on Linux
-------------------
If you want to install Git on Linux via a binary installer, you can generally do
so through the basic package-management tool that comes with your distribution.
If you’re on Fedora for example, you can use yum:

$ sudo yum install git

If you’re on a Debian-based distribution like Ubuntu, try apt-get:

$ sudo apt-get install git

For more options, there are instructions for installing on several different
Unix flavors on the Git website, at http://git-scm.com/download/linux.

==================================
Connecting Github account to Git
==================================
More detailed steps go here
‘Github<https://help.github.com/categories/bootcamp/>’

#. In your computer's terminal, tell Git your name so your commits will be
properly labeled. Type everything after the $ here:

$ git config --global user.name "YOUR NAME"

#. Tell Git the email address that will be associated with your Git commits. The
email you specify should be the same one found in your email settings on Github.
To keep your email address hidden click 'here
<https://help.github.com/articles/keeping-your-email-address-private/>'_

$ git config --global user.email "YOUR EMAIL ADDRESS"

==================================
Installing from Source
==================================
NOTE: Might have to install pip, home-brew, and other programs to correctly
install.
Also, installing PyNE isn’t the same as cloning the repository.

PyNE's `website <http://pyne.io/install/index.html>`__ will lead you through the
installation.

To contribute to the project,

#. Fork PyNE’s `Github repository <https://github.com/pyne/pyne>`__
(Pull requests can be done on Github by comparing original to your forked
repository).

#. On Github, copy the HTTPS(recommended) link on your the page of your forked
version that is located on the right side of the page.

#. To keep things organized, it would be best to make a directory somewhere that
is going to keep these files (Use “cd” to navigate to desired location and use
“mkdir DESIRED NAME OF FOLDER” to make the directory and then go inside it).
Make that directory your working directory and then enter ::

$ git clone https://github.com/pyne/pyne.git

#. The PyNE files are now ready for your manipulations. Everything seen on the
PyNE website is given to you. You can easily contribute by editing the contents
of the folders, submitting these changes to your repository, and making a pull
request to PyNE through Github’s website (click on the Pull Requests tab on the
right side of the GitHub page and then submit a New Pull Request).

==================================
Signing up for list hosts
==================================
Writing effective code isn’t easy. Thankfully, the PyNE developers can always be
contacted on the listhost at [email protected]. Another way to get help
is going to https://groups.google.com/forum/#!forum/pyne-users and joining the
group to post.

================
Getting Practice
================
Novices to open-source projects can get still beneficially contribute to PyNE.
To do so, go to PyNE’s ‘GitHub page <https://github.com/pyne/pyne>’ and, on the
right hand side of the page, click on Issues. Once on this page, click on the
“low hanging pinoli” label to display issues beginners can solve.

.. figure:: lhp.png :width: 700px
:align: center
:height: 340px

Also, if you were wondering, “low hanging pinoli” is a pine pun for low hanging
pine fruit to call newbies.

==================================
Adding and Updating Documentation
==================================
To contribute, you can edit the text file in any program that allows you to edit
text(Vim,textedit, Nano, etc) and doesn’t invisibly add characters to the
file(like Word). The only important part is to write the file in a manner that’s
considered reStructuredText (check out http://sphinx-doc.org/rest.html). Then,
Sphinx will do everything else under the hood as described `here
<http://pyne.io/devsguide/website.html>`__. Finally, commit these changes to
your forked version and submit a pull request (through GitHub or the command
line).
6 changes: 3 additions & 3 deletions docs/devsguide/style_guide.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ PyNE is a polyglot project about a technical subject with many independent devel
and users. To keep our heads on straight we have adopted the following styles and
conventions. We use these throughout the code base to ensure consistency.

* `Python Style Guide <style_guide.rst#python-style-guide>`__
* `Cython Style Guide <style_guide.rst#cython-style-guide>`__
* `C++ Style Guide <style_guide.rst#cc-style-guide>`__
* `Python Style Guide <style_guide.html#python-style-guide>`__
* `Cython Style Guide <style_guide.html#cython-style-guide>`__
* `C++ Style Guide <style_guide.html#cc-style-guide>`__

----------------------------------
Rules to Write By
Expand Down
2 changes: 2 additions & 0 deletions docs/devsguide/website.rst
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ Building the website/documentation requires the following:
#. `sphinxcontrib-bibtex <https://pypi.python.org/pypi/sphinxcontrib-bibtex/>`_
#. `PrettyTable <https://code.google.com/p/prettytable/>`_
#. `Cloud Sphinx Theme <https://pythonhosted.org/cloud_sptheme/cloud_theme.html>`_
#. `jupyter <http://jupyter.org/>`_


-----------------------------------
Procedure for modifying the website
Expand Down
10 changes: 6 additions & 4 deletions docs/install/conda.rst
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,12 @@ option when installing conda.
--------------------------
Binary Package (For Users)
--------------------------
Binary distributions of the latest release (0.4) of pyne
can be installed by running the command::
Binary distributions of the latest release for mac and linux (64-bit)
using the conda package manager can be installed by running the command::

conda install -c https://conda.binstar.org/pyne pyne
conda install -c cyclus -c pyne pyne=VERSION

where VERSION should be replaced with the version number to be installed.

A windows 32-bit binary is also available on conda via the same command but
it is highly experimental and likely broken. Conda binaries do not have
Expand All @@ -43,4 +45,4 @@ cd to the conda-recipes directory and run::
conda install $(conda build --output pyne)
nuc_data_make

You should now be able to update the conda package that lives on binstar.
You should now be able to update the conda package that lives on binstar.
4 changes: 3 additions & 1 deletion docs/install/linux_source.rst
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,15 @@ Optional Depenendencies:
Most of the dependencies are readily available through package managers. Once
all the dependencies are installed, PyNE can be installed. Download and unzip
the source (`zip`_, `tar`_) or checkout a verison from the PyNE repository
(`Github`_). Then run the following commands from the unzipped directory::
(`Github`_). Then run the following commands from the directory above the
unzipped directory::

cd pyne/
python setup.py install --user
scripts/nuc_data_make

The ``setup.py`` command compiles and installs the PyNE source code.
Note that this command must be done in the top PyNE directory.
The ``nuc_data_make`` builds and installs a database of nuclear data.
Unfortunately, this must be done as a second step because most nuclear
data is under some form of license restriction or export control which
Expand Down
6 changes: 3 additions & 3 deletions docs/install/ubuntu.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@
Ubuntu build script
=================================

A script for installing PyNE and all its dependencies from scratch on Ubuntu
14.04 - 14.10 is found `here
<https://github.com/pyne/install_scripts/blob/master/ubuntu_15.04.sh>`_
Scripts for installing PyNE and all its dependencies from scratch on Ubuntu
14.04 - 15.04 are found `here
<https://github.com/pyne/install_scripts/>`_.
8 changes: 2 additions & 6 deletions docs/sphinxext/notebook_sphinxext.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,7 @@
from docutils.parsers.rst.roles import set_classes
from docutils.transforms import misc

try:
from IPython.nbconver.exporters import html
except ImportError:
from IPython.nbconvert import html

from nbconvert import HTMLExporter

class Notebook(Directive):
"""Use nbconvert to insert a notebook into the environment.
Expand Down Expand Up @@ -47,7 +43,7 @@ def run(self):
nb_path = utils.relative_path(None, nb_path)

# convert notebook to html
exporter = html.HTMLExporter(template_file='full')
exporter = HTMLExporter(template_file='full')
output, resources = exporter.from_filename(nb_path)
header = output.split('<head>', 1)[1].split('</head>',1)[0]
body = output.split('<body>', 1)[1].split('</body>',1)[0]
Expand Down
Loading