OSX Sierra version 10.12.6
if you are getting error like
ERROR: Could not find a valid gem '<some package name>' (>= 0), here is why:
Unable to download data from https://rubygems.org/ - SSL_connect retur
test your TLS v1.2 support
OSX Sierra version 10.12.6
if you are getting error like
ERROR: Could not find a valid gem '<some package name>' (>= 0), here is why:
Unable to download data from https://rubygems.org/ - SSL_connect retur
test your TLS v1.2 support
| import matplotlib.pyplot as plt | |
| import numpy as np | |
| from qutip import basis | |
| def _ket(n, N): | |
| return basis(N, n) | |
| def _bra(n, N): |
| import matplotlib | |
| import matplotlib.pyplot as plt | |
| import numpy as np | |
| from qutip import * | |
| from scipy import * | |
| def operators(N) : | |
| si = qeye(2) |
| from dlx import DLX | |
| def genInstance(labels, rows) : | |
| columns = [] | |
| indices_l = {} | |
| for i in range(len(labels)) : | |
| label = labels[i] | |
| indices_l[label] = i | |
| columns.append(tuple([label,0])) | |
| return labels, rows, columns, indices_l |
| from dlx import DLX | |
| def genInstance(labels, rows) : | |
| columns = [] | |
| indices_l = {} | |
| for i in range(len(labels)) : | |
| label = labels[i] | |
| indices_l[label] = i | |
| columns.append(tuple([label,0])) | |
| return labels, rows, columns, indices_l |
| import cPickle as pickle | |
| import io | |
| lst = range(16) | |
| with io.open('list.p', 'wb') as f : | |
| pickler = pickle.Pickler(f) | |
| for l in lst : | |
| pickler.dump(l) |
| from tools.ContentMathML import mml2sympy | |
| from lxml import etree | |
| xml = """ | |
| <apply> | |
| <int/> | |
| <bvar><ci>x</ci></bvar> | |
| <lowlimit><cn>a</cn></lowlimit> | |
| <uplimit><ci>b</ci></uplimit> | |
| <apply> |
| code: | |
| console.log('socket.io', token); | |
| console.log(realtime); | |
| let session = yield _.find(realtime, function(data) { | |
| return data.token === token; | |
| }); | |
| console.log('session object to be set'); | |
| console.log(session); | |
| if (!session.socket) { |