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 logging | |
import rdflib | |
from rdflib.term import URIRef | |
from rdflib import RDF, plugin | |
from rdflib.graph import Graph | |
from rdflib.store import Store | |
from movementmetadata import MovementMetadata | |
import tempfile | |
import os | |
from os.path import join as p |
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
diff --git a/PyOpenWorm/context_store.py b/PyOpenWorm/context_store.py | |
index c278af9..c753eed 100644 | |
--- a/PyOpenWorm/context_store.py | |
+++ b/PyOpenWorm/context_store.py | |
@@ -151,7 +151,15 @@ class RDFContextStore(Store): | |
self.__init_contexts() | |
for t in self.__store.triples(pattern, context): | |
contexts = set(getattr(c, 'identifier', c) for c in t[1]) | |
- inter = self.__context_transitive_imports & contexts | |
+ if self.__context_transitive_imports: |
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
- Pass in reader objects rather than names of readers for for data_reader | |
arguments | |
Allows to configure readers in any way that's needed prior to use (e.g., | |
the spreadsheet location, PyOW context). There doesn't seem to be any | |
reason that users of the data reader either need to initialize or resolve | |
the readers differently for a given name, so it's better not to expect them | |
to. | |
- Remove assumptions of spreadsheet reader being used |
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
Mark Watts' notes on All Day DevOps. | |
==================================== | |
The talks I viewed and the notes I took reflect my personal interests and | |
issues which I though would be worthwile to my employer, but there were many | |
useful talks. | |
One of the business-side advantages of DevOps is that it's supposed to *save | |
time and money* by reducing overhead due, principally, to dysfunctional | |
patterns of behavior within the organization. Many talks in ADDO describe tools |
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 csv | |
class WormbaseIonChannelCSVTranslator(DataTranslator): | |
input_type = WormbaseIonChannelCSVDataSource | |
output_type = DataObjectContextDataSource | |
def translate(self, data_source): | |
res = set([]) | |
try: | |
with open(data_source.csv_file_name, 'r') as csvfile: |
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 __future__ import print_function | |
import xlrd | |
wb = xlrd.open_workbook( | |
'./Differentiation Tree Dataset/differentiation-tree-all-variables.1.xlsx') | |
sheet = wb.sheet_by_name('RelativeSize') | |
# Column indices | |
PARENT = 1 | |
CHILDA = 2 |
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 PyOpenWorm as P | |
import numpy | |
import six | |
from time import time | |
def all_neuron_connection(): | |
n = P.Neuron(name="AVAL") | |
list(n.connection.get()) | |
list(n.connection.get()) |
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 __future__ import print_function | |
try: | |
import cStringIO as io | |
except: | |
from io import StringIO as io | |
import sys | |
import rdflib | |
from rdflib.graph import ConjunctiveGraph | |
from uuid import uuid4 | |
import random |
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 __future__ import print_function | |
from socket import error as SocketError | |
import errno | |
import traceback | |
import rdflib | |
import time | |
import os | |
import signal | |
from urllib2 import URLError | |
from rdflib.plugins.stores.sparqlstore import SPARQLUpdateStore |
NewerOlder