This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os, subprocess | |
from pyPdf import PdfFileReader | |
import traceback | |
status_colors = {"done":"green", | |
"in progress":"darkorange", | |
"pending" : "red", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from pyne.mesh import Mesh,IMeshTag | |
import numpy as np | |
import sys | |
m = Mesh(sys.argv[1]) | |
m.source_density_total = IMeshTag(size=1, dtype=float) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "moab/Core.hpp" | |
#include "moab/Interface.hpp" | |
#include "moab/CartVect.hpp" | |
#include "moab/ProgOptions.hpp" | |
#include <iostream> | |
#include <assert.h> | |
#include <string> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# make sure that trelis/cubit 'bin' directory is added to PYTHONPATH environment variable | |
import cubit | |
import sys | |
import argparse as ap | |
def import_file(cubit_instance, filename): | |
extension = filename[-4:] | |
if extension == ".sat": | |
file_type = "acis" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
language: python | |
sudo: required | |
notifications: | |
email: | |
recipients: | |
- pshriwise@gmail.com | |
services: docker | |
install: | |
- sudo docker pull pshriwise/audl_img |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import argparse | |
from datetime import datetime | |
import urllib2, json | |
from pprint import pprint | |
from tabulate import tabulate | |
def sum_dicts(a,b): | |
out_dict = {} | |
# list of unique key values | |
all_keys = list(set(a.keys()+b.keys())) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# coding: utf-8 | |
# USE: python mats_to_mg.py <mcnp_input_file> | |
from pyne import mcnp, nucname | |
from pyne.material import MaterialLibrary, Material | |
from sys import argv | |
# load library from | |
original_library = MaterialLibrary(mcnp.mats_from_inp(argv[1])) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import cubit | |
import argparse | |
# dictionary containing the appropriate | |
# (export_type, file_extension) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import operator | |
# collect all entries | |
class JournalEntry: | |
def __init__(self, entry_id, entry_date, entry_subject, raw_text_path): | |
assert(type(entry_id) == int) | |
assert(os.path.isfile(raw_text_path)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# Script for reporting program status in bash. | |
# |
OlderNewer