Skip to content

Instantly share code, notes, and snippets.

View cachemoi's full-sized avatar
👽

Maximilien Rothier Bautzer cachemoi

👽
View GitHub Profile
openapi: "3.0.2"
info:
title: "StorageOS API"
version: "2.0.0"
contact:
url: https://storageos.com
email: info@storageos.com
externalDocs:
url: https://docs.storageos.com/
// this will contain a dictionary witht the sctructure:
// There is one ID per version
// model ID: SBML string
function versions () {
this.data = {}
}
// this object would hold the model info (basic for now, more infos will be added)
def CalcScaleParamSET (mode, CIfact, percentage):
Xmin = mode / CIfact
Xmax = mode * CIfact
s = Symbol('s', Real=True)
mu = Symbol('mu', Real =True)
eqn1 = (1/2+1/2*erf((log(Xmax)-mu)/sqrt(2)*s)-1/2-1/2*erf((log(Xmin)-mu)/sqrt(2)*s)) -percentage
eqn2 = (exp(mu-s**2)) - mode
Traceback (most recent call last):
File "C:/Users/user/PycharmProjects/SimParam/SimParam.py", line 9, in <module>
CalcScaleParam(2,2, 0.9545)
File "C:/Users/user/PycharmProjects/SimParam/SimParam.py", line 6, in CalcScaleParam
sigma = nsolve(eqn, s)
File "C:\Users\user\Anaconda3\lib\site-packages\sympy\solvers\solvers.py", line 2754, in nsolve
return findroot(f, x0, **kwargs)
File "C:\Users\user\Anaconda3\lib\site-packages\mpmath\calculus\optimization.py", line 911, in findroot
x0 = [ctx.convert(x0)]
File "C:\Users\user\Anaconda3\lib\site-packages\mpmath\ctx_mp_python.py", line 662, in convert
@cachemoi
cachemoi / gist:b272522b5955228b698a
Created October 24, 2015 19:08
error when running jekyll build
jekyll build
/home/cachemoi/.gem/ruby/2.2.0/gems/bundler-1.10.6/lib/bundler/spec_set.rb:92:in `block in materialize': Could not find minitest-5.8.0 in any of the sources (Bundler::GemNotFound)
from /home/cachemoi/.gem/ruby/2.2.0/gems/bundler-1.10.6/lib/bundler/spec_set.rb:85:in `map!'
from /home/cachemoi/.gem/ruby/2.2.0/gems/bundler-1.10.6/lib/bundler/spec_set.rb:85:in `materialize'
from /home/cachemoi/.gem/ruby/2.2.0/gems/bundler-1.10.6/lib/bundler/definition.rb:140:in `specs'
from /home/cachemoi/.gem/ruby/2.2.0/gems/bundler-1.10.6/lib/bundler/definition.rb:185:in `specs_for'
from /home/cachemoi/.gem/ruby/2.2.0/gems/bundler-1.10.6/lib/bundler/definition.rb:174:in `requested_specs'
from /home/cachemoi/.gem/ruby/2.2.0/gems/bundler-1.10.6/lib/bundler/environment.rb:18:in `requested_specs'
from /home/cachemoi/.gem/ruby/2.2.0/gems/bundler-1.10.6/lib/bundler/runtime.rb:13:in `setup'
from /home/cachemoi/.gem/ruby/2.2.0/gems/bundler-1.10.6/lib/bundler.rb:127:in `setup'