index
int64
repo_name
string
branch_name
string
path
string
content
string
import_graph
string
17,446
seizans/sandbox-django
HEAD
/sandbox/core/factories.py
# coding=utf8 import string import factory from factory.fuzzy import FuzzyText from core.models import Company, Staff class CompanyFactory(factory.DjangoModelFactory): FACTORY_FOR = Company id = factory.Sequence(lambda n: n) name = FuzzyText(prefix='1499', length=9, chars=string.digits) # name = fac...
{"/sandbox/core/search_indexes.py": ["/sandbox/core/models.py"], "/sandbox/settings/store_stg.py": ["/sandbox/settings/_store_base.py", "/sandbox/settings/_stg.py"], "/sandbox/settings/store_dev.py": ["/sandbox/settings/_store_base.py", "/sandbox/settings/_dev.py"], "/sandbox/settings/_store_base.py": ["/sandbox/settin...
17,447
seizans/sandbox-django
HEAD
/sandbox/settings/back_stg.py
# coding=utf8 # 管理用アプリケーションの、ステージング環境用の設定 from ._back_base import * # NOQA from ._stg import * # NOQA
{"/sandbox/core/search_indexes.py": ["/sandbox/core/models.py"], "/sandbox/settings/store_stg.py": ["/sandbox/settings/_store_base.py", "/sandbox/settings/_stg.py"], "/sandbox/settings/store_dev.py": ["/sandbox/settings/_store_base.py", "/sandbox/settings/_dev.py"], "/sandbox/settings/_store_base.py": ["/sandbox/settin...
17,448
seizans/sandbox-django
HEAD
/sandbox/settings/back_dev.py
# coding=utf8 # 管理用アプリケーションの、開発環境用の設定 from ._back_base import * # NOQA from ._dev import * # NOQA # .dev で定義されている追加分を追加する INSTALLED_APPS += INSTALLED_APPS_PLUS
{"/sandbox/core/search_indexes.py": ["/sandbox/core/models.py"], "/sandbox/settings/store_stg.py": ["/sandbox/settings/_store_base.py", "/sandbox/settings/_stg.py"], "/sandbox/settings/store_dev.py": ["/sandbox/settings/_store_base.py", "/sandbox/settings/_dev.py"], "/sandbox/settings/_store_base.py": ["/sandbox/settin...
17,451
igniteflow/polymorph
refs/heads/master
/polymorph/tools.py
import yaml class RowTools(object): """ transform a Python object to csv friendly rows Example: { 'foo': 'bar', 'cars': ['one', 'two'], 'fruit': [ {'apple': 'green'}, {'banana': 'yellow'}, ] } Becomes ro...
{"/polymorph/tests/test_tools.py": ["/polymorph/tools.py"]}
17,452
igniteflow/polymorph
refs/heads/master
/setup.py
from setuptools import setup setup(name='polymorph', version='0.1', description='Python tooling to tranform data', url='https://github.com/igniteflow/polymorph', author='Phil Tysoe', author_email='philtysoe@gmail.com', license='MIT', packages=['polymorph'], zip_safe=Fals...
{"/polymorph/tests/test_tools.py": ["/polymorph/tools.py"]}
17,453
igniteflow/polymorph
refs/heads/master
/polymorph/tests/test_tools.py
import os from polymorph.tools import YamlToCsv, RowTools TEST_DATA_DIR = './polymorph/tests/test_data/' def get_test_file_path(filename): return '{}{}'.format(TEST_DATA_DIR, filename) def test_load_from_file(): yaml_to_csv = YamlToCsv() path = get_test_file_path('simple_example.yaml') assert yaml...
{"/polymorph/tests/test_tools.py": ["/polymorph/tools.py"]}
17,472
valeriobasile/storkl
refs/heads/master
/app/__init__.py
from flask import Flask from flask.ext.sqlalchemy import SQLAlchemy from flask.ext import restful from sqlalchemy import create_engine import os from sqlalchemy.ext.declarative import declarative_base app = Flask(__name__) api = restful.Api(app) # create database basedir = os.path.abspath(os.path.dirname(__file__)) S...
{"/db_create_test_data.py": ["/app/__init__.py"], "/app/views.py": ["/app/__init__.py"], "/app/models.py": ["/app/__init__.py", "/app/utils.py"]}
17,473
valeriobasile/storkl
refs/heads/master
/db_create_test_data.py
from app import db, models from datetime import datetime # create the database db.create_all() # empty the db for user in models.User.query.all(): db.session.delete(user) for project in models.Project.query.all(): db.session.delete(project) for task in models.Task.query.all(): db.session.delete(task...
{"/db_create_test_data.py": ["/app/__init__.py"], "/app/views.py": ["/app/__init__.py"], "/app/models.py": ["/app/__init__.py", "/app/utils.py"]}
17,474
valeriobasile/storkl
refs/heads/master
/app/utils.py
def flatten(list_of_lists): return [val for subl in list_of_lists for val in subl] def unique(l): return list(set(l))
{"/db_create_test_data.py": ["/app/__init__.py"], "/app/views.py": ["/app/__init__.py"], "/app/models.py": ["/app/__init__.py", "/app/utils.py"]}
17,475
valeriobasile/storkl
refs/heads/master
/test_requests.py
import requests r = requests.get('http://127.0.0.1:5000/u/valerio') res = r.json() print res r = requests.post('http://127.0.0.1:5000/u/new', data={'username' : 'valerio', 'email' : 'valerio@storkl.net'}) res = r.json() print res r = requests.get('http://127.0.0.1:5000/u/valerio') res = r.json() print res r = reque...
{"/db_create_test_data.py": ["/app/__init__.py"], "/app/views.py": ["/app/__init__.py"], "/app/models.py": ["/app/__init__.py", "/app/utils.py"]}
17,476
valeriobasile/storkl
refs/heads/master
/app/views.py
from app import db, app, models, api from utils import * from flask import make_response, jsonify from flask.ext import restful from flask.ext.restful import abort, reqparse from sqlalchemy.exc import IntegrityError from sqlalchemy.orm.exc import UnmappedInstanceError ### User ### class User(restful.Resource): def...
{"/db_create_test_data.py": ["/app/__init__.py"], "/app/views.py": ["/app/__init__.py"], "/app/models.py": ["/app/__init__.py", "/app/utils.py"]}
17,477
valeriobasile/storkl
refs/heads/master
/app/models.py
from app import db from app.utils import * assignment = db.Table('assignment', db.Column('user', db.String(64), db.ForeignKey('user.username')), db.Column('task', db.Integer, db.ForeignKey('task.id')) ) trust = db.Table('trust', db.Column('trustee', db.String(64), db.ForeignKey('user.username'), primary...
{"/db_create_test_data.py": ["/app/__init__.py"], "/app/views.py": ["/app/__init__.py"], "/app/models.py": ["/app/__init__.py", "/app/utils.py"]}
17,479
aditya-kandada/democrat
refs/heads/master
/polls/urls.py
from django.conf.urls import patterns from django.conf.urls import url urlpatterns = patterns('polls.views', # Examples: url(r'^$', 'index', name='index'), )
{"/polls/views.py": ["/polls/models.py"], "/polls/admin.py": ["/polls/models.py"]}
17,480
aditya-kandada/democrat
refs/heads/master
/polls/models.py
from django.db import models class Candidate(models.Model): name = models.CharField(max_length=100) first_name = models.CharField(max_length=100, null=True) last_name = models.CharField(max_length=100, null=True) description = models.CharField(max_length=250) upvote = models.IntegerField(max_length...
{"/polls/views.py": ["/polls/models.py"], "/polls/admin.py": ["/polls/models.py"]}
17,481
aditya-kandada/democrat
refs/heads/master
/polls/views.py
from django.shortcuts import render from polls.models import Candidate def index(request): candidates = Candidate.objects.all().order_by('name') return render(request, 'index.html', {'candidates':candidates})
{"/polls/views.py": ["/polls/models.py"], "/polls/admin.py": ["/polls/models.py"]}
17,482
aditya-kandada/democrat
refs/heads/master
/polls/admin.py
from django.contrib import admin # Register your models here. from polls.models import Candidate class CandidateAdmin(admin.ModelAdmin): list_display = ['name', 'description', 'upvote', 'downvote'] admin.site.register(Candidate, CandidateAdmin)
{"/polls/views.py": ["/polls/models.py"], "/polls/admin.py": ["/polls/models.py"]}
17,537
MfonUdoh/Mazer
refs/heads/master
/game.py
class Game(object): def __init__(self): #Board width self.size = 10 self.minMoves = 0 self.level = 0 self.marksLocations = [] self.wallsLocations = [] self.empties = self.size ** 2 - len(self.wallsLocations) - len(self.marksLocations) self.maxLevels =...
{"/main.py": ["/game.py"]}
17,538
MfonUdoh/Mazer
refs/heads/master
/main.py
import levels, pygame, game from pygame.locals import * game = game.Game() running = True end = False pygame.init() screen_width = 600 screen_height = 600 multiple = 50 screen = pygame.display.set_mode((screen_width, screen_height)) pygame.display.set_caption("Mazer") radius = int(0.5 * multiple) wallwidth = int(1 ...
{"/main.py": ["/game.py"]}
17,548
Qyon/AllegroObserver
refs/heads/master
/allegro/api.py
# coding=utf-8 __author__ = 'Qyon' from suds.client import Client from suds import WebFault import time import logging logger = logging.getLogger(__name__) class InvalidSessionException(Exception): pass class ApiHelper(object): """ ... """ def __init__(self, settings): ...
{"/run.py": ["/observer.py"]}
17,549
Qyon/AllegroObserver
refs/heads/master
/allegro/__init__.py
__author__ = 'Qyon' from api import ApiHelper
{"/run.py": ["/observer.py"]}
17,550
Qyon/AllegroObserver
refs/heads/master
/settings.sample.py
__author__ = 'Qyon' ALLEGRO_LOGIN='login' ALLEGRO_PASSWORD='pass' ALLEGRO_KEY='key' ALLEGRO_LOCALVERSION=3 CATEGORY_ID=28273 EMAIL_TO='samplemail@gmail.com' EMAIL_FROM='samplemail@gmail.com' #in minutes CHECK_INTERVAL=30
{"/run.py": ["/observer.py"]}
17,551
Qyon/AllegroObserver
refs/heads/master
/run.py
__author__ = 'Qyon' import settings from observer import Observer import logging # create console handler and set level to debug consoleHandler = logging.StreamHandler() consoleHandler.setLevel(logging.DEBUG) # create file handler and set level to debug fileHandler = logging.FileHandler('allegro_observer.log') fileHa...
{"/run.py": ["/observer.py"]}
17,552
Qyon/AllegroObserver
refs/heads/master
/observer.py
# coding=utf-8 __author__ = 'Qyon' import allegro import time # Import smtplib for the actual sending function import smtplib # Import the email modules we'll need from email.mime.text import MIMEText import logging logger = logging.getLogger(__name__) print __name__ class Observer(object): def __init__(self, set...
{"/run.py": ["/observer.py"]}
17,562
rudra012/dj_celery_docker
refs/heads/master
/app/celerydemo/models.py
from __future__ import absolute_import, unicode_literals from django.contrib.postgres.fields import JSONField from django.db import models from django.db.models import signals from django.utils.translation import ugettext_lazy as _ from django_celery_beat.models import PeriodicTask, PeriodicTasks from . import schedu...
{"/app/celerydemo/tasks.py": ["/app/celerydemo/models.py"], "/app/celerydemo/admin.py": ["/app/celerydemo/models.py"], "/app/celerydemo/schedulers.py": ["/app/celerydemo/models.py"]}
17,563
rudra012/dj_celery_docker
refs/heads/master
/app/hello_django/urls.py
from django.conf import settings from django.conf.urls.static import static from django.contrib import admin from django.contrib.auth.models import User from django.urls import path, include from rest_framework import serializers, viewsets from rest_framework.routers import DefaultRouter # from upload.views import imag...
{"/app/celerydemo/tasks.py": ["/app/celerydemo/models.py"], "/app/celerydemo/admin.py": ["/app/celerydemo/models.py"], "/app/celerydemo/schedulers.py": ["/app/celerydemo/models.py"]}
17,564
rudra012/dj_celery_docker
refs/heads/master
/app/celerydemo/tasks.py
from celery import shared_task from .models import TaskLog @shared_task def logging_task(): print('Logging task invoked...........') TaskLog.objects.create(task_name='test')
{"/app/celerydemo/tasks.py": ["/app/celerydemo/models.py"], "/app/celerydemo/admin.py": ["/app/celerydemo/models.py"], "/app/celerydemo/schedulers.py": ["/app/celerydemo/models.py"]}
17,565
rudra012/dj_celery_docker
refs/heads/master
/app/celerydemo/clockedschedule.py
"""Clocked schedule Implementation.""" from __future__ import absolute_import, unicode_literals from celery import schedules from celery.utils.time import maybe_make_aware from collections import namedtuple schedstate = namedtuple('schedstate', ('is_due', 'next')) class clocked(schedules.BaseSchedule): """clo...
{"/app/celerydemo/tasks.py": ["/app/celerydemo/models.py"], "/app/celerydemo/admin.py": ["/app/celerydemo/models.py"], "/app/celerydemo/schedulers.py": ["/app/celerydemo/models.py"]}
17,566
rudra012/dj_celery_docker
refs/heads/master
/app/hello_django/celery_app.py
import os from celery import Celery from django.conf import settings # Set default Django settings os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'hello_django.settings') # os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'dcs.settings') app = Celery('hello_django') app.config_from_object('django.conf:settings') # a...
{"/app/celerydemo/tasks.py": ["/app/celerydemo/models.py"], "/app/celerydemo/admin.py": ["/app/celerydemo/models.py"], "/app/celerydemo/schedulers.py": ["/app/celerydemo/models.py"]}
17,567
rudra012/dj_celery_docker
refs/heads/master
/app/celerydemo/admin.py
from django.contrib import admin from django_celery_beat.admin import PeriodicTaskAdmin from django_celery_beat.models import SolarSchedule from .models import TaskLog, CustomPeriodicTask class CustomPeriodicTaskAdmin(PeriodicTaskAdmin): fieldsets = ( (None, { 'fields': ('name', 'description'...
{"/app/celerydemo/tasks.py": ["/app/celerydemo/models.py"], "/app/celerydemo/admin.py": ["/app/celerydemo/models.py"], "/app/celerydemo/schedulers.py": ["/app/celerydemo/models.py"]}
17,568
rudra012/dj_celery_docker
refs/heads/master
/app/celerydemo/migrations/0002_customperiodictask.py
# Generated by Django 2.2.1 on 2019-05-24 09:12 import django.contrib.postgres.fields.jsonb from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('django_celery_beat', '0011_auto_20190508_0153'), ('celerydemo', '0001_in...
{"/app/celerydemo/tasks.py": ["/app/celerydemo/models.py"], "/app/celerydemo/admin.py": ["/app/celerydemo/models.py"], "/app/celerydemo/schedulers.py": ["/app/celerydemo/models.py"]}
17,569
rudra012/dj_celery_docker
refs/heads/master
/app/celerydemo/schedules.py
from celery import schedules class my_crontab(schedules.crontab): def is_due(self, last_run_at): print('cron is_due: ', last_run_at) # if last_run_at - date # if True: # return schedules.schedstate(False, 5.0) rem_delta = self.remaining_estimate(last_run_at) rem...
{"/app/celerydemo/tasks.py": ["/app/celerydemo/models.py"], "/app/celerydemo/admin.py": ["/app/celerydemo/models.py"], "/app/celerydemo/schedulers.py": ["/app/celerydemo/models.py"]}
17,570
rudra012/dj_celery_docker
refs/heads/master
/app/celerydemo/apps.py
from django.apps import AppConfig class CelerydemoConfig(AppConfig): name = 'celerydemo'
{"/app/celerydemo/tasks.py": ["/app/celerydemo/models.py"], "/app/celerydemo/admin.py": ["/app/celerydemo/models.py"], "/app/celerydemo/schedulers.py": ["/app/celerydemo/models.py"]}
17,571
rudra012/dj_celery_docker
refs/heads/master
/app/celerydemo/schedulers.py
from __future__ import absolute_import, unicode_literals import datetime import math from celery import schedules from celery.utils.time import maybe_make_aware from dateutil.relativedelta import relativedelta from django.conf import settings from django_celery_beat.schedulers import ModelEntry, DatabaseScheduler fro...
{"/app/celerydemo/tasks.py": ["/app/celerydemo/models.py"], "/app/celerydemo/admin.py": ["/app/celerydemo/models.py"], "/app/celerydemo/schedulers.py": ["/app/celerydemo/models.py"]}
17,574
DevangML/Phoenix-The-Virtual-Assistant
refs/heads/main
/Phoenix/config/config.py
wolframalpha_id = "4LXRE2-TEHE99AKKJ" weather_api_key = "f73e77fa6efab5c5ec319e3732ce8eea"
{"/main.py": ["/gui.py", "/ui_splash_screen.py"]}
17,575
DevangML/Phoenix-The-Virtual-Assistant
refs/heads/main
/ui_splash_screen.py
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'splash_screen.ui' # # Created by: PyQt5 UI code generator 5.15.2 # # WARNING: Any manual changes made to this file will be lost when pyuic5 is # run again. Do not edit this file unless you know what you are doing. from PyQt5 import QtCore...
{"/main.py": ["/gui.py", "/ui_splash_screen.py"]}
17,576
DevangML/Phoenix-The-Virtual-Assistant
refs/heads/main
/main.py
import re import os import random import pprint import datetime import requests import pyjokes import time import pyautogui import pywhatkit import wolframalpha from PIL import Image from Phoenix import PhoenixAssistant from PyQt5.QtCore import * from PyQt5.QtGui import * from Phoenix.config import config from gui impo...
{"/main.py": ["/gui.py", "/ui_splash_screen.py"]}
17,577
DevangML/Phoenix-The-Virtual-Assistant
refs/heads/main
/Phoenix/features/google_search.py
from selenium import webdriver from selenium.webdriver.common.keys import Keys import re, pyttsx3 def speak(text): engine = pyttsx3.init('sapi5') voices = engine.getProperty('voices') engine.setProperty('voices', voices[0].id) engine.say(text) engine.runAndWait() engine.setProperty('rate', 18...
{"/main.py": ["/gui.py", "/ui_splash_screen.py"]}
17,578
DevangML/Phoenix-The-Virtual-Assistant
refs/heads/main
/gui.py
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'gui.ui' # # Created by: PyQt5 UI code generator 5.15.2 # # WARNING: Any manual changes made to this file will be lost when pyuic5 is # run again. Do not edit this file unless you know what you are doing. from PyQt5 import QtCore, QtGui, Q...
{"/main.py": ["/gui.py", "/ui_splash_screen.py"]}
17,591
Klas96/YeastTrack
refs/heads/master
/UserInterface/Controls.py
import cv2 from Anlysis.VisulizeLinage import PlotLinageTree from Anlysis.PrintMotherDoughter import printMotherDoghuther from UserInterface.UpdateFrame import updateFrame #TODO Make this the control class With method update class Controls: def __init__(self,video): self.video = video self.curre...
{"/UserInterface/Controls.py": ["/UserInterface/UpdateFrame.py"], "/Tracking/centroidTracker.py": ["/Segmentation/cellInstance.py", "/Tracking/TrackedCell.py"], "/UserInterface/LoadData/LoadChannels.py": ["/UserInterface/videoClass.py"], "/UserInterface/UpdateFrame.py": ["/UserInterface/IncreasIntesity.py"], "/Tracking...
17,592
Klas96/YeastTrack
refs/heads/master
/test.py
import unittest class TestStringMethods(unittest.TestCase): def test_segmentation(self): #TODO pass def test_something(self): #TODO pass def test_somethingElse(self): #TODO pass if __name__ == '__main__': unittest.main()
{"/UserInterface/Controls.py": ["/UserInterface/UpdateFrame.py"], "/Tracking/centroidTracker.py": ["/Segmentation/cellInstance.py", "/Tracking/TrackedCell.py"], "/UserInterface/LoadData/LoadChannels.py": ["/UserInterface/videoClass.py"], "/UserInterface/UpdateFrame.py": ["/UserInterface/IncreasIntesity.py"], "/Tracking...
17,593
Klas96/YeastTrack
refs/heads/master
/Tracking/centroidTracker.py
from scipy.spatial import distance as dist from collections import OrderedDict import numpy as np from Segmentation.cellInstance import cellInstance from Tracking.TrackedCell import TrackedCell #vaiabels #objects #disappeared #maxDisappeared class CentroidTracker(): #Constructor def __init__(self, maxDisappeared=...
{"/UserInterface/Controls.py": ["/UserInterface/UpdateFrame.py"], "/Tracking/centroidTracker.py": ["/Segmentation/cellInstance.py", "/Tracking/TrackedCell.py"], "/UserInterface/LoadData/LoadChannels.py": ["/UserInterface/videoClass.py"], "/UserInterface/UpdateFrame.py": ["/UserInterface/IncreasIntesity.py"], "/Tracking...
17,594
Klas96/YeastTrack
refs/heads/master
/Segmentation/cellInstance.py
import cv2 class cellInstance: def __init__(self,contour,whi5Activ = -1): self.whi5Activ = whi5Activ self.contour = contour def getPosition(self): moments = cv2.moments(self.contour) #TOOD Byt till funktioner ist?? cx = int(moments['m10']/moments['m00']) cy = ...
{"/UserInterface/Controls.py": ["/UserInterface/UpdateFrame.py"], "/Tracking/centroidTracker.py": ["/Segmentation/cellInstance.py", "/Tracking/TrackedCell.py"], "/UserInterface/LoadData/LoadChannels.py": ["/UserInterface/videoClass.py"], "/UserInterface/UpdateFrame.py": ["/UserInterface/IncreasIntesity.py"], "/Tracking...
17,595
Klas96/YeastTrack
refs/heads/master
/UserInterface/LoadData/LoadChannels.py
import cv2 from UserInterface.videoClass import Video def loadChannels(): filePathOpt = "VideoData/tileScan2/tileScan2OptZ2.avi" filePathFlo = "VideoData/tileScan2/tileScan2Flo.avi" filePathOpt = "/home/klas/Documents/Chalmers/ExamensArbete/YeastTrack/VideoData/tileScan1/130419opt.avi" filePathFlo = "...
{"/UserInterface/Controls.py": ["/UserInterface/UpdateFrame.py"], "/Tracking/centroidTracker.py": ["/Segmentation/cellInstance.py", "/Tracking/TrackedCell.py"], "/UserInterface/LoadData/LoadChannels.py": ["/UserInterface/videoClass.py"], "/UserInterface/UpdateFrame.py": ["/UserInterface/IncreasIntesity.py"], "/Tracking...
17,596
Klas96/YeastTrack
refs/heads/master
/Segmentation/ConvexHull.py
import cv2 import numpy as np #Pre: Binary image #Ret: ConvexHull Binary image def convexHull(img): # Finding contours for the thresholded image contours, hierarchy = cv2.findContours(img, cv2.RETR_TREE, cv2.CHAIN_APPROX_SIMPLE) #im2, contours, hierarchy = cv2.findContours(frame, cv2.RETR_TREE, cv2.CHAIN_A...
{"/UserInterface/Controls.py": ["/UserInterface/UpdateFrame.py"], "/Tracking/centroidTracker.py": ["/Segmentation/cellInstance.py", "/Tracking/TrackedCell.py"], "/UserInterface/LoadData/LoadChannels.py": ["/UserInterface/videoClass.py"], "/UserInterface/UpdateFrame.py": ["/UserInterface/IncreasIntesity.py"], "/Tracking...
17,597
Klas96/YeastTrack
refs/heads/master
/UserInterface/UpdateFrame.py
import cv2 from UserInterface.IncreasIntesity import increasIntens #Update Frame Does scaling and adds all visual effect #Pre #Ret def updateFrame(video,param): [currentFrame,currentBlend,showMaskImg,showCellID,showLinagesTree,showOptImg,showWHI5ActivImg] = param frame = video.getFrame(currentFrame) #opt...
{"/UserInterface/Controls.py": ["/UserInterface/UpdateFrame.py"], "/Tracking/centroidTracker.py": ["/Segmentation/cellInstance.py", "/Tracking/TrackedCell.py"], "/UserInterface/LoadData/LoadChannels.py": ["/UserInterface/videoClass.py"], "/UserInterface/UpdateFrame.py": ["/UserInterface/IncreasIntesity.py"], "/Tracking...
17,598
Klas96/YeastTrack
refs/heads/master
/Tracking/getEdgeToEdgeDist.py
def getSigmaEdegeToEdge(doughter,mother): distMD = getEdgeToEdgeDist(doughter,mother) #relatabelityFactor higher The closer the distance is to cellRadius slopeFactor = 1.3 midPoint = 140 sigmaDist = 1-1/(1+slopeFactor**(midPoint-distMD)) return(sigmaDist) def getEdgeToEdgeDist(doughter,mother):...
{"/UserInterface/Controls.py": ["/UserInterface/UpdateFrame.py"], "/Tracking/centroidTracker.py": ["/Segmentation/cellInstance.py", "/Tracking/TrackedCell.py"], "/UserInterface/LoadData/LoadChannels.py": ["/UserInterface/videoClass.py"], "/UserInterface/UpdateFrame.py": ["/UserInterface/IncreasIntesity.py"], "/Tracking...
17,599
Klas96/YeastTrack
refs/heads/master
/Tracking/findLineage.py
from scipy.spatial import distance as dist import numpy as np from matplotlib import pyplot as plt from Tracking.getEdgeToEdgeDist import getSigmaEdegeToEdge def findLineage(trackedCells): for doughter in trackedCells: maxRelFactor = 0.0 for mother in trackedCells: relFactor = getRelat...
{"/UserInterface/Controls.py": ["/UserInterface/UpdateFrame.py"], "/Tracking/centroidTracker.py": ["/Segmentation/cellInstance.py", "/Tracking/TrackedCell.py"], "/UserInterface/LoadData/LoadChannels.py": ["/UserInterface/videoClass.py"], "/UserInterface/UpdateFrame.py": ["/UserInterface/IncreasIntesity.py"], "/Tracking...
17,600
Klas96/YeastTrack
refs/heads/master
/Segmentation/Preprocessing.py
from skimage.restoration import denoise_nl_means, estimate_sigma from skimage import exposure import cv2 import numpy as np #Preprossesing of image using rescaling meanfiltering with sigma estimator and histogram equalization #Pre: image Raw #Ret: preprocessed image def preprocess(img): #Rescaling #img = resca...
{"/UserInterface/Controls.py": ["/UserInterface/UpdateFrame.py"], "/Tracking/centroidTracker.py": ["/Segmentation/cellInstance.py", "/Tracking/TrackedCell.py"], "/UserInterface/LoadData/LoadChannels.py": ["/UserInterface/videoClass.py"], "/UserInterface/UpdateFrame.py": ["/UserInterface/IncreasIntesity.py"], "/Tracking...
17,601
Klas96/YeastTrack
refs/heads/master
/Segmentation/watershed.py
import numpy as np import cv2 from matplotlib import pyplot as plt from Segmentation.cellInstance import cellInstance from Segmentation.getWHI5Activity import getWHI5Activity from Segmentation.FilterDetection import filterDetections from Segmentation.OstuBinarizartion import getMaskFrame from Segmentation.getThreshold ...
{"/UserInterface/Controls.py": ["/UserInterface/UpdateFrame.py"], "/Tracking/centroidTracker.py": ["/Segmentation/cellInstance.py", "/Tracking/TrackedCell.py"], "/UserInterface/LoadData/LoadChannels.py": ["/UserInterface/videoClass.py"], "/UserInterface/UpdateFrame.py": ["/UserInterface/IncreasIntesity.py"], "/Tracking...
17,602
Klas96/YeastTrack
refs/heads/master
/UserInterface/getInstantSegmentImage.py
import cv2 import numpy as np from UserInterface.getMaskImage import getMaskImage #color all the blobs with individual colors #Text size for all cells def getCellInstImage(listOfCellInstances,sizeX,sizeY): colorSet = [(0,7,100),(32,107,203),(237, 120, 255),(255, 170,0),(100,2,100)] drawing = np.zeros((sizeX,...
{"/UserInterface/Controls.py": ["/UserInterface/UpdateFrame.py"], "/Tracking/centroidTracker.py": ["/Segmentation/cellInstance.py", "/Tracking/TrackedCell.py"], "/UserInterface/LoadData/LoadChannels.py": ["/UserInterface/videoClass.py"], "/UserInterface/UpdateFrame.py": ["/UserInterface/IncreasIntesity.py"], "/Tracking...
17,603
Klas96/YeastTrack
refs/heads/master
/Segmentation/RandomForestSegmentaion.py
from Segmentation.ParmeterizeImagegs import imagesToPrameter import pickle import cv2 from matplotlib import pyplot as plt from Segmentation.ConectedComponents import conectedCompontents from Segmentation.FilterDetection import filterDetections #Pre: Frame #Ret: CellInstances in that frame def rfSegmentetion(Frame): ...
{"/UserInterface/Controls.py": ["/UserInterface/UpdateFrame.py"], "/Tracking/centroidTracker.py": ["/Segmentation/cellInstance.py", "/Tracking/TrackedCell.py"], "/UserInterface/LoadData/LoadChannels.py": ["/UserInterface/videoClass.py"], "/UserInterface/UpdateFrame.py": ["/UserInterface/IncreasIntesity.py"], "/Tracking...
17,604
Klas96/YeastTrack
refs/heads/master
/UserInterface/getMaskImage.py
import cv2 import numpy as np #Pre: VideoFrame #Ret: White on black maskFrame def getMaskImage(frame): frame = otsuThreshold(frame) maskFrame = convexHull(frame) return(maskFrame) def otsuThreshold(frame): gray = cv2.cvtColor(frame,cv2.COLOR_BGR2GRAY) #apply thresholding gotFrame, thresh = cv2...
{"/UserInterface/Controls.py": ["/UserInterface/UpdateFrame.py"], "/Tracking/centroidTracker.py": ["/Segmentation/cellInstance.py", "/Tracking/TrackedCell.py"], "/UserInterface/LoadData/LoadChannels.py": ["/UserInterface/videoClass.py"], "/UserInterface/UpdateFrame.py": ["/UserInterface/IncreasIntesity.py"], "/Tracking...
17,605
Klas96/YeastTrack
refs/heads/master
/Analysis/PrintMotherDoughter.py
def printMotherDoghuther(trackedCells): for trackedCell in trackedCells: doughterID = trackedCell.getCellID() motgherID = trackedCell.getMotherCell() relatabelityFactor = trackedCell.getRelatabelityFactor() print("M: " + str(motgherID) + " --> " + "D: " + str(doughterID)) pr...
{"/UserInterface/Controls.py": ["/UserInterface/UpdateFrame.py"], "/Tracking/centroidTracker.py": ["/Segmentation/cellInstance.py", "/Tracking/TrackedCell.py"], "/UserInterface/LoadData/LoadChannels.py": ["/UserInterface/videoClass.py"], "/UserInterface/UpdateFrame.py": ["/UserInterface/IncreasIntesity.py"], "/Tracking...
17,606
Klas96/YeastTrack
refs/heads/master
/Analysis/FitExponential.py
import numpy as np import scipy.optimize as op from matplotlib import pyplot as plt def func(x,const,rate): return(const*np.exp(rate*x)) def fitExponential(array): print(len(array)) fx = np.array(range(len(array))) fy = np.array(array) popt, pcov = op.curve_fit(func,fx,fy,p0=(fx[0], 0.1),maxfev =...
{"/UserInterface/Controls.py": ["/UserInterface/UpdateFrame.py"], "/Tracking/centroidTracker.py": ["/Segmentation/cellInstance.py", "/Tracking/TrackedCell.py"], "/UserInterface/LoadData/LoadChannels.py": ["/UserInterface/videoClass.py"], "/UserInterface/UpdateFrame.py": ["/UserInterface/IncreasIntesity.py"], "/Tracking...
17,607
Klas96/YeastTrack
refs/heads/master
/Analysis/getDevisionFrameNum.py
#Returnsfirst Whi5 activation Index def getDevisionFrameNum(doughter): thresh = 0.30 cellWhi5Trace = doughter.getWhi5Trace() index = 0 for whi5 in cellWhi5Trace: index = index + 1 if whi5 > thresh: index = index+doughter.getDetectionFrameNum() return(index)
{"/UserInterface/Controls.py": ["/UserInterface/UpdateFrame.py"], "/Tracking/centroidTracker.py": ["/Segmentation/cellInstance.py", "/Tracking/TrackedCell.py"], "/UserInterface/LoadData/LoadChannels.py": ["/UserInterface/videoClass.py"], "/UserInterface/UpdateFrame.py": ["/UserInterface/IncreasIntesity.py"], "/Tracking...
17,608
Klas96/YeastTrack
refs/heads/master
/UserInterface/getClassImage.py
import cv2 import numpy as np from UserInterface.getMaskImage import getMaskImage from UserInterface.rescaleImageToUser import rescaleImageToUser #color all the blobs with individual colors #Text size for all cells def getClassImage(listOfObjects,sizeX,sizeY): colorSet = [(0,7,100),(32,107,203),(237, 120, 255),(2...
{"/UserInterface/Controls.py": ["/UserInterface/UpdateFrame.py"], "/Tracking/centroidTracker.py": ["/Segmentation/cellInstance.py", "/Tracking/TrackedCell.py"], "/UserInterface/LoadData/LoadChannels.py": ["/UserInterface/videoClass.py"], "/UserInterface/UpdateFrame.py": ["/UserInterface/IncreasIntesity.py"], "/Tracking...
17,609
Klas96/YeastTrack
refs/heads/master
/Segmentation/getWHI5Activity.py
import cv2 import numpy as np #Pre1: Keypoint All cells #Pre2: Mask Frame With cells #Pre3: Florecent Chanell #Ret: Array with numberes corresponding to WHI5 Activity def getWHI5ActivityNorm(countour, floChan): #convexHull = cv2.ConvexHull2(countour,orientation=CV_CLOCKWISE, return_points=0) convexHull = cv2.c...
{"/UserInterface/Controls.py": ["/UserInterface/UpdateFrame.py"], "/Tracking/centroidTracker.py": ["/Segmentation/cellInstance.py", "/Tracking/TrackedCell.py"], "/UserInterface/LoadData/LoadChannels.py": ["/UserInterface/videoClass.py"], "/UserInterface/UpdateFrame.py": ["/UserInterface/IncreasIntesity.py"], "/Tracking...
17,610
Klas96/YeastTrack
refs/heads/master
/Segmentation/ConectedComponents.py
import cv2 from Segmentation.getWHI5Activity import getWHI5Activity from Segmentation.cellInstance import cellInstance def conectedCompontents(maskImg,floImg): conectedCompontents, hirearchy = cv2.findContours(maskImg, cv2.RETR_CCOMP, cv2.CHAIN_APPROX_SIMPLE) cellInstanses = [] for cnt in conectedComponten...
{"/UserInterface/Controls.py": ["/UserInterface/UpdateFrame.py"], "/Tracking/centroidTracker.py": ["/Segmentation/cellInstance.py", "/Tracking/TrackedCell.py"], "/UserInterface/LoadData/LoadChannels.py": ["/UserInterface/videoClass.py"], "/UserInterface/UpdateFrame.py": ["/UserInterface/IncreasIntesity.py"], "/Tracking...
17,611
Klas96/YeastTrack
refs/heads/master
/Analysis/AddBudsToMother.py
from Anlysis.getDevisionFrameNum import getDevisionFrameNum #Pre1: Mother Tracked CellTrackel #Pre2: list Doughters def addBudsToMother(mother,doughters): sizeTrace = mother.getSizesTraceFromBegining() for dought in doughters: deviNum = getDevisionFrameNum(dought) dughtSzTrc = dought.getSizesTr...
{"/UserInterface/Controls.py": ["/UserInterface/UpdateFrame.py"], "/Tracking/centroidTracker.py": ["/Segmentation/cellInstance.py", "/Tracking/TrackedCell.py"], "/UserInterface/LoadData/LoadChannels.py": ["/UserInterface/videoClass.py"], "/UserInterface/UpdateFrame.py": ["/UserInterface/IncreasIntesity.py"], "/Tracking...
17,612
Klas96/YeastTrack
refs/heads/master
/main.py
#Yeast Track Main import cv2 #from UserInterface.videoClass import Video from UserInterface.LoadData.LoadData import getVideo from UserInterface.LoadData.LoadtifFile import imortTiftoVideoNew from UserInterface.Controls import Controls from UserInterface.LoadData.ImportThreeZoomLevel import loadThreeZoomLevel from User...
{"/UserInterface/Controls.py": ["/UserInterface/UpdateFrame.py"], "/Tracking/centroidTracker.py": ["/Segmentation/cellInstance.py", "/Tracking/TrackedCell.py"], "/UserInterface/LoadData/LoadChannels.py": ["/UserInterface/videoClass.py"], "/UserInterface/UpdateFrame.py": ["/UserInterface/IncreasIntesity.py"], "/Tracking...
17,613
Klas96/YeastTrack
refs/heads/master
/UserInterface/rescaleImageToUser.py
import cv2 #Scale image For Visual Apropriate Size #Pre: image #Ret: Scaled image def rescaleImageToUser(img): prop = getScaleProprtion(img.shape) szX = int(img.shape[1]/prop) szY = int(img.shape[0]/prop) dim = (szX, szY) img = cv2.resize(img, dim, interpolation = cv2.INTER_AREA) return(img) #...
{"/UserInterface/Controls.py": ["/UserInterface/UpdateFrame.py"], "/Tracking/centroidTracker.py": ["/Segmentation/cellInstance.py", "/Tracking/TrackedCell.py"], "/UserInterface/LoadData/LoadChannels.py": ["/UserInterface/videoClass.py"], "/UserInterface/UpdateFrame.py": ["/UserInterface/IncreasIntesity.py"], "/Tracking...
17,614
Klas96/YeastTrack
refs/heads/master
/UserInterface/getIDImage.py
import cv2 import numpy as np from UserInterface.rescaleImageToUser import rescaleImageToUser from UserInterface.rescaleImageToUser import rescalePosToUser from UserInterface.rescaleImageToUser import rescaleCounur from Tracking.GetPositionFromContour import getPositionFromContour #Pre1: list of objects #Pre2: frame d...
{"/UserInterface/Controls.py": ["/UserInterface/UpdateFrame.py"], "/Tracking/centroidTracker.py": ["/Segmentation/cellInstance.py", "/Tracking/TrackedCell.py"], "/UserInterface/LoadData/LoadChannels.py": ["/UserInterface/videoClass.py"], "/UserInterface/UpdateFrame.py": ["/UserInterface/IncreasIntesity.py"], "/Tracking...
17,615
Klas96/YeastTrack
refs/heads/master
/Tracking/TrackedCell.py
import numpy as np from Segmentation.cellInstance import cellInstance class TrackedCell(): def __init__(self, cellInst = -1, cellID = -1,detectionFrameNum = -1): self.cellTrace = [] self.cellTrace.append(cellInst) self.cellID = cellID self.detectionFrameNum = detectionFrameNum self.motherID = None self.r...
{"/UserInterface/Controls.py": ["/UserInterface/UpdateFrame.py"], "/Tracking/centroidTracker.py": ["/Segmentation/cellInstance.py", "/Tracking/TrackedCell.py"], "/UserInterface/LoadData/LoadChannels.py": ["/UserInterface/videoClass.py"], "/UserInterface/UpdateFrame.py": ["/UserInterface/IncreasIntesity.py"], "/Tracking...
17,616
Klas96/YeastTrack
refs/heads/master
/Analysis/plotSize.py
from matplotlib import pyplot as plt #from Anlysis.plotSize import plotTrackCellSizeBudToMother from Anlysis.FitExponential import fitExponential from Anlysis.FitExponential import plotDataWithExpo from Anlysis.AddBudsToMother import addBudsToMother from Anlysis.PlotTrackedCellsSize import plotTrackedCellsSize #Pre1: ...
{"/UserInterface/Controls.py": ["/UserInterface/UpdateFrame.py"], "/Tracking/centroidTracker.py": ["/Segmentation/cellInstance.py", "/Tracking/TrackedCell.py"], "/UserInterface/LoadData/LoadChannels.py": ["/UserInterface/videoClass.py"], "/UserInterface/UpdateFrame.py": ["/UserInterface/IncreasIntesity.py"], "/Tracking...
17,617
Klas96/YeastTrack
refs/heads/master
/UserInterface/LoadData/getCropCoordinates.py
posList = [] def onMouse(event, x, y, flags, param): global posList if event == cv2.EVENT_LBUTTONDOWN: posList.append((x, y)) def getCropCoordinates(mats): #Get last image #Import Image Crop cv2.imshow("SelectCropPos",mats[-2]) cv2.setMouseCallback("SelectCropPos",onMouse) print(posL...
{"/UserInterface/Controls.py": ["/UserInterface/UpdateFrame.py"], "/Tracking/centroidTracker.py": ["/Segmentation/cellInstance.py", "/Tracking/TrackedCell.py"], "/UserInterface/LoadData/LoadChannels.py": ["/UserInterface/videoClass.py"], "/UserInterface/UpdateFrame.py": ["/UserInterface/IncreasIntesity.py"], "/Tracking...
17,618
Klas96/YeastTrack
refs/heads/master
/Segmentation/OstuBinarizartion.py
import cv2 import numpy as np from Segmentation.cellInstance import cellInstance from Segmentation.getWHI5Activity import getWHI5Activity from Segmentation.FilterDetection import filterDetections from Segmentation.getThreshold import getTherholdImage from Segmentation.Rescaling import rescaleImage from Segmentation.Con...
{"/UserInterface/Controls.py": ["/UserInterface/UpdateFrame.py"], "/Tracking/centroidTracker.py": ["/Segmentation/cellInstance.py", "/Tracking/TrackedCell.py"], "/UserInterface/LoadData/LoadChannels.py": ["/UserInterface/videoClass.py"], "/UserInterface/UpdateFrame.py": ["/UserInterface/IncreasIntesity.py"], "/Tracking...
17,619
Klas96/YeastTrack
refs/heads/master
/UserInterface/IncreasIntesity.py
import numpy as np import cv2 #Pre: frame #ret: Frame with higer intesity def incFloIntens(img,intens): intens = int(intens/10) #Check number of colors numCol = 3 intensImg = np.zeros((img.shape[0], img.shape[1], numCol), np.uint8) for i in range(intens): intensImg = cv2.add(intensImg,img) ...
{"/UserInterface/Controls.py": ["/UserInterface/UpdateFrame.py"], "/Tracking/centroidTracker.py": ["/Segmentation/cellInstance.py", "/Tracking/TrackedCell.py"], "/UserInterface/LoadData/LoadChannels.py": ["/UserInterface/videoClass.py"], "/UserInterface/UpdateFrame.py": ["/UserInterface/IncreasIntesity.py"], "/Tracking...
17,620
Klas96/YeastTrack
refs/heads/master
/Segmentation/FilterDetection.py
import cv2 import numpy as np #Pre: detections #Ret: Filtered Detections def filterDetections(cellInstances): maxSize = 210 minSize = 15 filterdList = [] for cellInst in cellInstances: size = cellInst.getSize() if size < maxSize and size > minSize: filterdList.append(cellIns...
{"/UserInterface/Controls.py": ["/UserInterface/UpdateFrame.py"], "/Tracking/centroidTracker.py": ["/Segmentation/cellInstance.py", "/Tracking/TrackedCell.py"], "/UserInterface/LoadData/LoadChannels.py": ["/UserInterface/videoClass.py"], "/UserInterface/UpdateFrame.py": ["/UserInterface/IncreasIntesity.py"], "/Tracking...
17,621
Klas96/YeastTrack
refs/heads/master
/Segmentation/ThersholdingSegmentation.py
from Segmentation.Preprocessing import preprocess from Segmentation.Preprocessing import preprocessFloImg import cv2 from matplotlib import pyplot as plt import numpy as np from Segmentation.cellInstance import cellInstance from Segmentation.getWHI5Activity import getWHI5Activity from Segmentation.FilterDetection impor...
{"/UserInterface/Controls.py": ["/UserInterface/UpdateFrame.py"], "/Tracking/centroidTracker.py": ["/Segmentation/cellInstance.py", "/Tracking/TrackedCell.py"], "/UserInterface/LoadData/LoadChannels.py": ["/UserInterface/videoClass.py"], "/UserInterface/UpdateFrame.py": ["/UserInterface/IncreasIntesity.py"], "/Tracking...
17,622
Klas96/YeastTrack
refs/heads/master
/UserInterface/LoadData/ImportThreeZoomLevel.py
from UserInterface.videoClass import Video import cv2 def loadThreeZoomLevel(): zom0Path = "VideoData/tileScan2/tileScan2OptZ0.avi" zom1Path = "VideoData/tileScan2/tileScan2OptZ1.avi" zom2Path = "VideoData/tileScan2/tileScan2OptZ2.avi" flo1Path = "VideoData/tileScan2/tileScan2Flo.avi" zom0Cap = cv...
{"/UserInterface/Controls.py": ["/UserInterface/UpdateFrame.py"], "/Tracking/centroidTracker.py": ["/Segmentation/cellInstance.py", "/Tracking/TrackedCell.py"], "/UserInterface/LoadData/LoadChannels.py": ["/UserInterface/videoClass.py"], "/UserInterface/UpdateFrame.py": ["/UserInterface/IncreasIntesity.py"], "/Tracking...
17,623
Klas96/YeastTrack
refs/heads/master
/Segmentation/LaplacianGausian.py
import cv2 from Segmentation.cellInstance import cellInstance import numpy as np from Segmentation.getWHI5Activity import getWHI5Activity from Segmentation.FilterDetection import filterDetections #from frameClass import rescale_frame #LAP MEthoth for segmentation of yeast cells. def laplacianGausian(frame): optFra...
{"/UserInterface/Controls.py": ["/UserInterface/UpdateFrame.py"], "/Tracking/centroidTracker.py": ["/Segmentation/cellInstance.py", "/Tracking/TrackedCell.py"], "/UserInterface/LoadData/LoadChannels.py": ["/UserInterface/videoClass.py"], "/UserInterface/UpdateFrame.py": ["/UserInterface/IncreasIntesity.py"], "/Tracking...
17,624
Klas96/YeastTrack
refs/heads/master
/UserInterface/LoadData/LoadtifFile.py
from UserInterface.videoClass import Video import cv2 def imortTiftoVideo(filePath): numChan = 2 numZoomLevles = 4 etval, mats = cv2.imreadmulti(filePath) #8 images for each frame #TODO Generalize allFrames = [] for matIndex in range(0,len(mats),8): frame = [] optChan = [] ...
{"/UserInterface/Controls.py": ["/UserInterface/UpdateFrame.py"], "/Tracking/centroidTracker.py": ["/Segmentation/cellInstance.py", "/Tracking/TrackedCell.py"], "/UserInterface/LoadData/LoadChannels.py": ["/UserInterface/videoClass.py"], "/UserInterface/UpdateFrame.py": ["/UserInterface/IncreasIntesity.py"], "/Tracking...
17,625
Klas96/YeastTrack
refs/heads/master
/UserInterface/LoadData/ConvertLiftoTif.py
import os def convertLifToTif(inPath, OutPath): cleanWorking = "rm ./VideoData/WorkingData/*" os.system(cleanWorking) series = 3 channel = 1 zoomLevel = 3 filePath = inPath #Cropping Coordinates ulx,uly = (0,0) drx,dry = (512,512) #Convering -lif file with bioformats #Usin...
{"/UserInterface/Controls.py": ["/UserInterface/UpdateFrame.py"], "/Tracking/centroidTracker.py": ["/Segmentation/cellInstance.py", "/Tracking/TrackedCell.py"], "/UserInterface/LoadData/LoadChannels.py": ["/UserInterface/videoClass.py"], "/UserInterface/UpdateFrame.py": ["/UserInterface/IncreasIntesity.py"], "/Tracking...
17,626
Klas96/YeastTrack
refs/heads/master
/UserInterface/LoadData/LoadData.py
import cv2 import numpy as np from matplotlib import pyplot as plt import os from UserInterface.videoClass import Video #from Tkinter import Tk #from tkinter.filedialog import askopenfilename #Displays the OME-XML metadata for a file on the console: #showinf -omexml /path/to/file #showinf -nopix /path/to/file #os.pop...
{"/UserInterface/Controls.py": ["/UserInterface/UpdateFrame.py"], "/Tracking/centroidTracker.py": ["/Segmentation/cellInstance.py", "/Tracking/TrackedCell.py"], "/UserInterface/LoadData/LoadChannels.py": ["/UserInterface/videoClass.py"], "/UserInterface/UpdateFrame.py": ["/UserInterface/IncreasIntesity.py"], "/Tracking...
17,627
Klas96/YeastTrack
refs/heads/master
/Analysis/VisulizeLinage.py
from matplotlib import pyplot as plt from scipy.cluster import hierarchy import numpy as np import networkx as nx from networkx.drawing.nx_agraph import graphviz_layout import matplotlib.pyplot as plt from Anlysis.visulizeLinNetworkX import plotNxTree #import PyQt5 #from ete3 import Tree #'from ete3 import TreeStyle # ...
{"/UserInterface/Controls.py": ["/UserInterface/UpdateFrame.py"], "/Tracking/centroidTracker.py": ["/Segmentation/cellInstance.py", "/Tracking/TrackedCell.py"], "/UserInterface/LoadData/LoadChannels.py": ["/UserInterface/videoClass.py"], "/UserInterface/UpdateFrame.py": ["/UserInterface/IncreasIntesity.py"], "/Tracking...
17,628
Klas96/YeastTrack
refs/heads/master
/Analysis/PlotTrackedCellsSize.py
from matplotlib import pyplot as plt from Anlysis.getDevisionFrameNum import getDevisionFrameNum def plotTrackedCellsSize(trackedCells): for trCell in trackedCells: deviNum = getDevisionFrameNum(trCell) trace = trCell.getSizesTraceFromBegining()[0:deviNum] plt.plot(range(len(trace)),trace)
{"/UserInterface/Controls.py": ["/UserInterface/UpdateFrame.py"], "/Tracking/centroidTracker.py": ["/Segmentation/cellInstance.py", "/Tracking/TrackedCell.py"], "/UserInterface/LoadData/LoadChannels.py": ["/UserInterface/videoClass.py"], "/UserInterface/UpdateFrame.py": ["/UserInterface/IncreasIntesity.py"], "/Tracking...
17,629
Klas96/YeastTrack
refs/heads/master
/Analysis/plotFunctions.py
from matplotlib import pyplot as plt from Anlysis.plotSize import plotTrackCellSizeBudToMother from Anlysis.VisulizeLinage import PlotLinageTree def plotFunction(trackedCells): cellToPlot = range(len(trackedCells)) #plotTrackCellSizeBudToMother(cellToPlot, trackedCells) #PlotLinageTree(trackedCells) pl...
{"/UserInterface/Controls.py": ["/UserInterface/UpdateFrame.py"], "/Tracking/centroidTracker.py": ["/Segmentation/cellInstance.py", "/Tracking/TrackedCell.py"], "/UserInterface/LoadData/LoadChannels.py": ["/UserInterface/videoClass.py"], "/UserInterface/UpdateFrame.py": ["/UserInterface/IncreasIntesity.py"], "/Tracking...
17,630
Klas96/YeastTrack
refs/heads/master
/Tracking/GetPositionFromContour.py
import cv2 def getPositionFromContour(contour): moments = cv2.moments(contour) #TOOD Byt till funktioner ist?? cx = int(moments['m10']/moments['m00']) cy = int(moments['m01']/moments['m00']) position = (cx,cy) return(position)
{"/UserInterface/Controls.py": ["/UserInterface/UpdateFrame.py"], "/Tracking/centroidTracker.py": ["/Segmentation/cellInstance.py", "/Tracking/TrackedCell.py"], "/UserInterface/LoadData/LoadChannels.py": ["/UserInterface/videoClass.py"], "/UserInterface/UpdateFrame.py": ["/UserInterface/IncreasIntesity.py"], "/Tracking...
17,631
Klas96/YeastTrack
refs/heads/master
/UserInterface/frameClass.py
from Segmentation.cellInstance import cellInstance import cv2 import numpy as np from Tracking.centroidTracker import CentroidTracker from Segmentation.OstuBinarizartion import OtsuBinarization from Segmentation.watershed import watershed from Segmentation.cellInstance import cellInstance from Segmentation.Laplacian...
{"/UserInterface/Controls.py": ["/UserInterface/UpdateFrame.py"], "/Tracking/centroidTracker.py": ["/Segmentation/cellInstance.py", "/Tracking/TrackedCell.py"], "/UserInterface/LoadData/LoadChannels.py": ["/UserInterface/videoClass.py"], "/UserInterface/UpdateFrame.py": ["/UserInterface/IncreasIntesity.py"], "/Tracking...
17,632
Klas96/YeastTrack
refs/heads/master
/Segmentation/getThreshold.py
import cv2 from Segmentation.FilterDetection import filterDetections import numpy as np #Threshold Image that #Pre: Frame objecet #Ret: Threshold Image def getTherholdImage(frame): optFrame = frame.getScaledOptChan() floFrame = frame.getScaledFloChan() gaussian = cv2.GaussianBlur(optFrame, (3, 3), 0) ...
{"/UserInterface/Controls.py": ["/UserInterface/UpdateFrame.py"], "/Tracking/centroidTracker.py": ["/Segmentation/cellInstance.py", "/Tracking/TrackedCell.py"], "/UserInterface/LoadData/LoadChannels.py": ["/UserInterface/videoClass.py"], "/UserInterface/UpdateFrame.py": ["/UserInterface/IncreasIntesity.py"], "/Tracking...
17,633
Klas96/YeastTrack
refs/heads/master
/Segmentation/Rescaling.py
import cv2 #Rescale for optimal analysis size #What is this size?? def rescaleImage(img,portion): width = int(img.shape[1] * portion) height = int(img.shape[0] * portion) dim = (width, height) return cv2.resize(img, dim, interpolation = cv2.INTER_AREA)
{"/UserInterface/Controls.py": ["/UserInterface/UpdateFrame.py"], "/Tracking/centroidTracker.py": ["/Segmentation/cellInstance.py", "/Tracking/TrackedCell.py"], "/UserInterface/LoadData/LoadChannels.py": ["/UserInterface/videoClass.py"], "/UserInterface/UpdateFrame.py": ["/UserInterface/IncreasIntesity.py"], "/Tracking...
17,634
Klas96/YeastTrack
refs/heads/master
/Tracking/filterTracking.py
#Pre: List of trackedCells #Ret: Filterd list with trackedCells def filterTrackedCells(trackedCells): trackedCells = filterByOpserLen(trackedCells) trackedCells = filterByMeanSize(trackedCells) return(trackedCells) def filterByOpserLen(trackedCells): filterdList = [] #Filter by observation length...
{"/UserInterface/Controls.py": ["/UserInterface/UpdateFrame.py"], "/Tracking/centroidTracker.py": ["/Segmentation/cellInstance.py", "/Tracking/TrackedCell.py"], "/UserInterface/LoadData/LoadChannels.py": ["/UserInterface/videoClass.py"], "/UserInterface/UpdateFrame.py": ["/UserInterface/IncreasIntesity.py"], "/Tracking...
17,635
Klas96/YeastTrack
refs/heads/master
/Segmentation/ParmeterizeImagegs.py
import numpy as np import cv2 import pandas as pd from scipy import ndimage as nd import gc def imagesToPrameter(optImgArr,floImgArr,maskImgArr = []): #Save Originals to DataFrame #img2 = img.reshape(-1) #print("loading Images") optImgReArr = [] floImgReArr = [] for imgIndex in range(len(optIm...
{"/UserInterface/Controls.py": ["/UserInterface/UpdateFrame.py"], "/Tracking/centroidTracker.py": ["/Segmentation/cellInstance.py", "/Tracking/TrackedCell.py"], "/UserInterface/LoadData/LoadChannels.py": ["/UserInterface/videoClass.py"], "/UserInterface/UpdateFrame.py": ["/UserInterface/IncreasIntesity.py"], "/Tracking...
17,636
Klas96/YeastTrack
refs/heads/master
/Segmentation/Denoising.py
#TODO #Write Method for denoising def denoiseImage(img): pass
{"/UserInterface/Controls.py": ["/UserInterface/UpdateFrame.py"], "/Tracking/centroidTracker.py": ["/Segmentation/cellInstance.py", "/Tracking/TrackedCell.py"], "/UserInterface/LoadData/LoadChannels.py": ["/UserInterface/videoClass.py"], "/UserInterface/UpdateFrame.py": ["/UserInterface/IncreasIntesity.py"], "/Tracking...
17,637
Klas96/YeastTrack
refs/heads/master
/UserInterface/videoClass.py
from UserInterface.frameClass import Frame #from Segmentation.cellInstance import cellInstance import cv2 import numpy as np from Tracking.centroidTracker import CentroidTracker from UserInterface.getIDImage import getIDImage from UserInterface.getClassImage import getClassImage from Tracking.findLineage import findLi...
{"/UserInterface/Controls.py": ["/UserInterface/UpdateFrame.py"], "/Tracking/centroidTracker.py": ["/Segmentation/cellInstance.py", "/Tracking/TrackedCell.py"], "/UserInterface/LoadData/LoadChannels.py": ["/UserInterface/videoClass.py"], "/UserInterface/UpdateFrame.py": ["/UserInterface/IncreasIntesity.py"], "/Tracking...
17,639
amaralunao/api_proxy
refs/heads/master
/api/constants.py
HOST = "https://demo.calendar42.com/api/v2/" API_TOKEN = "Token 5426034f09d8463684d5de9beea93ea34d214b65" headers = {"Accept": "application/json", "Content-type": "application/json", "Authorization": "{Token}".format(Token=API_TOKEN)}
{"/api/views.py": ["/api/utils.py"], "/api/utils.py": ["/api/constants.py"], "/api/urls.py": ["/api/views.py"]}
17,640
amaralunao/api_proxy
refs/heads/master
/api/views.py
from django.shortcuts import render from .utils import get_event_title, get_event_names from django.views.decorators.cache import cache_page @cache_page(60 * 4.2) def events_with_subscriptions(request, event_id): title = get_event_title(event_id) names = get_event_names(event_id) events_with_names_dict =...
{"/api/views.py": ["/api/utils.py"], "/api/utils.py": ["/api/constants.py"], "/api/urls.py": ["/api/views.py"]}
17,641
amaralunao/api_proxy
refs/heads/master
/api/utils.py
import requests from .constants import HOST, API_TOKEN, headers def get_event(event_id): url = HOST+"events/{EVENT_ID}/".format(EVENT_ID=event_id) return requests.get(url, headers=headers).json() def get_event_subscriptions(event_id): url = HOST+"event-subscriptions/?event_ids=[{EVENT_ID}]".format(EVEN...
{"/api/views.py": ["/api/utils.py"], "/api/utils.py": ["/api/constants.py"], "/api/urls.py": ["/api/views.py"]}
17,642
amaralunao/api_proxy
refs/heads/master
/api/urls.py
from django.conf.urls import url from .views import events_with_subscriptions urlpatterns = [ url(r'^events-with-subscriptions/(?P<event_id>[0-9a-fA-F_]+)/*', events_with_subscriptions, name='events-with-subscriptions'), ]
{"/api/views.py": ["/api/utils.py"], "/api/utils.py": ["/api/constants.py"], "/api/urls.py": ["/api/views.py"]}
17,644
wissemkhrarib/Bookstore---Django
refs/heads/main
/books/admin.py
from django.contrib import admin from .models import Book, Author class BookAdmin(admin.ModelAdmin): list_display = ('name', 'serie_number', 'author') class AuthorAdmin(admin.ModelAdmin): list_display = ('firstname', 'email') admin.site.register(Book, BookAdmin) admin.site.register(Author, AuthorAdmin)
{"/books/admin.py": ["/books/models.py"]}
17,645
wissemkhrarib/Bookstore---Django
refs/heads/main
/books/urls.py
from django.urls import path from books import views urlpatterns = [ path('', views.index), path('new', views.new) ]
{"/books/admin.py": ["/books/models.py"]}
17,646
wissemkhrarib/Bookstore---Django
refs/heads/main
/books/models.py
from django.db import models class Author(models.Model): firstname = models.CharField(max_length=255) lastname = models.CharField(max_length=255) email = models.EmailField() def __str__(self): return self.firstname+' '+self.lastname class Book(models.Model): name = models.CharField(max_...
{"/books/admin.py": ["/books/models.py"]}
17,647
Syvokobylenko/ProjectAutoHome
refs/heads/master
/gpio.py
class switchObject(): def __init__(self, channel): import machine self.pin = machine.Pin(channel, machine.Pin.OUT) self.state = "1" self.switch() def switch(self): if bool(int(self.state)): print("Turning OFF") self.pin.on() self.state ...
{"/socket_server.py": ["/TCP_socket_object.py"], "/boot.py": ["/read_file.py", "/TCP_socket_object.py"], "/esp8266 (1).py": ["/gpio.py", "/read_file.py", "/TCP_socket_object.py"]}
17,648
Syvokobylenko/ProjectAutoHome
refs/heads/master
/TCP_socket_object.py
class createConnection(): def __init__(self): import socket self.socket = socket.socket() def startServer(self,port,max_con): self.port = port self.socket.bind(('',self.port)) self.socket.listen(max_con) def client(self,IP,port): self.IP = IP self.po...
{"/socket_server.py": ["/TCP_socket_object.py"], "/boot.py": ["/read_file.py", "/TCP_socket_object.py"], "/esp8266 (1).py": ["/gpio.py", "/read_file.py", "/TCP_socket_object.py"]}
17,649
Syvokobylenko/ProjectAutoHome
refs/heads/master
/esp8266.py
import socket, machine def do_connect(ESSID,password): import network network.WLAN(network.AP_IF).active(False) sta_if = network.WLAN(network.STA_IF) if not sta_if.isconnected(): print("connecting to network...") sta_if.active(True) sta_if.connect(ESSID, password) while not sta_if.isconnected(): pass ...
{"/socket_server.py": ["/TCP_socket_object.py"], "/boot.py": ["/read_file.py", "/TCP_socket_object.py"], "/esp8266 (1).py": ["/gpio.py", "/read_file.py", "/TCP_socket_object.py"]}
17,650
Syvokobylenko/ProjectAutoHome
refs/heads/master
/socket_server.py
from TCP_socket_object import createConnection def node(con): while True: pc, pc_IP = con.socket.accept() print("New connection:", pc_IP) while True: try: print(con.recieve(None,10,pc)) except ConnectionResetError: print("Connection lo...
{"/socket_server.py": ["/TCP_socket_object.py"], "/boot.py": ["/read_file.py", "/TCP_socket_object.py"], "/esp8266 (1).py": ["/gpio.py", "/read_file.py", "/TCP_socket_object.py"]}
17,651
Syvokobylenko/ProjectAutoHome
refs/heads/master
/boot.py
import read_file, TCP_socket_object, wifi_connect, machine, time ipconfig = wifi_connect.do_connect(*read_file.credentialsRead("wifi.ini")) con = TCP_socket_object.createConnection() con.client(ipconfig[3],2198) pin = machine.Pin(0, machine.Pin.IN) while True: if not pin.value(): con.send('1') ti...
{"/socket_server.py": ["/TCP_socket_object.py"], "/boot.py": ["/read_file.py", "/TCP_socket_object.py"], "/esp8266 (1).py": ["/gpio.py", "/read_file.py", "/TCP_socket_object.py"]}
17,652
Syvokobylenko/ProjectAutoHome
refs/heads/master
/read_file.py
def credentialsRead(filename): file = open(filename,"r") f = file.read() f = f.split("\n") credentials = [] for line in f: credentials.append(line) file.close() return credentials
{"/socket_server.py": ["/TCP_socket_object.py"], "/boot.py": ["/read_file.py", "/TCP_socket_object.py"], "/esp8266 (1).py": ["/gpio.py", "/read_file.py", "/TCP_socket_object.py"]}
17,653
Syvokobylenko/ProjectAutoHome
refs/heads/master
/esp8266 (1).py
import gpio, read_file, TCP_socket_object, wifi_connect wifi_connect.do_connect(*read_file.credentialsRead("wifi.ini")) GPIO0Handler = gpio.switchObject(0) while True: data, addr = TCP_socket_object.server(2198) print ("Got connection from" + str(addr)) data.settimeout(5) while True: try: if not bool(int(dat...
{"/socket_server.py": ["/TCP_socket_object.py"], "/boot.py": ["/read_file.py", "/TCP_socket_object.py"], "/esp8266 (1).py": ["/gpio.py", "/read_file.py", "/TCP_socket_object.py"]}
17,654
Syvokobylenko/ProjectAutoHome
refs/heads/master
/inputsocket.py
import socket, time class connection: def __init__(self, IP, port): self.IP = IP self.port = port self.startConnection() def startConnection(self): self.s = socket.socket() try: self.s.connect((self.IP, self.port)) except(KeyboardInterrupt): exit def sendData(self, state): try: self.s.send(...
{"/socket_server.py": ["/TCP_socket_object.py"], "/boot.py": ["/read_file.py", "/TCP_socket_object.py"], "/esp8266 (1).py": ["/gpio.py", "/read_file.py", "/TCP_socket_object.py"]}