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 cPickle as pickle | |
from scitbx.array_family import flex | |
with open("indexed.pickle") as f: | |
ref = pickle.load(f) | |
indexed = ref.get_flags(ref.flags.indexed) | |
intensity_one = flex.bool([x["intensity.sum.value"] == 1 for x in ref]) | |
size_one_shoebox = flex.bool([sum(x["shoebox"].size()) == 3 for x in ref]) | |
# TypeError: No to_python (by-value) converter found for C++ type: dials::model::Shoebox<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
pipeline { | |
agent { label "centos6" } | |
stages { | |
// Prepare the workspace by copying artifacts, updating repositories etc | |
stage('Prepare') { | |
} | |
stage('Bootstrap') { | |
when { |
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
/** | |
* Basic testing infrastructure for array_family polymorphic resources. | |
* | |
* Provides an extremely minimal replacement for some of the GoogleTest | |
* testing API, under the hope that at some point a proper C++ testing | |
* framework will be included with the distribution. | |
* | |
* If googletest is present, determined by the define NO_GTEST being | |
* #undefined, then use that instead of our minimal replacement. | |
* |
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
mkdir modules | |
git clone https://github.com/benjaminhwilliams/cctbx_project.git modules/cctbx_project | |
ln -s modules/cctbx_project/libtbx/auto_build/bootstrap.py | |
python bootstrap.py --builder=dials hot base update build | |
cd modules/cctbx_project/ && \ | |
git remote set-url origin [email protected]:cctbx/cctbx_project.git && \ | |
git fetch && \ | |
git reset --hard origin/master |
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
license: mit |
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
#!/usr/bin/env python | |
import matplotlib.pyplot as plt | |
import numpy as np | |
import cPickle as pickle | |
import enum | |
import dials.array_family.flex as flex | |
import sys | |
if "-h" in sys.argv or "--help" in sys.argv or len(sys.argv[1:]) != 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
#!/usr/bin/env python | |
from __future__ import print_function | |
import os | |
import sys | |
from collections import Counter | |
all_files = [] | |
for path, dirs, files in os.walk("."): | |
all_files.extend(os.path.join(path, x) for x in files if x.endswith(".py")) |
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
$ docker build . | |
Sending build context to Docker daemon 2.56kB | |
Step 1/12 : FROM centos:6 | |
---> 609c1f9b5406 | |
Step 2/12 : RUN yum install -y gcc git automake make gcc-c++ pkgconfig patch | |
---> Running in 450b545850ed | |
Loaded plugins: fastestmirror, ovl | |
Setting up Install Process | |
Package 1:make-3.81-23.el6.x86_64 already installed and latest version | |
Package 1:pkgconfig-0.23-9.1.el6.x86_64 already installed and latest version |
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
Homebrew build logs for llvm on 4.9.93-linuxkit-aufs | |
Build date: 2018-10-30 19:33:15 |
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 collections import OrderedDict | |
from bowler import * | |
from fissix.fixer_util import Attr, Name, ArgList, String, Comma | |
from fissix.pytree import type_repr, Node, Leaf # , Node, type_repr | |
from bowler.types import TOKEN | |
from fissix.pgen2 import token # token.COMMA | |
from fissix.pygram import python_symbols as syms | |
from libfuturize import fixer_util |