sha256 stringlengths 64 64 | language stringclasses 28
values | size int32 1 491k | lines int32 1 23.2k | content stringlengths 1 200k |
|---|---|---|---|---|
4da91ce23233a913f2cc43c5a9ae7f58a7eba35bdc1cb303796248f41f8ad5ad | JavaScript | 18,290 | 1 | !function(_,t){"function"==typeof define&&define.amd?define(t):"object"==typeof exports?module.exports=t():t()(_.lunr)}(this,function(){return function(_){function t(){var _={"[一二三四五六七八九十百千万億兆]":"M","[一-龠々〆ヵヶ]":"H","[ぁ-ん]":"I","[ァ-ヴーア-ン゙ー]":"K","[a-zA-Za-zA-Z]":"A","[0-90-9]":"N"};this.chartype_=[];for(var t in _){var ... |
b5cb67056738b8ede1ef3a8734fa61f68dcc3fe83346bd4a81a4e0ef5e492bd6 | JavaScript | 18,839 | 362 | 'use strict';
LocusZoom.Adapters.extend("AssociationLZ", "AssociationPheWeb", {
getURL: function (state, chain, fields) {
return this.url + "results/?filter=chromosome in '" + state.chr + "'" +
" and position ge " + state.start +
" and position le " + state.end;
},
// Altho... |
22f61ae357a4e6c13f5a7c0e1a7a3e3fb576c5c28e13d417f31752ec34dbbc38 | JavaScript | 18,966 | 535 | /**
* Calculate the Z-gap between two RGB pixels
* @param red1 - red component of the first pixel
* @param green1 - green component of the first pixel
* @param blue1 - blue component of the first pixel
* @param red2 - red component of the second pixel
* @param green2 - green component of the second pixel
* @para... |
0839fb5119faed5427f68da3de00cded67204caef06df3b50c164422d00745a5 | JavaScript | 19,583 | 620 | /* -*- Mode: Java; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* vim: set shiftwidth=2 tabstop=2 autoindent cindent expandtab: */
/* Copyright 2012 Mozilla Foundation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the Licen... |
3dade1a417fda41c712199d4b40028c46b0c94835282c12d9c9f94f2fc740a45 | JavaScript | 19,624 | 469 | import path from 'path';
import zlib from 'zlib';
import {GenerateColorMIPMasks, ColorMIPSearch} from './mipsearch';
import {loadMIPRange} from "./load_mip";
import {DEBUG, getObjectWithRetry, putDbItemWithRetry} from './utils';
const defaultBatchResultsMinToLive = process.env.BATCH_RESULTS_MIN_TO_LIVE || 15; // defa... |
6455a0183e58fa390c3df02facb4762d6453ca2a472787654f7643c8527a040a | JavaScript | 19,971 | 482 | import path from 'path';
import zlib from 'zlib';
import { GenerateColorMIPMasks, ColorMIPSearch } from './mipsearch';
import { loadMIPRange } from "./load_mip";
import { DEBUG, getObjectWithRetry } from './utils';
const defaultBatchResultsMinToLive = process.env.BATCH_RESULTS_MIN_TO_LIVE || 15; // default ttl for ba... |
04c6e7413b36bd2b93c8c10513804dbdaefee85c19fd3623e94cde6cc35b8fa6 | JavaScript | 21,356 | 506 | /* pyaging Clock Catalogue — bespoke DOM controller. Depends on clock_explorer_core.js. */
(function () {
"use strict";
function staticBase() {
var s = document.currentScript || document.querySelector('script[src*="clock_explorer.js"]');
return s ? s.src.replace(/clock_explorer\.js.*$/, "") : "_static/";
... |
c11cabe362fcf47a8e86c933f4ec7aa62862fcd7c11c7fe77761eefb24c6f8fe | JavaScript | 21,362 | 481 | /*
################################################################################
# idvis.volcanoPlot.js 2.1.0 #
# Authors: P. Poullet #
# Contact: patrick.poullet@curie.fr ... |
952b7b8f3fb624931fdf86ca5bb3569a79e8d7a50e97cdc4022e336b54b27201 | JavaScript | 21,646 | 684 | /////////////////////////////////////
//
// LIBRARY FUNCTIONS
//
/////////////////////////////////////
(function( func ) {
$.fn.addClass = function() {
func.apply( this, arguments );
this.trigger('classChanged');
return this;
}
})($.fn.addClass);
(function( func ) {
$.fn.removeCl... |
74346d99e687564bcdef9e9c0e33528de44760f1db9f1675e0e04a6bb7f159a5 | JavaScript | 23,716 | 702 | // Run a test search and analyze its performance.
//
// Usage:
// npm run-script search <stackName> <inputfile> [batchSize] [numLevels]
// npm run-script search <stackName> report [jobId]
//
import util from 'util';
import fs from 'fs';
import AWS from 'aws-sdk';
import { mean, median, min, max, std } from 'mathjs';
im... |
604348e974a962e3d7161831b669c0d01f6cf72ace104485d8d8ba6891eefb3a | JavaScript | 24,002 | 705 | // Run a test search and analyze its performance.
//
// Usage:
// npm run-script search <stackName> <inputfile> [batchSize] [numLevels]
// npm run-script search <stackName> report [jobId]
//
import util from 'util';
import fs from 'fs';
import { CloudWatchLogsClient, DescribeLogStreamsCommand,
GetLogEventsComm... |
c17928f70eb4a2c984b090ff1300457f5b035cbc4df3501e848841a548f0ff6c | JavaScript | 25,018 | 580 | 'use strict';
// NOTE: `qval` means `-log10(pvalue)`.
const point_radius = 2.3;
function create_gwas_plot(variant_bins, unbinned_variants) {
// Order from weakest to strongest pvalue, so that the strongest variant will be on top (z-order) and easily hoverable
// In the DOM, later siblings are displayed over... |
f40a2d74f8dd40045e12ecf186cd3c92d97b3e922f00d3a4ce7a8847a33d54b1 | JavaScript | 26,341 | 617 | /*
################################################################################
# peptidePlot.js 1.1.5 #
# Authors: P. Poullet #
# Contact: patrick.poullet@curie.fr ... |
7126da628099ab784b5f5f6173ca4f038b3e5b62de1ff230f677f7b2fe194900 | JavaScript | 26,697 | 638 | /*
################################################################################
# boxPlot.js 1.1.0 #
# Authors: P. Poullet #
# Contact: patrick.poullet@curie.fr ... |
511d62c1ebebeb166e9a670699e2595ba7048211236b5f5674f35b7bcc033cba | JavaScript | 27,450 | 632 | /*
################################################################################
# idvis.peptidePlot.js 2.0.4 #
# Authors: P. Poullet #
# Contact: patrick.poullet@curie.fr ... |
147ea9d1c039a27dd8bd82532d1629be102a635c65d657edfb2b28259447df53 | JavaScript | 27,608 | 647 | /*
################################################################################
# idvis.boxPlot.js 2.0.3 #
# Authors: P. Poullet #
# Contact: patrick.poullet@curie.fr ... |
8655d9d2be66deed4fe12a829eb7b4f3508e6834aef4d41a675ce9a633613e67 | JavaScript | 28,704 | 995 | /**
* jscolor, JavaScript Color Picker
*
* @version 1.4.1
* @license GNU Lesser General Public License, http://www.gnu.org/copyleft/lesser.html
* @author Jan Odvarko, http://odvarko.cz
* @created 2008-06-15
* @updated 2013-04-08
* @link http://jscolor.com
*/
var jscolor = {
dir : '', // location of js... |
cf97f93c8bbeabc2cafed0a53b30ca41de7c271eda330017f35309843ab857f3 | JavaScript | 29,253 | 1,033 | /**
* Copyright (c) 2011-2013 Fabien Cazenave, Mozilla.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to
* deal in the Software without restriction, including without limitation the
* rights to use, copy, mo... |
6039207039d37990e72e2299f7b9f4f88cf0445acd6214d4e7c7fdc61a49f552 | JavaScript | 29,659 | 703 | 'use strict';
// NOTE: `qval` means `-log10(pvalue)`.
function create_gwas_plot(variant_bins, unbinned_variants) {
// Order from weakest to strongest pvalue, so that the strongest variant will be on top (z-order) and easily hoverable
// In the DOM, later siblings are displayed over top of (and occluding) ear... |
b80fc1d3d2cef5e07a67f4243de596383bb333891320acddae34e487c5368314 | JavaScript | 33,690 | 1,151 | // Production steps of ECMA-262, Edition 5, 15.4.4.18
// Reference: http://es5.github.io/#x15.4.4.18
if (!Array.prototype.forEach) {
Array.prototype.forEach = function(callback, thisArg) {
var T, k;
if (this === null) {
throw new TypeError(' this is null or not defined');
}
// 1. Let O be th... |
ef7c004380b9f3ba87994f3dd3f9b1062abded677901b161b5f7d36db7e40fd3 | JavaScript | 34,131 | 1 | Search.setIndex({"docnames": ["SCTrack", "index", "modules", "python_apis/SCTrack", "python_apis/SCTrack.base", "python_apis/SCTrack.config", "python_apis/SCTrack.feature", "python_apis/SCTrack.generate_tracking_stack", "python_apis/SCTrack.prepare", "python_apis/SCTrack.reclassification", "python_apis/SCTrack.sctrack"... |
1014d700279ff00a43f10eb659b5fea722eac1c3e9fe1c97fc6537a09bb91917 | JavaScript | 37,151 | 1 | Search.setIndex({docnames:["evcouplings","evcouplings.align","evcouplings.compare","evcouplings.complex","evcouplings.couplings","evcouplings.fold","evcouplings.mutate","evcouplings.utils","evcouplings.visualize","index","modules"],envversion:53,filenames:["evcouplings.rst","evcouplings.align.rst","evcouplings.compare.... |
e88c6dd91dcaa06dfa23e583a61ea6340e4491eb429390ebda196278adbab389 | JavaScript | 37,738 | 1 | Search.setIndex({"docnames": ["AnalysisFunctions", "HelperFunctions", "IOFunctions", "Image_Analysis_Functions", "MultiD_RD_functions", "PlottingFunctions", "RASPRoutines", "getting-started", "index", "modules"], "filenames": ["AnalysisFunctions.rst", "HelperFunctions.rst", "IOFunctions.rst", "Image_Analysis_Functions.... |
19b8ef4b6175f907540c55355644d063f1d7f73a6c74cdb329d5be9e6aa6cfda | JavaScript | 37,928 | 1,031 | import { useState, useEffect, useRef } from 'react';
import { useParams, Link, useLocation } from 'react-router-dom';
import { isEM } from '../utils/neuronUtils';
import { CoordsProvider } from '../contexts/MouseCoordsContext';
import MousePosition from './MousePosition';
function NeuronDetail() {
const { id } = use... |
cfb35333fafd6d2eb148eba21452849fb7fbde32fdfbf986836573f963106188 | JavaScript | 39,481 | 42 | "use strict";(()=>{var xe=Object.create;var G=Object.defineProperty,ve=Object.defineProperties,Se=Object.getOwnPropertyDescriptor,Te=Object.getOwnPropertyDescriptors,Qe=Object.getOwnPropertyNames,J=Object.getOwnPropertySymbols,Ee=Object.getPrototypeOf,Z=Object.prototype.hasOwnProperty,be=Object.prototype.propertyIsEnum... |
b312a3ce758cc3d057b80a4c641c8ed55b176d171eafa1d090f6d463a65cd09f | JavaScript | 44,550 | 849 | /*
################################################################################
# idvis.vennDiagram.js 2.0.1 #
# uses idvis name space BUT does not require idvis.js itself #
# Authors: P. Poullet ... |
6c0419c19d21f8b6eb20b51c64814a1886afd0da26928accb6e0c5e144e94e2b | JavaScript | 47,602 | 1 | Search.setIndex({"alltitles": {"A Solution": [[3, "a-solution"]], "A Variation": [[3, "a-variation"]], "Adaptive Re-Stratification": [[0, "adaptive-re-stratification"]], "Adaptive Stratified Sampling": [[0, "adaptive-stratified-sampling"]], "AdaptiveMap Objects": [[5, "adaptivemap-objects"]], "Basic Integrals": [[4, "b... |
ac2b51e7cd737d72325a9db995a70bf2a69a872e0b84fda545f0f6d1ad5f2f6c | JavaScript | 49,077 | 1,280 | /*
* # Semantic UI 2.1.4 - Calendar
* http://github.com/semantic-org/semantic-ui/
*
*
* Copyright 2015 Contributors
* Released under the MIT license
* http://opensource.org/licenses/MIT
*/
(function ($, window, document, undefined) {
$.fn.calendar = function (parameters) {
var
$allModules = $(thi... |
3239c194c94d028499d7344128c38551553e5126bfddf9b5841a824223a6312a | JavaScript | 78,708 | 2,022 | /*
################################################################################
# chartLibrary2.js 1.5.4 #
# Authors: P. Poullet (Institut Curie) #
# Contact: patrick.poullet@curie.fr ... |
6cc0e4e3f7b9e472c56d61ab1c22b0cf51bf7f507b2bd73dc06bfacab4ef74c7 | JavaScript | 89,083 | 2 | /*! jQuery v3.6.0 | (c) OpenJS Foundation and other contributors | jquery.org/license */
!function(e,t){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return t(e)}:t(e)}("undef... |
c0422048908a8d2f7c3a45209c4a6be477bb334fa4c3aa813b51465a976ca904 | JavaScript | 91,476 | 11 | // ┌────────────────────────────────────────────────────────────────────┐ \\
// │ Raphaël 2.1.2 - JavaScript Vector Library │ \\
// ├────────────────────────────────────────────────────────────────────┤ \\
// │ Copyright © 2008-2012 Dmitry Baranovskiy (http://raphaeljs.com) │ \\
// │ Copyrig... |
6d9288e8c65a717487656286cf98ce28e3c21ad1c66c8e2fc6ec81f34d5713ca | JavaScript | 93,143 | 2,109 | /*
################################################################################
# idvis.categoryPlot.js 1.2.0 #
# Authors: P. Poullet #
# Contact: patrick.poullet@curie.fr ... |
78c00f565021cece2c559069ad94e6c98ed994583174f7c5104418df72ec8d3e | JavaScript | 94,261 | 2,847 | /*
* canvg.js - Javascript SVG parser and renderer on Canvas
* MIT Licensed
* Gabe Lerner (gabelerner@gmail.com)
* http://code.google.com/p/canvg/
*
* Requires: rgbcolor.js - http://www.phpied.com/rgb-color-parser-in-javascript/
*/
(function(){
// canvg(target, s)
// empty parameters: replace all 'svg' elemen... |
b00ecc0c6c9105fb6284b12d0f6a9ef8c33eb8f9862629083bc2391aec1a406b | JavaScript | 101,665 | 1 | window.app=function(e){function t(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,t),i.l=!0,i.exports}var n={};return t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__esModule?f... |
5908e9000b0e251a652d702ba341e243a1d9978bc30a75aff83f8ce55f4d2383 | JavaScript | 114,308 | 16 | "use strict";(()=>{var Zi=Object.create;var _r=Object.defineProperty;var ea=Object.getOwnPropertyDescriptor;var ta=Object.getOwnPropertyNames,Bt=Object.getOwnPropertySymbols,ra=Object.getPrototypeOf,Ar=Object.prototype.hasOwnProperty,bo=Object.prototype.propertyIsEnumerable;var ho=(e,t,r)=>t in e?_r(e,t,{enumerable:!0,... |
a75cf75d98fbba4729091669356de4d530639e0bb86ab53395cfef792d06c1c8 | JavaScript | 116,486 | 1 | !function(){"use strict";function e(e,t){const n=Object.create(null),o=e.split(",");for(let r=0;r<o.length;r++)n[o[r]]=!0;return t?e=>!!n[e.toLowerCase()]:e=>!!n[e]}const t=e("Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Objec... |
763fd4ddff0da39672a9b2ef083534ed1674a0cae11db6e1c3e11a030b66207b | JavaScript | 133,196 | 3,030 | /*
################################################################################
# heatMap.js 2.3.7 #
# Authors: P. Poullet #
# Contact: patrick.poullet@curie.fr ... |
3db0d4cb650d30dfe00dc4bbfdb128aa8de8f8d5c600c39166a4080f7fec546f | JavaScript | 135,340 | 3,160 | /*
################################################################################
# idvis.js 2.2.0 #
# Authors: P. Poullet (Institut Curie) #
# Contact: patrick.poullet@curie.fr ... |
0477f1d9db7fc00525ec423c0e345e1c5cd24cc625d48b8d32ee04a55389bb7c | JavaScript | 150,685 | 3,408 | /*
################################################################################
# idvis.heatMap.js 3.2.0 #
# Authors: P. Poullet #
# Contact: patrick.poullet@curie.fr ... |
1fc5e86506288d42d4d98a64977093f7fa4b7224032b55fccc5189ab76b16c77 | JavaScript | 200,000 | 6,166 | /* -*- Mode: Java; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* vim: set shiftwidth=2 tabstop=2 autoindent cindent expandtab: */
/* Copyright 2012 Mozilla Foundation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the Licen... |
4afb40baa35ad12055111ab48ad98bd04dd717538fe704f35f2216cf075ff3ad | JavaScript | 200,000 | 7,406 | /*!
* jQuery JavaScript Library v3.6.0
* https://jquery.com/
*
* Includes Sizzle.js
* https://sizzlejs.com/
*
* Copyright OpenJS Foundation and other contributors
* Released under the MIT license
* https://jquery.org/license
*/
( function( global, factory ) {
"use strict";
if ( typeof module === "object" ... |
9fb5e7613807c4c04ea5385520ad0541bc875fb3ab2f329b123b98fae48b0643 | JavaScript | 200,000 | 7,568 | webpackJsonp([1],{
/***/ "./node_modules/for-each/index.js":
/***/ (function(module, exports, __webpack_require__) {
var isFunction = __webpack_require__("./node_modules/is-function/index.js")
module.exports = forEach
var toString = Object.prototype.toString
var hasOwnProperty = Object.prototype.hasOwnProperty
fun... |
cb790cb8cb3f3f0399410c9677106704038bc79a81c375b597bc05b5080abb7c | JavaScript | 200,000 | 5,688 | /**
* plotly.js v1.54.7
* Copyright 2012-2020, Plotly, Inc.
* All rights reserved.
* Licensed under the MIT license
*/
(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=wind... |
f629192533de16fd7edfedbe72d285a77fbdf3d034ab58bfc8097517401ba782 | JavaScript | 200,000 | 7 | /**
* plotly.js (gl3d - minified) v1.47.4
* Copyright 2012-2019, Plotly, Inc.
* All rights reserved.
* Licensed under the MIT license
*/
!function(t){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{("undefined"!=typeof window?win... |
2f7d4a4069ea61d0e64616cfaf66dadadafaaf4718e8992de0e66381c190d454 | JavaScript | 200,002 | 1 | webpackJsonp([1],{"/XWe":function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"ob... |
026c7d7601faa3d0899c27bcff589beca67881d795d3ea05b247213ee1bbdab7 | JavaScript | 200,027 | 6,638 | webpackJsonp([0],{
/***/ "./node_modules/babel-loader/lib/index.js?{\"cacheDirectory\":true,\"presets\":[[\"env\",{\"modules\":false,\"targets\":{\"browsers\":[\"> 2%\"],\"uglify\":true}}]],\"plugins\":[\"transform-object-rest-spread\"]}!./node_modules/vue-loader/lib/selector.js?type=script&index=0&bustCache!./resourc... |
7322ac3016fda8bc3b5cc6a159f5739a2115b9faee0e5451ea4b0daa138a090a | JavaScript | 201,871 | 5,635 | // ┌────────────────────────────────────────────────────────────────────┐ \\
// │ Raphaël 2.1.2 - JavaScript Vector Library │ \\
// ├────────────────────────────────────────────────────────────────────┤ \\
// │ Copyright © 2008-2012 Dmitry Baranovskiy (http://raphaeljs.com) │ \\
// │ Copyrig... |
12d2707063072c89bc23b4ba823a0e6eec7c53047e676c95983aa4ef17c4e954 | JavaScript | 211,293 | 1 | webpackJsonp([0],{"+27R":function(e,t,i){!function(e,t){t(i("PJh5"))}(0,function(e){"use strict";function t(e,t,i,n){var o={s:["thodde secondanim","thodde second"],m:["eka mintan","ek minute"],mm:[e+" mintanim",e+" mintam"],h:["eka horan","ek hor"],hh:[e+" horanim",e+" hor"],d:["eka disan","ek dis"],dd:[e+" disanim",e+... |
6e0a022a1d6643500cf860bb33dd8f1b3db402ef5591a63e4a46209a55db8ca6 | Julia | 32 | 3 | using SciMLTesting
run_tests()
|
1df53eb4f3a8bc6b448447aaad0f712840b21cc10784edeb13d29b9014c235d1 | Julia | 92 | 3 | # using Pkg
# Pkg.activate("$(homedir())/.julia/dev/NeuronBifurcate")
using NeuronBifurcate
|
9fcceb3be7181c44c794de3f38aa1d4ed6b4bb8a6f6037e73c4dc932d6d824f3 | Julia | 127 | 6 | using SBMLToolkit
using Test
@testset "Precompile workload" begin
@test isnothing(SBMLToolkit._precompile_workload())
end
|
ea0b59b5610274e39afeb201e48b215a058b81de89ea93afd167a63961801d18 | Julia | 229 | 10 | function is_event_assignment(k, model)
for ev in last.(model.events)
for as in ev.event_assignments
if as.variable == k
return true
end
end
end
return false
end
|
6808c9a09c14a8cde7f8e37aaea1ae5fe01991a02ee2b13c3bc2a45659cbc5cd | Julia | 349 | 22 | using BSON, PyPlot
function roundint(x)
if isinteger(x) == true
return Int(x)
else
return x
end
end
τ_s = 5.0
fig_width = 9 # width of figure
panel_height = 3 # height of a single panel
font_title = 16
font_axis = 12
font_inter = 14
font_legend = 10
linewidth = 2.0
C = get_cmap("viridis")
colors = [C((i-1)*0.... |
7e14934d1cf0208fa3010a3e07c0a37c2032c02f769b542676738b7b859818c9 | Julia | 359 | 13 | using BSON, JSON
data_DS = BSON.load("data/MLDS-reconstruct-prcs.bson")
gon = data_DS[:gon]
θin_DS = data_DS[:θin]
Δθ_DS = data_DS[:Δθsim]
ΔV_DS = data_DS[:ΔV]
data_out = Dict("gon"=>gon, "θin"=>θin_DS, "Δθ"=>Δθ_DS, "ΔV"=>ΔV_DS)
json_string = JSON.json(data_out)
open("data/MLDS-reconstruct-prcs.json","w") do f
wri... |
3f6e98bd9ef815774adcb0609984ba1dca41ec805fa97100738f29e077cfb356 | Julia | 422 | 18 | # Extract first model from ASTRAL PDB files
using BioStructures
in_dir = "pdbstyle-2.08_models"
out_dir = "pdbstyle-2.08"
known_problems = ["d6a1ia1.ent"]
fs = readdir(in_dir)
for (fi, f) in enumerate(fs)
println(fi, " / ", length(fs))
f in known_problems && continue
out_fp = joinpath(out_dir, f)
i... |
4e45138e655b610e70c6b2953dc3b767103dbd1829ebafff272ef18d52ae053d | Julia | 695 | 27 | module Glymphatics1D
using DataFrames, CSV, Parameters, ComponentArrays
using DifferentialEquations, DiffEqOperators
using ForwardDiff, Turing, FillArrays
import MCMCChains: get_sections
import LinearAlgebra: Diagonal
import Statistics: mean, std
using Interpolations
using StatsPlots, Plots, Plots.PlotMeasures, LaTeXS... |
3091c3b9c82404153b6c39097ac19c94cdf7abd411e7fa8aabfd5c83d1a86bb3 | Julia | 827 | 24 | using SBMLToolkit, BenchmarkTools
const SUITE = BenchmarkGroup()
data_dir = joinpath(@__DIR__, "..", "test", "data")
# =============================================================================
# SBML reading → ReactionSystem/ODESystem
# ============================================================================... |
23e605885b641c5273c30c56918c54ba08d8c332c16fa218a1a9621a14e4ca0a | Julia | 866 | 24 | using SBMLToolkitTestSuite
using Test
const case_ids = [
7, # boundary_condition
22, # non-integer stoichiometry
23, # species with constant=boundaryCondition="true"
41, # events
140, # compartment size overridden with assignmentRule
170, # Model using parameters and rules only
325, ... |
733195ea6675e96ef4800ca58ed3b99b88a6d84634d1526fcb24c41a10229632 | Julia | 892 | 28 | using SBMLToolkit
using Documenter
cp("./docs/Manifest.toml", "./docs/src/assets/Manifest.toml", force = true)
cp("./docs/Project.toml", "./docs/src/assets/Project.toml", force = true)
DocMeta.setdocmeta!(SBMLToolkit, :DocTestSetup, :(using SBMLToolkit); recursive = true)
makedocs(;
modules = [SBMLToolkit],
... |
a21964377c6042fff95a2b38a4f9e67596b25332d5df6ab138aa41b495c17f58 | Julia | 986 | 53 | include("activation.jl")
using PyPlot
using BSON: @save
function hopf_finder(args)
Ih = zeros(2)
ωh = zeros(2)
Sh = zeros(2)
vout, Iout, ωout = hopf(args)
if length(Iout) == 2
Ih .= Iout[1:2]
ωh .= ωout[1:2]
else
Ih .= NaN
ωh .= NaN
end
if Ih[1] > -Inf
Sh[1] = hopf_stability(vout[1... |
443cbf36ac1f0509e1f31e27da14dedc18e61b8ee28147ad90d7da576ee7c624 | Julia | 1,110 | 42 | using OrdinaryDiffEq, Parameters, PyPlot
using BSON: @save, @load
include("sim-functions.jl")
@load "data/MLS-onset.bson" gon Ion
tspan = (0.0, 11000.0)
v0 = -60.0
n0 = 0.0
x0 = vcat(n0, v0)
δθ = 0.01
θin = 0.5*δθ:δθ:1-0.5*δθ
gsel = [3.0, 4.0, 4.5, 4.7, 4.8, 5.0, 5.4, 5.5, 5.9]
idx = findfirst.(isequal.(gse... |
3f0cf30bf37a9417360edf09ca193f89d43833bac6d60cf79c60d789da6899fe | Julia | 1,114 | 42 | using OrdinaryDiffEq, Parameters, Dates, PyPlot, BSON
using BSON: @save, @load
include("sim-functions.jl")
date = string(Dates.today())
rfind = 1e-3
tmax = 10000.0
cutoff = 2000.0
tspan = (0, tmax+cutoff)
v0 = -60.0
n0 = 0.0
x0 = vcat(n0, v0)
@load "data/MLS-bif-general.bson" gin Isn Ih Sh ωh gbt Ibt gc Ic Cbtc
g... |
62f1fd080120ac5a9431092d3e16adb59d1ee092c9f4521aafb3975a6214fe84 | Julia | 1,142 | 39 | using SBMLToolkit
using Catalyst, SBMLToolkitTestSuite
using Test
const IV = default_t()
@parameters compartment
@species S1(IV) S2(IV)
function readmodel(sbml)
return SBMLToolkit.readSBMLFromString(
sbml, doc -> begin
set_level_and_version(3, 2)(doc)
convert_promotelocals_expandfu... |
287e45ca92af0c6318f23e1e6db3e985237adb190e6e8650179e8d1bb962e872 | Julia | 1,203 | 41 | module SBMLToolkit
using Catalyst: Catalyst, @species, Reaction, ReactionSystem, default_t, default_time_deriv,
isspecies
import ModelingToolkit: ModelingToolkit, @parameters, Equation, ODESystem, complete
using Symbolics: Symbolics, Num
using SBML: SBML, convert_promotelocals_expandfuns, readSBML, readSBMLFromStr... |
fcb415ba513dd2df9dca4b61757e295849f0fefd375f587995021d3f36621365 | Julia | 1,229 | 48 | using OrdinaryDiffEq, Parameters, Dates, PyPlot, BSON
using BSON: @save, @load
include("sim-functions.jl")
date = string(Dates.today())
rfind = 1e-3
tmax = 10000.0
cutoff = 2000.0
tspan = (0, tmax+cutoff)
v0 = -60.0
n0 = 0.0
x0 = vcat(n0, v0)
@load "data/MLS-bif-general.bson" gin Isn Ih Sh ωh gbt Ibt gc Ic Cbtc
ni... |
c620be73207885d89c8673e20edfdce5dd964f1d26c58fbc413d02de7d103ee5 | Julia | 1,256 | 45 | """
Function that receive a BasicLoad Vector and a Feasible Time Scheduling Solution as parameters
Search the loads whose acculumate power generate a peak over the max power demand
"""
function find_demand_peaks(H::Vector{BasicLoad}, pos::Vector{Time})
#Array definitions and time constants
n = length(H)
R ... |
acfebf2f0aa3156870c2967bcd6ff072d71c582c29a4e93167d741a82e11c44a | Julia | 1,280 | 45 |
using Glymphatics1D
parseandanalyzeCserrdataset(
(estimate_D=true, estimate_Dm=false, estimate_v=false),
)
parseandanalyzeCserrdataset(
(estimate_D=true, estimate_Dm=true, estimate_v=false),
)
@time parseandanalyzeCserrdataset(
(estimate_D=true, estimate_Dm=false, estimate_v=true, estimate_all_phys=fals... |
c7c246544143c70566f761e69c9a3bd4b9f74a134156481377a4ac3a4fdd6cf7 | Julia | 1,283 | 34 | # this file tests that a big model simulates
# SBML.Model with 4139 reactions, 1265 species, and 522 parameters. (1012 equations)
using SBMLToolkit
using Downloads, ModelingToolkit, OrdinaryDiffEq
using Test
sbml_url = "https://www.biomodels.org/biomodels/services/download/get-files/MODEL1112100000/2/MODEL1112100000_... |
75e0c00be93497f21c985e65eadf53505d6c734e97a914378d3443d4b5a234f2 | Julia | 1,289 | 46 | using OrdinaryDiffEq, Parameters, PyPlot, Dates, BSON, JSON
using BSON: @save, @load
include("sim-functions.jl")
date = string(Dates.today())
@load "data/MLDS-reconstruct-onset.bson" gon ρon ron Ion M λ L τδ date tspan cutoff
δθ = 0.05
# δθ = 0.1
θin = 0.5*δθ:δθ:1-0.5*δθ
Δθsim = zeros(length(gon), length(θin))
# Δ... |
69f69a20efa0877f88ba66a5e225a55f9990c3bb91cc107e4b61089fbed30f00 | Julia | 1,312 | 47 |
using Glymphatics1D
parseandanalyzeGadobutrolinfusion(
(estimate_D=true, estimate_Dm=false, estimate_v=false),
)
parseandanalyzeGadobutrolinfusion(
(estimate_D=true, estimate_Dm=true, estimate_v=false),
)
parseandanalyzeGadobutrolinfusion(
(estimate_D=true, estimate_Dm=false, estimate_v=true),
)
record... |
37d8e3d323517bc27af7d1192eaafd6f59fa9c81e74018810cd7915efc06351f | Julia | 1,317 | 48 | using OrdinaryDiffEq, Parameters, PyPlot, Dates
using BSON: @save, @load
date = string(Dates.today())
include("sim-functions.jl")
@load "data/MLDS-onset.bson" gon ρon ron Ion M λ L τδ tspan
v0 = -60.0.*ones(M+1)
n0 = 0.0
x0 = vcat(n0, v0)
δθ = 0.01
θin = 0.5*δθ:δθ:1-0.5*δθ
Δθsim = zeros(length(τδ), length(gon), l... |
6f854c025dfabbce0b8e851a9cf87dd741300dcf5935a01c3cb5463baf168dd0 | Julia | 1,327 | 45 | using BSON
function S_impedance(G_σ, C_σ, ω)
return 1/(G_σ+1im*ω*C_σ)
end
function DS_inf_impedance_soma(G_σ, C_σ, ρ, τ_δ, ω)
# input impedance at soma due to somatic current injection, semi-infinite dendrite
return 1/(G_σ+1im*ω*C_σ+ρ*G_σ*sqrt(1+1im*ω*τ_δ))
end
function DS_fin_impedance_soma(G_σ, C_σ, ρ, l, τ... |
d07a2fffabcd1de74505e35c27e9103162032cf9a40b7647a4349763da65f13c | Julia | 1,333 | 50 | """
Evaluate Comfort of a BASICLOAD due to schedule Time 's'
"""
function Eval_BasicLoad_Comfort(L::BasicLoad, s::Time; op::String="frac")
if s < L.r || s > L.d
@error "Start instant should be between release and dead line"
return nothing
elseif L.e < L.r || L.e > L.d
@error "Expected i... |
187f95105ff65280f94a74c7259b34502153efed113bc5b4cbc5c7426f0a3558 | Julia | 1,377 | 37 | """
Creates ContinuousVectorCallbacks
"""
function get_events(model) # Todo: implement up or downpass and parameters
subsdict = get_substitutions(model) # Todo: use SUBSDICT
evs = model.events
mtk_evs = Pair{Vector{Equation}, Vector{Equation}}[]
for (_, e) in evs
trigger = SBML.extensive_kinet... |
328518f7a0096c65de3e539f2c9e5d9535426106541579a9097108fb270a9b67 | Julia | 1,441 | 45 | using PrecompileTools: @compile_workload, @setup_workload
function _precompile_workload()
sbml = """
<?xml version="1.0" encoding="UTF-8"?>
<sbml xmlns="http://www.sbml.org/sbml/level3/version2/core" level="3" version="2">
<model id="precompile_model">
<listOfCompartments>
<compartm... |
74093da0494e26fa5464214a2b5609f4872bf5a7d9aaf0ed48afbc4ec1e56c4b | Julia | 1,562 | 55 | using OrdinaryDiffEq, Parameters, PyPlot, Dates
using BSON: @save, @load
date = string(Dates.today())
include("sim-functions.jl")
@load "data/MLDS-active-onset.bson" gon ρon ron Ion M λ L τδ tspan ϵ
x0 = [zeros(M+1) -60.0*ones(M+1)]
δθ = 0.01
θin = 0.5*δθ:δθ:1-0.5*δθ
# Δθsim = zeros(length(ϵ), length(gon), length... |
274aa78d730e6d25e54b889debce31b7dc162f36b34cfab3916507f238ede354 | Julia | 1,688 | 62 | using OrdinaryDiffEq, Parameters, Dates, PyPlot, BSON
using BSON: @save, @load
include("sim-functions.jl")
date = string(Dates.today())
rfind = 1e-3
tmax = 10000.0
cutoff = 2000.0
tspan = (0, tmax+cutoff)
M = 50
L = 1000.0
λ = 100.0
@load "data/MLDS-bif-general.bson" gin Isn Ih Sh gbt Ibt gc Ic τδ
gon = [3.0, 4.0... |
54a683667b68417dde0dede31d5c9d8117be479a81f993ec760f486bee88509a | Julia | 1,761 | 69 | include("activation.jl")
using PyPlot
using BSON: @save
function hopf_finder(args)
Ih = zeros(2)
ωh = zeros(2)
Sh = zeros(2)
vout, Iout, ωout = hopf(args)
if length(Iout) == 2
Ih .= Iout[1:2]
ωh .= ωout[1:2]
else
Ih .= NaN
ωh .= NaN
end
if Ih[1] > -Inf
Sh[1] = hopf_stability(vout[1... |
25abb723a449767a4b732e7928bdad3dc3346b93dc98a71e263134eafa923f0c | Julia | 1,762 | 53 | using OrdinaryDiffEq, PyPlot, Parameters
using BSON: @save
include("sim-functions.jl")
M = 50 # number of compartments per neuron
args_snic = MLMDS_Param(gL = 2.0, τδ = 2.5, Iext= 89.0, ρ = 0.8, M=M, λ=100.0)
args_hom = MLMDS_Param(gL = 2.0, τδ = 2.5, Iext= 131.79697, ρ = 1.4, M=M, λ=100.0)
args_hopf = MLMDS_Param(g... |
028ff391b3fc2fb6a0f3c667026800c3745d9e845dd40b15d609de3871c71562 | Julia | 1,781 | 50 | include("fig-master.jl")
data_act = BSON.load("data/MLDS-active-prcs.bson")
θin_act = data_act[:θin]
Δθ_act = data_act[:Δθsim]
gon_act = data_act[:gon]
data_pas = BSON.load("data/MLDS-prcs.bson")
θin_pas = data_pas[:θin]
Δθ_pas = data_pas[:Δθsim]
gsel = [3.0, 5.4, 5.5, 5.9]
idx = findfirst.(isequal.(gsel), (gon_act,... |
bb1b1b82e4e5b76ce8d9f053aaa7c00ee2990ba3e6f82bcfa430f7a8308ec913 | Julia | 1,800 | 50 | include("fig-master.jl")
using BSON: @load
@load "data/MLDS-bif-bt.bson" τδ gbt Ibt gc ρc Ic τbtc gbaut ghmax
data_S_snl = BSON.load("data/MLS-onset-bsnl.bson")
gsnl_S = data_S_snl[:gon]
data_DS_snl = BSON.load("data/MLDS-onset-bsnl.bson")
τsnl_DS = data_DS_snl[:τsel]
gsnl_DS = data_DS_snl[:gon]
τsnl = vcat(0.0, τs... |
41f478bcba5f2cf1b1a0d5ab86886c16c6eff94ff5bcf68a867cb0476bf8e094 | Julia | 1,916 | 73 | using OrdinaryDiffEq, Parameters, Dates, PyPlot, BSON
using BSON: @save, @load
include("sim-functions.jl")
date = string(Dates.today())
rfind = 1e-3
tmax = 10000.0
cutoff = 2000.0
tspan = (0, tmax+cutoff)
M = 50
L = 1000.0
λ = 100.0
@load "data/MLDS-bif-bt.bson" τδ gbt Ibt gc ρc Ic τbtc
τsel = 0.5:0.5:12.5
idx = f... |
f5abbbccd3ebfe96202d17a650c22a311321e9dd90a90b5cee3606b890cadd1f | Julia | 1,988 | 57 | include("fig-master.jl")
data = BSON.load("data/DS-impedance.bson")
gin = data[:gin]
f = data[:f]
τδ = data[:τδ]
l = data[:l]
ZS = data[:ZS]
ZI = data[:ZI]
ZF = data[:ZF]
fig = figure(figsize=(1.25*fig_width, panel_height))
fig.subplots_adjust(wspace=0.4)
fig.text(0.07, 0.875, "A", fontsize=font_title)
ax1 = subplot... |
52ac302539d9ef58f439e3cfa7c06694e144bf460dc1fc1176ced33caefe59aa | Julia | 2,083 | 52 | include("fig-master.jl")
S_data = BSON.load("data/MLS-bif-bt-region.bson")
Isn = S_data[:Isn]
gin_S = S_data[:gin]
Ibt_S = S_data[:Ibt]
gbt_S = S_data[:gbt]
Ih_S = S_data[:Ih]
Sh_S = S_data[:Sh]
DS_data = BSON.load("data/MLDS-bif-bt-region.bson")
Isn_DS = DS_data[:Isn]
gin_DS = DS_data[:gin]
Ic = DS_data[:Ic]
gc = DS... |
a2b9f5ca8b4fa9d2d523a10dbd367e1ea0e73471cf28a48ec20f3f9442e2f608 | Julia | 2,128 | 65 | include("fig-master.jl")
DS_data = BSON.load("data/MLDS-prcs.bson")
gon_DS = DS_data[:gon]
Δθ_DS = DS_data[:Δθsim]
θin_DS = DS_data[:θin]
τδ = DS_data[:τδ]
println(τδ)
S_data = BSON.load("data/MLS-prcs.bson")
gon_S = S_data[:gsel]
Δθ_S = S_data[:Δθsim]
θin_S = S_data[:θin]
gsel = [3.0, 4.7, 5.4, 5.9]
idx_DS = findfi... |
742cb57c280d929d58f484ceec9ce71928d9a71b31a1f3dfe012702ad6921dfb | Julia | 2,235 | 77 | using SBMLToolkit
using SBML, SBMLToolkitTestSuite
using Catalyst, ModelingToolkit, OrdinaryDiffEq
using Test
const IV = default_t()
@parameters k1, compartment
@species S1(IV), S2(IV)
function readmodel(sbml)
return SBMLToolkit.readSBMLFromString(
sbml, doc -> begin
set_level_and_version(3, 2... |
c9e52b556b4ff1e8841a3e0b448fa639c8d068bd9d1b69faf5f2bb8e8e2e6d0e | Julia | 2,293 | 92 | using Dates, PyPlot, BSON, JSON, OrdinaryDiffEq, StaticArrays
using BSON: @save, @load
include("sim-functions.jl")
date = string(Dates.today())
rfind = 1e-3
tmax = 10000.0
cutoff = 2000.0
tspan = (0, tmax+cutoff)
τδ = 2.5
num = "00892"
cell = "NMO_$(num)"
depth_sel = ["depth8", "depth13", "depth14", "full"]
open("... |
2db2fd742c32f97c19a360f53a7fcee4e4ae8049979f35b2440a768baa95bf22 | Julia | 2,300 | 64 | using Parameters
using BSON: @load
include("sim-functions.jl")
include("fig-master.jl")
snic_col = colors[5]
hom_col = colors[3]
@load "data/MLDS-exc-network.bson" spike_set_snic spike_set_hom Tsnic Thom N Np Lhom Δϕhom Lsnic Δϕsnic Lhopf Δϕhopf
@load "data/MLDS-exc-prcs.bson" θin Δθsnic Δθhom Δθhopf
Rhom, ϵ2 = sync... |
8452505e9ad180ed8104ab5573ce17d5ac3a5f065b1bac7041c8970b25e20b29 | Julia | 2,363 | 84 | #!/usr/bin/env julia
using ArgParse
using Word2Vec
s = ArgParseSettings()
@add_arg_table s begin
"--model", "-m"
arg_type = String
help = "use this model file (write given -i, query given -q)"
required = true
default = ""
"--input", "-i"
arg_type = String
help = "input text corpus to m... |
bb4ac5e22c75e52f3f725e15b51056492b6b50be42528a6a6d1916f14bf4dccc | Julia | 2,480 | 106 | include("activation.jl")
using BSON: @save
function hopf_finder(v0, ω0, args; ωtol=1e-3, vtol=1e-2)
hstop = 0
vhl, Ihl, ωhl = hopf(args; v0=v0[1], ω0=ω0[1], ωtol = ωtol)
vhu, Ihu, ωhu = hopf(args; v0=v0[2], ω0=ω0[2], ωtol = ωtol)
if abs(vhu-vhl) < vtol
Ihl = NaN
Ihu = NaN
hstop = 1
end
return [... |
9d1774f97a8250d42f0e4513134abe8cf304a8773769690b4433b7862d340585 | Julia | 2,646 | 55 | using SBMLToolkit, Test
using SciMLTesting
const INTENTIONAL_PUBLIC_REEXPORTS = (
ODESystem = SBMLToolkit.ModelingToolkit.ODESystem,
ReactionSystem = SBMLToolkit.Catalyst.ReactionSystem,
convert_promotelocals_expandfuns = SBMLToolkit.SBML.convert_promotelocals_expandfuns,
convert_simplify_math = SBMLTo... |
8c94cb9051a7c5f499fd36a7285079c0ebd7099c2dc925a74591143aa652b5f3 | Julia | 2,702 | 93 | include("activation.jl")
using PyPlot
using BSON: @save
function hopf_finder(v0, ω0, args; ωtol=1e-3, vtol=1e-2)
hstop = 0
vhl, Ihl, ωhl = hopf(args; v0=v0[1], ω0=ω0[1], ωtol = ωtol)
vhu, Ihu, ωhu = hopf(args; v0=v0[2], ω0=ω0[2], ωtol = ωtol)
if abs(vhu-vhl) < vtol
Ihl = NaN
Ihu = NaN
hstop = 1
... |
12fb2f0e1aa70b11946359d9f65e2a3c777098f501f8889c5512027085b6d8c5 | Julia | 2,753 | 71 | using Parameters
using BSON: @load
include("sim-functions.jl")
include("fig-master.jl")
snic_col = colors[5]
hom_col = colors[3]
@load "data/MLDS-exc-pair.bson" spike_set_snic spike_set_hom Tsnic Thom N Np Lhom Δϕhom Lsnic Δϕsnic Lhopf Δϕhopf
@load "data/MLDS-exc-prcs.bson" θin Δθsnic Δθhom Δθhopf
fig, ax = subplots... |
98f8c6a12764c50f17f32af27bf1afefb22ecfed686b16128c6b63815d532d49 | Julia | 2,871 | 93 | include("activation.jl")
using PyPlot
using BSON: @save
function hopf_finder(v0, ω0, args; ωtol=1e-3, vtol=1e-2)
hstop = 0
vhl, Ihl, ωhl = hopf(args; v0=v0[1], ω0=ω0[1], ωtol=ωtol)
vhu, Ihu, ωhu = hopf(args; v0=v0[2], ω0=ω0[2], ωtol=ωtol)
if abs(vhu - vhl) < vtol
Ihl = NaN
Ihu = NaN
hstop = 1
en... |
e5ebc0d9757a7cd10ec17b6cbee50b76fb2be5aa6d18e020a505b8c7c8f30aa2 | Julia | 2,903 | 133 | """
Generate a house with 11 schedulabe appliances
retunr a Vector{BasicLoad}
"""
function Generate_Scenary1()
Δt = Time(0,5)
L = Array{BasicLoad,1}(undef, 11)
#LOAD1
ID = "Water tank pump"
r = Time(7)
e = Time(8)
d = Time(17)
C = Time(0,20)
P_av = 2.0
P_pk = 1.0
w = rand... |
a0e7d94018b20ea03893d01c2688c0c8025d970567eef39992d95937f45ab781 | Julia | 4,038 | 125 | using OrdinaryDiffEq, PyPlot, Parameters, BSON, Dates
using BSON: @save
date = string(Dates.today())
include("sim-functions.jl")
test = ARGS[1]
L = 1000.0
λ = 100.0
M = 50
τδ = 10.0
if test == "benchmark"
tmax = 2000.0
cutoff = 0.0
tspan = (0, tmax+cutoff)
x2 = [zeros(M+1) -60.0*ones(M+1)]
args_test = ... |
290d769e61296cd9cdda696ceeef82648b142369daf65a1522549ef818eb3c8b | Julia | 4,231 | 136 | using Glymphatics1D
using DataFrames, CSV
using Statistics, Distributions
using Plots
using MCMCChains#, Turing
using Plots, Plots.PlotMeasures
using LaTeXStrings
using Serialization
recordings = [
"210215_mouse03",
"210314_mouse02",
"210314_mouse03",
"210322_mouse04",
"210330_mouse05",
"21033... |
6b16790a0cf356f308b34b6c1cc1e9fa29c14ca72bc1d9b8d12c0aa23348706b | Julia | 4,388 | 143 |
function parseandanalyzePladataset(
fitting_parameters::NamedTuple;
n_samples::Int64=1000,
Turing_space_steps::Int64=15,
raw_datafile="data/inputs/scraped_data.csv",
parsed_datafile="data/parsed/Pla_parsed.csv",
savedir_results="data/results/Pla/",
savedir_figures="visualizations/Pla/",
... |
917447416a7a13cfea48b041059e9fda6e35f122e8e7762951af82c7114587d1 | Julia | 4,401 | 111 | function get_rules(model)
subsdict = get_substitutions(model) # Todo: use SUBSDICT
obseqs = Equation[]
algeqs = Equation[]
raterules = Equation[]
for r in model.rules
if r isa SBML.AlgebraicRule
push!(algeqs, 0 ~ interpret_as_num(r.math, model))
elseif r isa SBML.Assignm... |
eec9a4edaf7e7cb19aef0cbaae6d1ecb3f169ecdd9e714f781585d291ca7d190 | Julia | 4,492 | 178 | """
Short functions to use within Objective Funcions Definitions
"""
Comf(L,i) = Eval_BasicLoad_Comfort(L, L.s[i])
Cost(L,i) = Eval_BasicLoad_Cost(L,L.s[i])
"""
Auxiliar function to convert binary vector to time position
"""
function find_time(A,n)
V = Vector{Int64}(undef,n)
for key in eachindex(A)
if A[key] > ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.