index int64 | repo_name string | branch_name string | path string | content string | import_graph string |
|---|---|---|---|---|---|
42,215 | JTopanotti/turing-machine | refs/heads/master | /backend/turing_machine.py | from backend.tables import *
class TuringMachine(object):
def __init__(self,
tape = "",
blank = " ",
initial_state = "",
final_states = None,
transition_table = None):
self.__tape = Tape(tape)
self.__head_position... | {"/backend/api.py": ["/backend/turing_machine.py"]} |
42,216 | JTopanotti/turing-machine | refs/heads/master | /backend/api.py | from flask import Flask, request, jsonify
from flask_cors import CORS
from .turing_machine import TuringMachine
from .tables import *
app = Flask(__name__)
CORS(app)
tables = {
"division": division_table,
"equals": equals_table
}
@app.route("/test")
def hello():
print("API Functioning normal... | {"/backend/api.py": ["/backend/turing_machine.py"]} |
42,227 | IanBurwell/PyCV | refs/heads/master | /PyCV/searchHistImgClassification.py | import numpy as np
import _pickle
import descriptors
import cv2
class Search:
def __init__(self, index):
self.index = index
def search(self, searchFeatures):
results = {}
for k,features in self.index.items():
#replace features with distances
d = self.distance(... | {"/PyCV/searchHistImgClassification.py": ["/descriptors.py"], "/OpenCVtesting.py": ["/disp_video.py", "/img_operations.py", "/helpers.py"], "/PyCV/calcHistImgClassification.py": ["/descriptors.py"], "/PyCV/camshift.py": ["/helpers.py"]} |
42,228 | IanBurwell/PyCV | refs/heads/master | /OpenCVtesting.py | import cv2
import numpy as np
from matplotlib import pyplot as plt
import disp_video
import img_operations as imop
import helpers
camera = cv2.VideoCapture(0)
helpers.set_hd(camera)
camera.release()
cv2.destroyAllWindows()
| {"/PyCV/searchHistImgClassification.py": ["/descriptors.py"], "/OpenCVtesting.py": ["/disp_video.py", "/img_operations.py", "/helpers.py"], "/PyCV/calcHistImgClassification.py": ["/descriptors.py"], "/PyCV/camshift.py": ["/helpers.py"]} |
42,229 | IanBurwell/PyCV | refs/heads/master | /PyCV/calcHistImgClassification.py | import cv2
import numpy as np
import _pickle
import glob
import descriptors
comped_imgs = {}
dataStore = "C:/Users/ian/Desktop/PyCV/PyCV/Resources/data/HistClassData"
imgs = ["C:/Users/ian/Desktop/PyCV/PyCV/Resources/pictures/Corgi","C:/Users/ian/Desktop/PyCV/PyCV/Resources/pictures/HotAirBalloon"]
desc = descriptor... | {"/PyCV/searchHistImgClassification.py": ["/descriptors.py"], "/OpenCVtesting.py": ["/disp_video.py", "/img_operations.py", "/helpers.py"], "/PyCV/calcHistImgClassification.py": ["/descriptors.py"], "/PyCV/camshift.py": ["/helpers.py"]} |
42,230 | IanBurwell/PyCV | refs/heads/master | /PyCV/camshift.py | import cv2
import numpy as np
import helpers
camera = cv2.VideoCapture(0)
helpers.set_hd(camera)
grabbed, frame = camera.read()
h, w, c = frame.shape
while cv2.waitKey(10) != ord("n"):
grabbed, frame = camera.read()
if not grabbed:
break
h, w, c = frame.shape
frame = cv2.rectangle(frame,(w/2... | {"/PyCV/searchHistImgClassification.py": ["/descriptors.py"], "/OpenCVtesting.py": ["/disp_video.py", "/img_operations.py", "/helpers.py"], "/PyCV/calcHistImgClassification.py": ["/descriptors.py"], "/PyCV/camshift.py": ["/helpers.py"]} |
42,231 | IanBurwell/PyCV | refs/heads/master | /descriptors.py | import cv2
import numpy as np
#descriptors are nice in classes, because we can set 1 property
#like num_bins for all the images that will use said descriptor
#defines imgs with 3D RGB Histogram
class RGBHist:
def __init__(self, num_bins):
self.bins = num_bins
def describe(self, img, mask=None):
... | {"/PyCV/searchHistImgClassification.py": ["/descriptors.py"], "/OpenCVtesting.py": ["/disp_video.py", "/img_operations.py", "/helpers.py"], "/PyCV/calcHistImgClassification.py": ["/descriptors.py"], "/PyCV/camshift.py": ["/helpers.py"]} |
42,232 | IanBurwell/PyCV | refs/heads/master | /img_operations.py | import cv2
import numpy as np
def single_color(img):
img = cv2.cvtColor(img, cv2.COLOR_BGR2HSV)
upper_b = np.array([64, 177, 231],np.uint8)
lower_b = np.array([37, 33, 114],np.uint8)
mask = cv2.inRange(img, lower_b, upper_b)
return mask
def blur_average(img,size=5):
kernel = np.ones((size,siz... | {"/PyCV/searchHistImgClassification.py": ["/descriptors.py"], "/OpenCVtesting.py": ["/disp_video.py", "/img_operations.py", "/helpers.py"], "/PyCV/calcHistImgClassification.py": ["/descriptors.py"], "/PyCV/camshift.py": ["/helpers.py"]} |
42,233 | IanBurwell/PyCV | refs/heads/master | /Projects/HistImgClassification.py | import cv2
import numpy as np
import cPickle
import glob
| {"/PyCV/searchHistImgClassification.py": ["/descriptors.py"], "/OpenCVtesting.py": ["/disp_video.py", "/img_operations.py", "/helpers.py"], "/PyCV/calcHistImgClassification.py": ["/descriptors.py"], "/PyCV/camshift.py": ["/helpers.py"]} |
42,234 | IanBurwell/PyCV | refs/heads/master | /helpers.py | import cv2
import numpy as np
def take_pic(camera):
retval, img = camera.read()
return img
def load_colortest():
return cv2.imread('E:\Folders\OpenCV\Resources\colortest.jpg')
def save_pic(img):
cv2.imwrite('E:\Folders\OpenCV\Resources\img.png',img)
def disp_pic(img, resize=False, wait=True):
if... | {"/PyCV/searchHistImgClassification.py": ["/descriptors.py"], "/OpenCVtesting.py": ["/disp_video.py", "/img_operations.py", "/helpers.py"], "/PyCV/calcHistImgClassification.py": ["/descriptors.py"], "/PyCV/camshift.py": ["/helpers.py"]} |
42,235 | IanBurwell/PyCV | refs/heads/master | /disp_video.py | import cv2
import numpy as np
def nothing(x):
pass
def disp_sliders_hsv(camera):
cv2.namedWindow('img')
cv2.createTrackbar('HMAX','img',0,179,nothing)
cv2.createTrackbar('HMIN','img',0,179,nothing)
cv2.createTrackbar('SMAX','img',0,255,nothing)
cv2.createTrackbar('SMIN','img',0,255,nothing)
... | {"/PyCV/searchHistImgClassification.py": ["/descriptors.py"], "/OpenCVtesting.py": ["/disp_video.py", "/img_operations.py", "/helpers.py"], "/PyCV/calcHistImgClassification.py": ["/descriptors.py"], "/PyCV/camshift.py": ["/helpers.py"]} |
42,236 | freanuperiaa/Simple-Stochastic-Traffic-Model | refs/heads/master | /stochmod.py |
import random
from datetime import datetime
import math
#use the instantaneous date as the seed for the
#pseudorandom number generation
random.seed(datetime.now())
#stochastic model
def calc():
time_delay = 0
event = random.random()
if(0.0<event<0.06):
time_delay = 0
elif(0.6<=event<0.21):
... | {"/montecarlo.py": ["/stochmod.py"], "/simulator.py": ["/stochmod.py"]} |
42,237 | freanuperiaa/Simple-Stochastic-Traffic-Model | refs/heads/master | /montecarlo.py | from stochmod import calc
import numpy as np
realizations = int(input('how many simulation runs: '))
results = np.zeros(realizations) #store the results of all the runs
no_occur = {
'no_45':0,
'no_30':0,
'no_10':0,
'no_0':0,
#add the dict elements below by removing the comments (if rain element i... | {"/montecarlo.py": ["/stochmod.py"], "/simulator.py": ["/stochmod.py"]} |
42,238 | freanuperiaa/Simple-Stochastic-Traffic-Model | refs/heads/master | /simulator.py | from stochmod import calc
import numpy as np
import matplotlib.pyplot as plt
from matplotlib import style
def simulate(realizations,pointOfItrs):
#this is basically a copy on the monte carlo simulation!
results = np.zeros(realizations) #store the results of all the runs
no_occur = {
'no_45... | {"/montecarlo.py": ["/stochmod.py"], "/simulator.py": ["/stochmod.py"]} |
42,239 | themsoum7/csgo-positioning-gcp | refs/heads/master | /server/economy_to_plot.py | import pandas as pd
import os
import matplotlib.pyplot as plt
def csvs_to_dfs(list_of_csv):
current_df = []
for csv in list_of_csv:
df = pd.read_csv(csv, index_col = 0)
current_df.append(df)
return current_df
def plot_t_economy(dataframe, csv_name):
# ax = plt.gca()
... | {"/server/server.py": ["/server/get_coordinates.py", "/server/split_demos_to_images.py", "/server/economy_to_plot.py"]} |
42,240 | themsoum7/csgo-positioning-gcp | refs/heads/master | /server/server.py | from flask import Flask, flash, request, redirect, url_for, render_template
from flask import send_from_directory
from server.get_coordinates import *
from werkzeug.utils import secure_filename
from server.split_demos_to_images import *
from server.economy_to_plot import *
import re
UPLOAD_FOLDER = '../uploads'
ALLOWE... | {"/server/server.py": ["/server/get_coordinates.py", "/server/split_demos_to_images.py", "/server/economy_to_plot.py"]} |
42,241 | themsoum7/csgo-positioning-gcp | refs/heads/master | /server/split_demos_to_images.py | #!/usr/bin/env python
# coding: utf-8
import pandas as pd
import os
import matplotlib.pyplot as plt
from matplotlib.patches import ConnectionPatch
def csvs_to_dfs(list_of_csv):
current_df = []
for csv in list_of_csv:
df = pd.read_csv(csv, index_col = 0)
current_df.append(df)
return c... | {"/server/server.py": ["/server/get_coordinates.py", "/server/split_demos_to_images.py", "/server/economy_to_plot.py"]} |
42,242 | themsoum7/csgo-positioning-gcp | refs/heads/master | /server/get_coordinates.py | from demoparser.demofile import DemoFile
import pandas as pd
import os
def get_coordinates():
def m_start(event, msg):
result.append("Match start")
def r_start(event, msg):
for idx, key in enumerate(event['event'].keys):
if key.name == 'objective':
object... | {"/server/server.py": ["/server/get_coordinates.py", "/server/split_demos_to_images.py", "/server/economy_to_plot.py"]} |
42,293 | yinwil27/Test | refs/heads/main | /Truck.py | import CSVReader
import HashMap
''''
loop through RolodexAddressOnly
start from Hub
call getDistance function for each element n RolodexAddressonly
find distance
assign minimum distance minDistance
find address for minDistance and deliver
repeat this for all addresses
if address is not in current truck, s... | {"/Truck.py": ["/CSVReader.py"], "/main.py": ["/CSVReader.py"]} |
42,294 | yinwil27/Test | refs/heads/main | /main.py | import csv
import CSVReader
import HashMap
FirstTime = CSVReader.Ride1[2]
o = min(str(FirstTime))
def dropOff1(packageCount):
while packageCount > 0:
print("dropoff")
print(o)
as_list = list(FirstTime)
as_list.pop[o]
packageCount - 1
print(dropOff1(12))
... | {"/Truck.py": ["/CSVReader.py"], "/main.py": ["/CSVReader.py"]} |
42,295 | yinwil27/Test | refs/heads/main | /CSVReader.py | import csv
import HashMap
GPSMatrix = []
# Read in csv file that is the mapping of distances between locations
with open('DistanceNumbers.csv') as csvfile:
readCSV2 = csv.reader(csvfile, delimiter=',')
readCSV2 = list(readCSV2)
for row in readCSV2:
GPS = [row[0], row[1], row[2], row[3], ... | {"/Truck.py": ["/CSVReader.py"], "/main.py": ["/CSVReader.py"]} |
42,297 | jean-mi-e/calc-mge-wxPython | refs/heads/master | /frame/txtvaclass.py | #!/usr/bin/env python3
# coding: utf-8
import wx
class Classtxtva(wx.Panel):
"""Classe du tk.Entry Taux de la TVA"""
def __init__(self, parent):
wx.Panel.__init__(self, parent)
self.lab_txtva = wx.StaticText(self, -1, "Taux de T.V.A.")
self.listTaux = ["20 %", "10 %", "5,50 %", "2,10 %", "0 %", ... | {"/frame/interface.py": ["/frame/pattcclass.py", "/frame/txtvaclass.py"], "/calc.py": ["/frame/interface.py"]} |
42,298 | jean-mi-e/calc-mge-wxPython | refs/heads/master | /frame/interface.py | #!/usr/bin/env python3
# coding: utf-8
import wx
import frame.fonctionscalculs as fc
import frame.mttmgeclass as mttmge
import frame.mtttvaclass as mtttva
import frame.pahtclass as paht
import frame.pattcclass as pattc
import frame.pvttcclass as pvttc
import frame.txmgeclass as txmge
import frame.txtvaclass a... | {"/frame/interface.py": ["/frame/pattcclass.py", "/frame/txtvaclass.py"], "/calc.py": ["/frame/interface.py"]} |
42,299 | jean-mi-e/calc-mge-wxPython | refs/heads/master | /calc.py | #!/usr/bin/env python3
# coding: utf-8
import frame.interface as itf
import wx
def main():
app = wx.App()
frame = itf.Interface(parent=None, id=-1)
frame.Show()
app.MainLoop()
if __name__ == "__main__":
main()
| {"/frame/interface.py": ["/frame/pattcclass.py", "/frame/txtvaclass.py"], "/calc.py": ["/frame/interface.py"]} |
42,300 | jean-mi-e/calc-mge-wxPython | refs/heads/master | /frame/pattcclass.py | #!/usr/bin/env python3
# coding: utf-8
import wx
class Classpattc(wx.Panel):
"""Classe du wx.TextCtrl Prix d'achat HT"""
def __init__(self, parent):
wx.Panel.__init__(self, parent)
self.lab_pattc = wx.StaticText(self, label="Prix d'achat T.T.C.")
self.pattc = wx.TextCtrl(... | {"/frame/interface.py": ["/frame/pattcclass.py", "/frame/txtvaclass.py"], "/calc.py": ["/frame/interface.py"]} |
42,302 | jaybaker/gaeutils | refs/heads/master | /gaeutils/__init__.py | import os
import time
from google.appengine.api import taskqueue, app_identity
from google.appengine.ext import ndb
__all__ = ['App',
'safe_enqueue',
'QueryExec',
'urlsafe',
'fanout',
'Stack',
'FutStack']
class _App(object):
"""
Encapsulates some basic identifying features
often... | {"/test/test_memcache_hook.py": ["/gaeutils/__init__.py"], "/gaeutils/caching.py": ["/gaeutils/__init__.py"], "/test/test_query_exec.py": ["/gaeutils/__init__.py"], "/gaeutils/fanout/__init__.py": ["/gaeutils/fanout/models.py"], "/test/tests.py": ["/gaeutils/__init__.py"], "/test/test_lock.py": ["/gaeutils/__init__.py"... |
42,303 | jaybaker/gaeutils | refs/heads/master | /test/test_memcache_hook.py | import tests
from google.appengine.api import memcache
class TestMemcacheNoHook(tests.TestBase):
"""
A baseline. A few simple memcache tests to compare
with the same tests with the hook in place.
"""
def setUp(self):
super(TestMemcacheNoHook, self).setUp()
memcache.set('foo', 'bar... | {"/test/test_memcache_hook.py": ["/gaeutils/__init__.py"], "/gaeutils/caching.py": ["/gaeutils/__init__.py"], "/test/test_query_exec.py": ["/gaeutils/__init__.py"], "/gaeutils/fanout/__init__.py": ["/gaeutils/fanout/models.py"], "/test/tests.py": ["/gaeutils/__init__.py"], "/test/test_lock.py": ["/gaeutils/__init__.py"... |
42,304 | jaybaker/gaeutils | refs/heads/master | /gaeutils/caching.py | from google.appengine.api import apiproxy_stub_map, memcache, modules
from google.appengine.ext import ndb
import logging
import gaeutils
class cachestate(ndb.Model):
"""
Use db to synchronize cache state.
"""
cleartime = ndb.IntegerProperty(default=0)
@classmethod
@ndb.transactional
def... | {"/test/test_memcache_hook.py": ["/gaeutils/__init__.py"], "/gaeutils/caching.py": ["/gaeutils/__init__.py"], "/test/test_query_exec.py": ["/gaeutils/__init__.py"], "/gaeutils/fanout/__init__.py": ["/gaeutils/fanout/models.py"], "/test/tests.py": ["/gaeutils/__init__.py"], "/test/test_lock.py": ["/gaeutils/__init__.py"... |
42,305 | jaybaker/gaeutils | refs/heads/master | /gaeutils/models.py |
from google.appengine.ext import ndb
class NoCache(ndb.Model):
"""
No cache mixin. Uses ndb cache policy.
"""
_use_cache = False
_use_memcache = False
class FauxFuture(object):
"""
Stand in when not really querying
"""
def __init__(self, data=None):
self.data = data
... | {"/test/test_memcache_hook.py": ["/gaeutils/__init__.py"], "/gaeutils/caching.py": ["/gaeutils/__init__.py"], "/test/test_query_exec.py": ["/gaeutils/__init__.py"], "/gaeutils/fanout/__init__.py": ["/gaeutils/fanout/models.py"], "/test/tests.py": ["/gaeutils/__init__.py"], "/test/test_lock.py": ["/gaeutils/__init__.py"... |
42,306 | jaybaker/gaeutils | refs/heads/master | /test/test_query_exec.py | from google.appengine.ext import ndb
import tests
import gaeutils
class EmptyModel(ndb.Model):
pass
class TestQueryExec(tests.TestBase):
def setUp(self):
super(TestQueryExec, self).setUp()
ndb.put_multi([tests.TestModel(number=i) for i in xrange(0, 30)])
self.query = tests.TestMode... | {"/test/test_memcache_hook.py": ["/gaeutils/__init__.py"], "/gaeutils/caching.py": ["/gaeutils/__init__.py"], "/test/test_query_exec.py": ["/gaeutils/__init__.py"], "/gaeutils/fanout/__init__.py": ["/gaeutils/fanout/models.py"], "/test/tests.py": ["/gaeutils/__init__.py"], "/test/test_lock.py": ["/gaeutils/__init__.py"... |
42,307 | jaybaker/gaeutils | refs/heads/master | /setup.py | from distutils.core import setup
setup(
name = 'gaeutils',
packages = ['gaeutils', 'gaeutils.fanout'],
version = '0.1',
description = 'Simple set of GAE utilities',
author = 'Jay Baker',
author_email = 'jbaker.work@gmail.com',
url = 'https://github.com/jaybaker/gaeutils',
download_url = 'https://github.... | {"/test/test_memcache_hook.py": ["/gaeutils/__init__.py"], "/gaeutils/caching.py": ["/gaeutils/__init__.py"], "/test/test_query_exec.py": ["/gaeutils/__init__.py"], "/gaeutils/fanout/__init__.py": ["/gaeutils/fanout/models.py"], "/test/tests.py": ["/gaeutils/__init__.py"], "/test/test_lock.py": ["/gaeutils/__init__.py"... |
42,308 | jaybaker/gaeutils | refs/heads/master | /gaeutils/fanout/__init__.py | from .models import Subscription
| {"/test/test_memcache_hook.py": ["/gaeutils/__init__.py"], "/gaeutils/caching.py": ["/gaeutils/__init__.py"], "/test/test_query_exec.py": ["/gaeutils/__init__.py"], "/gaeutils/fanout/__init__.py": ["/gaeutils/fanout/models.py"], "/test/tests.py": ["/gaeutils/__init__.py"], "/test/test_lock.py": ["/gaeutils/__init__.py"... |
42,309 | jaybaker/gaeutils | refs/heads/master | /test/tests.py | import unittest
from google.appengine.ext import ndb
from google.appengine.ext import testbed
from google.appengine.datastore import datastore_stub_util
import gaeutils
class TestModel(ndb.Model):
"""A model class used for testing."""
number = ndb.IntegerProperty(default=42)
text = ndb.StringProperty()
... | {"/test/test_memcache_hook.py": ["/gaeutils/__init__.py"], "/gaeutils/caching.py": ["/gaeutils/__init__.py"], "/test/test_query_exec.py": ["/gaeutils/__init__.py"], "/gaeutils/fanout/__init__.py": ["/gaeutils/fanout/models.py"], "/test/tests.py": ["/gaeutils/__init__.py"], "/test/test_lock.py": ["/gaeutils/__init__.py"... |
42,310 | jaybaker/gaeutils | refs/heads/master | /test/test_lock.py | from google.appengine.ext import ndb
import tests
import gaeutils
from gaeutils import locks
from gaeutils import models
class MyModel(models.NoCache):
val = ndb.IntegerProperty(default=0)
class TestLock(tests.TestBase):
def setUp(self):
super(TestLock, self).setUp()
def test_inc(self):
... | {"/test/test_memcache_hook.py": ["/gaeutils/__init__.py"], "/gaeutils/caching.py": ["/gaeutils/__init__.py"], "/test/test_query_exec.py": ["/gaeutils/__init__.py"], "/gaeutils/fanout/__init__.py": ["/gaeutils/fanout/models.py"], "/test/tests.py": ["/gaeutils/__init__.py"], "/test/test_lock.py": ["/gaeutils/__init__.py"... |
42,311 | jaybaker/gaeutils | refs/heads/master | /test/test_counters.py | from google.appengine.ext import ndb
import tests
import gaeutils
from gaeutils import counters
from gaeutils.counters import Counter
class TestCounters(tests.TestBase):
def setUp(self):
super(TestCounters, self).setUp()
def test_increment(self):
"""Happy path """
counters.increment(... | {"/test/test_memcache_hook.py": ["/gaeutils/__init__.py"], "/gaeutils/caching.py": ["/gaeutils/__init__.py"], "/test/test_query_exec.py": ["/gaeutils/__init__.py"], "/gaeutils/fanout/__init__.py": ["/gaeutils/fanout/models.py"], "/test/tests.py": ["/gaeutils/__init__.py"], "/test/test_lock.py": ["/gaeutils/__init__.py"... |
42,312 | jaybaker/gaeutils | refs/heads/master | /test/test_models.py | import tests
from google.appengine.ext import ndb
from google.appengine.api import memcache
from gaeutils import models
from gaeutils import Stack, FutStack
class NoCacheModel(tests.TestModel, models.NoCache):
pass
class TestNDBCache(tests.TestBase):
def setUp(self):
super(TestNDBCache, self).setUp(... | {"/test/test_memcache_hook.py": ["/gaeutils/__init__.py"], "/gaeutils/caching.py": ["/gaeutils/__init__.py"], "/test/test_query_exec.py": ["/gaeutils/__init__.py"], "/gaeutils/fanout/__init__.py": ["/gaeutils/fanout/models.py"], "/test/tests.py": ["/gaeutils/__init__.py"], "/test/test_lock.py": ["/gaeutils/__init__.py"... |
42,313 | jaybaker/gaeutils | refs/heads/master | /gaeutils/locks.py | from google.appengine.ext import ndb
from gaeutils import models
class Semaphore(models.NoCache):
"""
A small datastore entity as a semaphore.
Its mere presence is a signal.
"""
name = ndb.StringProperty(required=True)
@classmethod
@ndb.transactional
def get(cls, name):
key = ... | {"/test/test_memcache_hook.py": ["/gaeutils/__init__.py"], "/gaeutils/caching.py": ["/gaeutils/__init__.py"], "/test/test_query_exec.py": ["/gaeutils/__init__.py"], "/gaeutils/fanout/__init__.py": ["/gaeutils/fanout/models.py"], "/test/tests.py": ["/gaeutils/__init__.py"], "/test/test_lock.py": ["/gaeutils/__init__.py"... |
42,314 | jaybaker/gaeutils | refs/heads/master | /test/test_fanout.py | from google.appengine.ext import ndb
import tests
import gaeutils
from gaeutils import fanout
class SubscriptionTest(fanout.Subscription):
match = ndb.StringProperty()
class Subscriber(ndb.Model):
name = ndb.StringProperty()
class TestFanout(tests.TestBase):
def setUp(self):
super(TestFanout, s... | {"/test/test_memcache_hook.py": ["/gaeutils/__init__.py"], "/gaeutils/caching.py": ["/gaeutils/__init__.py"], "/test/test_query_exec.py": ["/gaeutils/__init__.py"], "/gaeutils/fanout/__init__.py": ["/gaeutils/fanout/models.py"], "/test/tests.py": ["/gaeutils/__init__.py"], "/test/test_lock.py": ["/gaeutils/__init__.py"... |
42,315 | jaybaker/gaeutils | refs/heads/master | /gaeutils/blob.py |
from google.appengine.ext.webapp import blobstore_handlers
import safe_enqueue
class UploadHandler(blobstore_handlers.BlobstoreUploadHandler):
"""
Normal front-end requests to GAE have a relatively low
timeout. This is fine for most requests. Sometimes
uploading a file like a spreadsheet or a big i... | {"/test/test_memcache_hook.py": ["/gaeutils/__init__.py"], "/gaeutils/caching.py": ["/gaeutils/__init__.py"], "/test/test_query_exec.py": ["/gaeutils/__init__.py"], "/gaeutils/fanout/__init__.py": ["/gaeutils/fanout/models.py"], "/test/tests.py": ["/gaeutils/__init__.py"], "/test/test_lock.py": ["/gaeutils/__init__.py"... |
42,316 | jaybaker/gaeutils | refs/heads/master | /gaeutils/fanout/models.py | import uuid
import base64
from google.appengine.api import taskqueue
from google.appengine.ext import ndb
from google.appengine.ext import deferred
from gaeutils import safe_enqueue
_SHARD_SIZE = 100 # subscribers per shard; this is like batch size
_SHARD_CHILDREN_LIMIT = 3 # limit children of shard
class... | {"/test/test_memcache_hook.py": ["/gaeutils/__init__.py"], "/gaeutils/caching.py": ["/gaeutils/__init__.py"], "/test/test_query_exec.py": ["/gaeutils/__init__.py"], "/gaeutils/fanout/__init__.py": ["/gaeutils/fanout/models.py"], "/test/tests.py": ["/gaeutils/__init__.py"], "/test/test_lock.py": ["/gaeutils/__init__.py"... |
42,317 | jaybaker/gaeutils | refs/heads/master | /gaeutils/counters.py | import hashlib
import random
from google.appengine.api import memcache
from google.appengine.ext import ndb
DEFAULT_NUM_SHARDS = 10
MAX_NUM_SHARDS = 30
SHARD_KEY_TEMPLATE = 'shard-{}-{:d}'
CACHE_COUNT_KEY = '_counters-{}'
CACHE_LIFE = 60*5
class ShardConfig(ndb.Model):
"""Tracks the number of shards for each n... | {"/test/test_memcache_hook.py": ["/gaeutils/__init__.py"], "/gaeutils/caching.py": ["/gaeutils/__init__.py"], "/test/test_query_exec.py": ["/gaeutils/__init__.py"], "/gaeutils/fanout/__init__.py": ["/gaeutils/fanout/models.py"], "/test/tests.py": ["/gaeutils/__init__.py"], "/test/test_lock.py": ["/gaeutils/__init__.py"... |
42,318 | deapplegate/astronomr | refs/heads/master | /astronomr/__init__.py | from flask import Flask
from flask.ext.sqlalchemy import SQLAlchemy
from flask.ext.creole import Creole
#############
### Set up app
app = Flask('astronomr', instance_relative_config=True) #look for things in the instance direcotry
app.config.from_object('astronomr.default_config')
app.config.from_pyfile('astronomr.cf... | {"/astronomr/views.py": ["/astronomr/__init__.py"], "/astronomr/model.py": ["/astronomr/__init__.py"], "/init_db.py": ["/astronomr/__init__.py"]} |
42,319 | deapplegate/astronomr | refs/heads/master | /astronomr/forms.py | from flask.ext.wtf import Form
from wtforms import StringField, DateTimeField, TextAreaField, validators
from wtforms.validators import DataRequired
###
class LoggedObservationForm(Form):
title = StringField('Title', validators=[DataRequired()])
timestamp = DateTimeField('Date & TIme', validators=[DataRequ... | {"/astronomr/views.py": ["/astronomr/__init__.py"], "/astronomr/model.py": ["/astronomr/__init__.py"], "/init_db.py": ["/astronomr/__init__.py"]} |
42,320 | deapplegate/astronomr | refs/heads/master | /astronomr/default_config.py | DEBUG = True
SECRET_KEY= 'messier 40 is a myth'
USERNAME = 'admin'
PASSWORD = 'default'
WTF_CSRF_ENABLED=True
#relative to instance folder
SQLALCHEMY_DATABASE_URI = 'sqlite:///astronomr.db'
| {"/astronomr/views.py": ["/astronomr/__init__.py"], "/astronomr/model.py": ["/astronomr/__init__.py"], "/init_db.py": ["/astronomr/__init__.py"]} |
42,321 | deapplegate/astronomr | refs/heads/master | /astronomr/views.py | import sqlite3
from flask import request, session, g, redirect, url_for, \
abort, render_template, flash
from contextlib import closing
from astronomr import app, db, model, forms
###########
### Views
@app.route('/object/<int:object_id>')
def show_object(object_id):
theobject = model.Object.query.g... | {"/astronomr/views.py": ["/astronomr/__init__.py"], "/astronomr/model.py": ["/astronomr/__init__.py"], "/init_db.py": ["/astronomr/__init__.py"]} |
42,322 | deapplegate/astronomr | refs/heads/master | /astronomr/model.py | from astronomr import db
#####
objects_observed = db.Table('objects_observed',
db.Column('logged_observation_id', db.Integer,
db.ForeignKey('logged_observation.id')),
db.Column('object_id', db.Integer, db.ForeignKey('object.id')))
####
class LoggedObse... | {"/astronomr/views.py": ["/astronomr/__init__.py"], "/astronomr/model.py": ["/astronomr/__init__.py"], "/init_db.py": ["/astronomr/__init__.py"]} |
42,323 | deapplegate/astronomr | refs/heads/master | /init_db.py | from astronomr import app, db
import os.path
db.create_all()
| {"/astronomr/views.py": ["/astronomr/__init__.py"], "/astronomr/model.py": ["/astronomr/__init__.py"], "/init_db.py": ["/astronomr/__init__.py"]} |
42,327 | DanielWinklehner/py_particle_processor | refs/heads/master | /py_particle_processor_qt/plotting.py | from py_particle_processor_qt.gui.plot_settings import Ui_PlotSettingsWindow
from py_particle_processor_qt.gui.default_plot_settings import Ui_DefaultPlotSettingsWindow
from PyQt5 import QtGui, QtWidgets, QtCore
import pyqtgraph as pg
import numpy as np
__author__ = "Philip Weigel, Daniel Winklehner"
__doc__ = """Plot... | {"/py_particle_processor_qt/plotting.py": ["/py_particle_processor_qt/gui/plot_settings.py", "/py_particle_processor_qt/gui/default_plot_settings.py"], "/py_particle_processor_qt/test/__main__.py": ["/py_particle_processor_qt/py_particle_processor_qt.py"], "/py_particle_processor_qt/tools/OrbitTool/OrbitTool.py": ["/py... |
42,328 | DanielWinklehner/py_particle_processor | refs/heads/master | /py_particle_processor_qt/tools/CollimOPAL/collimOPALgui.py | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'collimOPALgui.ui'
#
# Created by: PyQt5 UI code generator 5.6
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_CollimOPAL(object):
def setupUi(self, CollimOPAL):
Colli... | {"/py_particle_processor_qt/plotting.py": ["/py_particle_processor_qt/gui/plot_settings.py", "/py_particle_processor_qt/gui/default_plot_settings.py"], "/py_particle_processor_qt/test/__main__.py": ["/py_particle_processor_qt/py_particle_processor_qt.py"], "/py_particle_processor_qt/tools/OrbitTool/OrbitTool.py": ["/py... |
42,329 | DanielWinklehner/py_particle_processor | refs/heads/master | /py_particle_processor_qt/test/__main__.py | from py_particle_processor_qt.py_particle_processor_qt import PyParticleProcessor
ppp = PyParticleProcessor(debug=True)
ppp.run()
| {"/py_particle_processor_qt/plotting.py": ["/py_particle_processor_qt/gui/plot_settings.py", "/py_particle_processor_qt/gui/default_plot_settings.py"], "/py_particle_processor_qt/test/__main__.py": ["/py_particle_processor_qt/py_particle_processor_qt.py"], "/py_particle_processor_qt/tools/OrbitTool/OrbitTool.py": ["/py... |
42,330 | DanielWinklehner/py_particle_processor | refs/heads/master | /py_particle_processor_qt/tools/OrbitTool/OrbitTool.py | from ..abstract_tool import AbstractTool
from .orbittoolgui import Ui_OrbitToolGUI
from PyQt5 import QtGui
class OrbitTool(AbstractTool):
def __init__(self, parent):
super(OrbitTool, self).__init__(parent)
self._name = "Orbit Tool"
self._parent = parent
# --- Initialize the GUI -... | {"/py_particle_processor_qt/plotting.py": ["/py_particle_processor_qt/gui/plot_settings.py", "/py_particle_processor_qt/gui/default_plot_settings.py"], "/py_particle_processor_qt/test/__main__.py": ["/py_particle_processor_qt/py_particle_processor_qt.py"], "/py_particle_processor_qt/tools/OrbitTool/OrbitTool.py": ["/py... |
42,331 | DanielWinklehner/py_particle_processor | refs/heads/master | /py_particle_processor_qt/tools/abstract_tool.py | from abc import ABC, abstractmethod
# TODO: WIP
class AbstractTool(ABC):
def __init__(self, parent):
self._name = None
self._parent = parent
self._has_gui = False
self._need_selection = False
self._min_selections = 1
self._max_selections = 1
self._selecti... | {"/py_particle_processor_qt/plotting.py": ["/py_particle_processor_qt/gui/plot_settings.py", "/py_particle_processor_qt/gui/default_plot_settings.py"], "/py_particle_processor_qt/test/__main__.py": ["/py_particle_processor_qt/py_particle_processor_qt.py"], "/py_particle_processor_qt/tools/OrbitTool/OrbitTool.py": ["/py... |
42,332 | DanielWinklehner/py_particle_processor | refs/heads/master | /examples/gui_example.py | from py_particle_processor_qt.py_particle_processor_qt import PyParticleProcessor
ppp = PyParticleProcessor(debug=False)
ppp.run()
| {"/py_particle_processor_qt/plotting.py": ["/py_particle_processor_qt/gui/plot_settings.py", "/py_particle_processor_qt/gui/default_plot_settings.py"], "/py_particle_processor_qt/test/__main__.py": ["/py_particle_processor_qt/py_particle_processor_qt.py"], "/py_particle_processor_qt/tools/OrbitTool/OrbitTool.py": ["/py... |
42,333 | DanielWinklehner/py_particle_processor | refs/heads/master | /py_particle_processor_qt/drivers/TraceWinDriver/__init__.py | from py_particle_processor_qt.drivers.TraceWinDriver.TraceWinDriver import *
| {"/py_particle_processor_qt/plotting.py": ["/py_particle_processor_qt/gui/plot_settings.py", "/py_particle_processor_qt/gui/default_plot_settings.py"], "/py_particle_processor_qt/test/__main__.py": ["/py_particle_processor_qt/py_particle_processor_qt.py"], "/py_particle_processor_qt/tools/OrbitTool/OrbitTool.py": ["/py... |
42,334 | DanielWinklehner/py_particle_processor | refs/heads/master | /py_particle_processor_qt/tools/OrbitTool/orbittoolgui.py | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'orbittoolgui.ui'
#
# Created by: PyQt5 UI code generator 5.5.1
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_OrbitToolGUI(object):
def setupUi(self, OrbitToolGUI):
... | {"/py_particle_processor_qt/plotting.py": ["/py_particle_processor_qt/gui/plot_settings.py", "/py_particle_processor_qt/gui/default_plot_settings.py"], "/py_particle_processor_qt/test/__main__.py": ["/py_particle_processor_qt/py_particle_processor_qt.py"], "/py_particle_processor_qt/tools/OrbitTool/OrbitTool.py": ["/py... |
42,335 | DanielWinklehner/py_particle_processor | refs/heads/master | /py_particle_processor/drivers/OPALDriver/__init__.py | from OPALDriver import *
| {"/py_particle_processor_qt/plotting.py": ["/py_particle_processor_qt/gui/plot_settings.py", "/py_particle_processor_qt/gui/default_plot_settings.py"], "/py_particle_processor_qt/test/__main__.py": ["/py_particle_processor_qt/py_particle_processor_qt.py"], "/py_particle_processor_qt/tools/OrbitTool/OrbitTool.py": ["/py... |
42,336 | DanielWinklehner/py_particle_processor | refs/heads/master | /py_particle_processor_qt/drivers/OPALDriver/OPALDriver.py | from ..arraywrapper import ArrayWrapper
from ..abstractdriver import AbstractDriver
from dans_pymodules import IonSpecies
import numpy as np
import h5py
class OPALDriver(AbstractDriver):
def __init__(self, debug=False):
super(OPALDriver, self).__init__()
self._debug = debug
self._program_... | {"/py_particle_processor_qt/plotting.py": ["/py_particle_processor_qt/gui/plot_settings.py", "/py_particle_processor_qt/gui/default_plot_settings.py"], "/py_particle_processor_qt/test/__main__.py": ["/py_particle_processor_qt/py_particle_processor_qt.py"], "/py_particle_processor_qt/tools/OrbitTool/OrbitTool.py": ["/py... |
42,337 | DanielWinklehner/py_particle_processor | refs/heads/master | /py_particle_processor_qt/gui/generate_twiss.py | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'generate_twiss.ui'
#
# Created by: PyQt5 UI code generator 5.6
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_Generate_Twiss(object):
def setupUi(self, Generate_Twiss):
... | {"/py_particle_processor_qt/plotting.py": ["/py_particle_processor_qt/gui/plot_settings.py", "/py_particle_processor_qt/gui/default_plot_settings.py"], "/py_particle_processor_qt/test/__main__.py": ["/py_particle_processor_qt/py_particle_processor_qt.py"], "/py_particle_processor_qt/tools/OrbitTool/OrbitTool.py": ["/py... |
42,338 | DanielWinklehner/py_particle_processor | refs/heads/master | /py_particle_processor_qt/tools/AnimateXY/animateXYgui.py | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'animateXY.ui'
#
# Created by: PyQt5 UI code generator 5.6
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_Animate(object):
def setupUi(self, Animate):
Animate.setObje... | {"/py_particle_processor_qt/plotting.py": ["/py_particle_processor_qt/gui/plot_settings.py", "/py_particle_processor_qt/gui/default_plot_settings.py"], "/py_particle_processor_qt/test/__main__.py": ["/py_particle_processor_qt/py_particle_processor_qt.py"], "/py_particle_processor_qt/tools/OrbitTool/OrbitTool.py": ["/py... |
42,339 | DanielWinklehner/py_particle_processor | refs/heads/master | /py_particle_processor_qt/drivers/abstractdriver.py | from abc import ABC, abstractmethod
import os
# TODO: WIP -PW
class AbstractDriver(ABC):
def __init__(self):
self._program_name = None
self._debug = None
def get_program_name(self):
return self._program_name
@abstractmethod
def import_data(self, *args, **kwargs):
pas... | {"/py_particle_processor_qt/plotting.py": ["/py_particle_processor_qt/gui/plot_settings.py", "/py_particle_processor_qt/gui/default_plot_settings.py"], "/py_particle_processor_qt/test/__main__.py": ["/py_particle_processor_qt/py_particle_processor_qt.py"], "/py_particle_processor_qt/tools/OrbitTool/OrbitTool.py": ["/py... |
42,340 | DanielWinklehner/py_particle_processor | refs/heads/master | /py_particle_processor_qt/drivers/COMSOLDriver/COMSOLDriver.py | from ..arraywrapper import ArrayWrapper
from ..abstractdriver import AbstractDriver
from dans_pymodules import IonSpecies, clight
import numpy as np
class COMSOLDriver(AbstractDriver):
def __init__(self, debug=False):
super(COMSOLDriver, self).__init__()
# TODO: Currently using: (TIME [s], X [m], ... | {"/py_particle_processor_qt/plotting.py": ["/py_particle_processor_qt/gui/plot_settings.py", "/py_particle_processor_qt/gui/default_plot_settings.py"], "/py_particle_processor_qt/test/__main__.py": ["/py_particle_processor_qt/py_particle_processor_qt.py"], "/py_particle_processor_qt/tools/OrbitTool/OrbitTool.py": ["/py... |
42,341 | DanielWinklehner/py_particle_processor | refs/heads/master | /py_particle_processor_qt/drivers/IBSimuDriver/__init__.py | from py_particle_processor_qt.drivers.IBSimuDriver.IBSimuDriver import *
| {"/py_particle_processor_qt/plotting.py": ["/py_particle_processor_qt/gui/plot_settings.py", "/py_particle_processor_qt/gui/default_plot_settings.py"], "/py_particle_processor_qt/test/__main__.py": ["/py_particle_processor_qt/py_particle_processor_qt.py"], "/py_particle_processor_qt/tools/OrbitTool/OrbitTool.py": ["/py... |
42,342 | DanielWinklehner/py_particle_processor | refs/heads/master | /py_particle_processor_qt/tools/TranslateTool/__init__.py | from py_particle_processor_qt.tools.TranslateTool.TranslateTool import *
| {"/py_particle_processor_qt/plotting.py": ["/py_particle_processor_qt/gui/plot_settings.py", "/py_particle_processor_qt/gui/default_plot_settings.py"], "/py_particle_processor_qt/test/__main__.py": ["/py_particle_processor_qt/py_particle_processor_qt.py"], "/py_particle_processor_qt/tools/OrbitTool/OrbitTool.py": ["/py... |
42,343 | DanielWinklehner/py_particle_processor | refs/heads/master | /py_particle_processor/drivers/TraceWinDriver/TraceWinDriver.py | # import h5py
from dans_pymodules import IonSpecies
import numpy as np
class ArrayWrapper(object):
def __init__(self, array_like):
self._array = np.array(array_like)
@property
def value(self):
return self._array
class TraceWinDriver(object):
def __init__(self, debug=False):
... | {"/py_particle_processor_qt/plotting.py": ["/py_particle_processor_qt/gui/plot_settings.py", "/py_particle_processor_qt/gui/default_plot_settings.py"], "/py_particle_processor_qt/test/__main__.py": ["/py_particle_processor_qt/py_particle_processor_qt.py"], "/py_particle_processor_qt/tools/OrbitTool/OrbitTool.py": ["/py... |
42,344 | DanielWinklehner/py_particle_processor | refs/heads/master | /py_particle_processor_qt/tools/TranslateTool/TranslateTool.py | from ..abstract_tool import AbstractTool
from .translatetoolgui import Ui_TranslateToolGUI
from PyQt5 import QtGui
class TranslateTool(AbstractTool):
def __init__(self, parent):
super(TranslateTool, self).__init__(parent)
self._name = "Translate Tool"
self._parent = parent
# --- I... | {"/py_particle_processor_qt/plotting.py": ["/py_particle_processor_qt/gui/plot_settings.py", "/py_particle_processor_qt/gui/default_plot_settings.py"], "/py_particle_processor_qt/test/__main__.py": ["/py_particle_processor_qt/py_particle_processor_qt.py"], "/py_particle_processor_qt/tools/OrbitTool/OrbitTool.py": ["/py... |
42,345 | DanielWinklehner/py_particle_processor | refs/heads/master | /py_particle_processor_qt/drivers/FreeCADDriver/__init__.py | from py_particle_processor_qt.drivers.FreeCADDriver.FreeCADDriver import *
| {"/py_particle_processor_qt/plotting.py": ["/py_particle_processor_qt/gui/plot_settings.py", "/py_particle_processor_qt/gui/default_plot_settings.py"], "/py_particle_processor_qt/test/__main__.py": ["/py_particle_processor_qt/py_particle_processor_qt.py"], "/py_particle_processor_qt/tools/OrbitTool/OrbitTool.py": ["/py... |
42,346 | DanielWinklehner/py_particle_processor | refs/heads/master | /py_particle_processor_qt/tools/AnimateXY/AnimateXY.py | from ..abstract_tool import AbstractTool
from .animateXYgui import Ui_Animate
import numpy as np
import matplotlib.pyplot as plt
import matplotlib.animation as animation
from matplotlib.ticker import LinearLocator
from PyQt5.QtWidgets import QFileDialog, QMainWindow
# Note: This tool requires ffmpeg installation!!!
c... | {"/py_particle_processor_qt/plotting.py": ["/py_particle_processor_qt/gui/plot_settings.py", "/py_particle_processor_qt/gui/default_plot_settings.py"], "/py_particle_processor_qt/test/__main__.py": ["/py_particle_processor_qt/py_particle_processor_qt.py"], "/py_particle_processor_qt/tools/OrbitTool/OrbitTool.py": ["/py... |
42,347 | DanielWinklehner/py_particle_processor | refs/heads/master | /py_particle_processor_qt/gui/main_window.py | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'gui/main_window.ui'
#
# Created by: PyQt5 UI code generator 5.5.1
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_MainWindow(object):
def setupUi(self, MainWindow):
M... | {"/py_particle_processor_qt/plotting.py": ["/py_particle_processor_qt/gui/plot_settings.py", "/py_particle_processor_qt/gui/default_plot_settings.py"], "/py_particle_processor_qt/test/__main__.py": ["/py_particle_processor_qt/py_particle_processor_qt.py"], "/py_particle_processor_qt/tools/OrbitTool/OrbitTool.py": ["/py... |
42,348 | DanielWinklehner/py_particle_processor | refs/heads/master | /py_particle_processor_qt/dataset.py | # from dans_pymodules import IonSpecies
# import h5py
from dans_pymodules import *
from scipy import constants as const
from py_particle_processor_qt.drivers import *
__author__ = "Daniel Winklehner, Philip Weigel"
__doc__ = """A container that holds a single dataset with
multiple time steps and multiple particles pe... | {"/py_particle_processor_qt/plotting.py": ["/py_particle_processor_qt/gui/plot_settings.py", "/py_particle_processor_qt/gui/default_plot_settings.py"], "/py_particle_processor_qt/test/__main__.py": ["/py_particle_processor_qt/py_particle_processor_qt.py"], "/py_particle_processor_qt/tools/OrbitTool/OrbitTool.py": ["/py... |
42,349 | DanielWinklehner/py_particle_processor | refs/heads/master | /setup.py | from setuptools import setup, find_packages
setup(name='py_particle_processor',
version='0.1.3',
description='a GUI application to generate or load and export particle data for beam physics',
url='https://github.com/DanielWinklehner/py_particle_processor',
author='Daniel Winklehner, Philip Weig... | {"/py_particle_processor_qt/plotting.py": ["/py_particle_processor_qt/gui/plot_settings.py", "/py_particle_processor_qt/gui/default_plot_settings.py"], "/py_particle_processor_qt/test/__main__.py": ["/py_particle_processor_qt/py_particle_processor_qt.py"], "/py_particle_processor_qt/tools/OrbitTool/OrbitTool.py": ["/py... |
42,350 | DanielWinklehner/py_particle_processor | refs/heads/master | /py_particle_processor_qt/tools/OrbitTool/__init__.py | from py_particle_processor_qt.tools.OrbitTool.OrbitTool import *
| {"/py_particle_processor_qt/plotting.py": ["/py_particle_processor_qt/gui/plot_settings.py", "/py_particle_processor_qt/gui/default_plot_settings.py"], "/py_particle_processor_qt/test/__main__.py": ["/py_particle_processor_qt/py_particle_processor_qt.py"], "/py_particle_processor_qt/tools/OrbitTool/OrbitTool.py": ["/py... |
42,351 | DanielWinklehner/py_particle_processor | refs/heads/master | /py_particle_processor_qt/generator.py | import numpy as np
from PyQt5.QtWidgets import QMainWindow
from py_particle_processor_qt.gui.generate_main import Ui_Generate_Main
from py_particle_processor_qt.gui.generate_error import Ui_Generate_Error
from py_particle_processor_qt.gui.generate_envelope import Ui_Generate_Envelope
from py_particle_processor_qt.gui.g... | {"/py_particle_processor_qt/plotting.py": ["/py_particle_processor_qt/gui/plot_settings.py", "/py_particle_processor_qt/gui/default_plot_settings.py"], "/py_particle_processor_qt/test/__main__.py": ["/py_particle_processor_qt/py_particle_processor_qt.py"], "/py_particle_processor_qt/tools/OrbitTool/OrbitTool.py": ["/py... |
42,352 | DanielWinklehner/py_particle_processor | refs/heads/master | /py_particle_processor_qt/drivers/OPALDriver/__init__.py | from py_particle_processor_qt.drivers.OPALDriver.OPALDriver import *
| {"/py_particle_processor_qt/plotting.py": ["/py_particle_processor_qt/gui/plot_settings.py", "/py_particle_processor_qt/gui/default_plot_settings.py"], "/py_particle_processor_qt/test/__main__.py": ["/py_particle_processor_qt/py_particle_processor_qt.py"], "/py_particle_processor_qt/tools/OrbitTool/OrbitTool.py": ["/py... |
42,353 | DanielWinklehner/py_particle_processor | refs/heads/master | /py_particle_processor_qt/tools/BeamChar/BeamChar.py | from ..abstract_tool import AbstractTool
from PyQt5.QtWidgets import QFileDialog, QMainWindow
from .beamchargui import Ui_BeamChar
from matplotlib.ticker import LinearLocator, LogLocator
from matplotlib.ticker import FormatStrFormatter
import matplotlib.pyplot as plt
import numpy as np
import os
import re
""... | {"/py_particle_processor_qt/plotting.py": ["/py_particle_processor_qt/gui/plot_settings.py", "/py_particle_processor_qt/gui/default_plot_settings.py"], "/py_particle_processor_qt/test/__main__.py": ["/py_particle_processor_qt/py_particle_processor_qt.py"], "/py_particle_processor_qt/tools/OrbitTool/OrbitTool.py": ["/py... |
42,354 | DanielWinklehner/py_particle_processor | refs/heads/master | /py_particle_processor_qt/tools/AnimateXY/__init__.py | from py_particle_processor_qt.tools.AnimateXY.AnimateXY import *
| {"/py_particle_processor_qt/plotting.py": ["/py_particle_processor_qt/gui/plot_settings.py", "/py_particle_processor_qt/gui/default_plot_settings.py"], "/py_particle_processor_qt/test/__main__.py": ["/py_particle_processor_qt/py_particle_processor_qt.py"], "/py_particle_processor_qt/tools/OrbitTool/OrbitTool.py": ["/py... |
42,355 | DanielWinklehner/py_particle_processor | refs/heads/master | /py_particle_processor_qt/drivers/arraywrapper.py | import numpy as np
class ArrayWrapper(object):
def __init__(self, array_like):
if type(array_like) is not np.array:
self._array = np.array(array_like)
else:
self._array = array_like
def __get__(self):
return self
def __getitem__(self, key):
return... | {"/py_particle_processor_qt/plotting.py": ["/py_particle_processor_qt/gui/plot_settings.py", "/py_particle_processor_qt/gui/default_plot_settings.py"], "/py_particle_processor_qt/test/__main__.py": ["/py_particle_processor_qt/py_particle_processor_qt.py"], "/py_particle_processor_qt/tools/OrbitTool/OrbitTool.py": ["/py... |
42,356 | DanielWinklehner/py_particle_processor | refs/heads/master | /py_particle_processor_qt/tools/RotateTool/__init__.py | from py_particle_processor_qt.tools.RotateTool.RotateTool import *
| {"/py_particle_processor_qt/plotting.py": ["/py_particle_processor_qt/gui/plot_settings.py", "/py_particle_processor_qt/gui/default_plot_settings.py"], "/py_particle_processor_qt/test/__main__.py": ["/py_particle_processor_qt/py_particle_processor_qt.py"], "/py_particle_processor_qt/tools/OrbitTool/OrbitTool.py": ["/py... |
42,357 | DanielWinklehner/py_particle_processor | refs/heads/master | /py_particle_processor_qt/tools/__init__.py | from py_particle_processor_qt.tools.ScaleTool import *
from py_particle_processor_qt.tools.TranslateTool import *
from py_particle_processor_qt.tools.AnimateXY import *
from py_particle_processor_qt.tools.BeamChar import *
from py_particle_processor_qt.tools.CollimOPAL import *
from py_particle_processor_qt.tools.Orbit... | {"/py_particle_processor_qt/plotting.py": ["/py_particle_processor_qt/gui/plot_settings.py", "/py_particle_processor_qt/gui/default_plot_settings.py"], "/py_particle_processor_qt/test/__main__.py": ["/py_particle_processor_qt/py_particle_processor_qt.py"], "/py_particle_processor_qt/tools/OrbitTool/OrbitTool.py": ["/py... |
42,358 | DanielWinklehner/py_particle_processor | refs/heads/master | /py_particle_processor_qt/gui/generate_main.py | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'generate_main.ui'
#
# Created by: PyQt5 UI code generator 5.6
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_Generate_Main(object):
def setupUi(self, Generate_Main):
... | {"/py_particle_processor_qt/plotting.py": ["/py_particle_processor_qt/gui/plot_settings.py", "/py_particle_processor_qt/gui/default_plot_settings.py"], "/py_particle_processor_qt/test/__main__.py": ["/py_particle_processor_qt/py_particle_processor_qt.py"], "/py_particle_processor_qt/tools/OrbitTool/OrbitTool.py": ["/py... |
42,359 | DanielWinklehner/py_particle_processor | refs/heads/master | /py_particle_processor_qt/tools/BeamChar/__init__.py | from py_particle_processor_qt.tools.BeamChar.BeamChar import *
| {"/py_particle_processor_qt/plotting.py": ["/py_particle_processor_qt/gui/plot_settings.py", "/py_particle_processor_qt/gui/default_plot_settings.py"], "/py_particle_processor_qt/test/__main__.py": ["/py_particle_processor_qt/py_particle_processor_qt.py"], "/py_particle_processor_qt/tools/OrbitTool/OrbitTool.py": ["/py... |
42,360 | DanielWinklehner/py_particle_processor | refs/heads/master | /py_particle_processor_qt/drivers/TrackDriver/__init__.py | from py_particle_processor_qt.drivers.TrackDriver.TrackDriver import *
| {"/py_particle_processor_qt/plotting.py": ["/py_particle_processor_qt/gui/plot_settings.py", "/py_particle_processor_qt/gui/default_plot_settings.py"], "/py_particle_processor_qt/test/__main__.py": ["/py_particle_processor_qt/py_particle_processor_qt.py"], "/py_particle_processor_qt/tools/OrbitTool/OrbitTool.py": ["/py... |
42,361 | DanielWinklehner/py_particle_processor | refs/heads/master | /py_particle_processor_qt/tools/ScaleTool/scaletoolgui.py | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'tools/ScaleTool/scaletoolgui.ui'
#
# Created by: PyQt5 UI code generator 5.5.1
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_ScaleToolGUI(object):
def setupUi(self, ScaleTo... | {"/py_particle_processor_qt/plotting.py": ["/py_particle_processor_qt/gui/plot_settings.py", "/py_particle_processor_qt/gui/default_plot_settings.py"], "/py_particle_processor_qt/test/__main__.py": ["/py_particle_processor_qt/py_particle_processor_qt.py"], "/py_particle_processor_qt/tools/OrbitTool/OrbitTool.py": ["/py... |
42,362 | DanielWinklehner/py_particle_processor | refs/heads/master | /py_particle_processor_qt/gui/species_prompt.py | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'gui/species_prompt.ui'
#
# Created by: PyQt5 UI code generator 5.5.1
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_SpeciesPrompt(object):
def setupUi(self, SpeciesPrompt):
... | {"/py_particle_processor_qt/plotting.py": ["/py_particle_processor_qt/gui/plot_settings.py", "/py_particle_processor_qt/gui/default_plot_settings.py"], "/py_particle_processor_qt/test/__main__.py": ["/py_particle_processor_qt/py_particle_processor_qt.py"], "/py_particle_processor_qt/tools/OrbitTool/OrbitTool.py": ["/py... |
42,363 | DanielWinklehner/py_particle_processor | refs/heads/master | /py_particle_processor/drivers/__init__.py | from OPALDriver import *
from TraceWinDriver import *
"""
The driver mapping contains the information needed for the ImportExportDriver class to wrap around the drivers
"""
driver_mapping = {'OPAL': {'driver': OPALDriver,
'extensions': ['.h5']},
'TraceWin': {'driver': Trace... | {"/py_particle_processor_qt/plotting.py": ["/py_particle_processor_qt/gui/plot_settings.py", "/py_particle_processor_qt/gui/default_plot_settings.py"], "/py_particle_processor_qt/test/__main__.py": ["/py_particle_processor_qt/py_particle_processor_qt.py"], "/py_particle_processor_qt/tools/OrbitTool/OrbitTool.py": ["/py... |
42,364 | DanielWinklehner/py_particle_processor | refs/heads/master | /py_particle_processor_qt/gui/generate_envelope.py | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'generate_envelope.ui'
#
# Created by: PyQt5 UI code generator 5.6
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_Generate_Envelope(object):
def setupUi(self, Generate_Envelo... | {"/py_particle_processor_qt/plotting.py": ["/py_particle_processor_qt/gui/plot_settings.py", "/py_particle_processor_qt/gui/default_plot_settings.py"], "/py_particle_processor_qt/test/__main__.py": ["/py_particle_processor_qt/py_particle_processor_qt.py"], "/py_particle_processor_qt/tools/OrbitTool/OrbitTool.py": ["/py... |
42,365 | DanielWinklehner/py_particle_processor | refs/heads/master | /py_particle_processor/dataset.py | from dans_pymodules import *
# import h5py
from drivers import *
__author__ = "Daniel Winklehner"
__doc__ = """A container that holds a single dataset with
multiple time steps and multiple particles per time step. If the data
is too large for memory, it is automatically transferred into
a h5 file on disk to be opera... | {"/py_particle_processor_qt/plotting.py": ["/py_particle_processor_qt/gui/plot_settings.py", "/py_particle_processor_qt/gui/default_plot_settings.py"], "/py_particle_processor_qt/test/__main__.py": ["/py_particle_processor_qt/py_particle_processor_qt.py"], "/py_particle_processor_qt/tools/OrbitTool/OrbitTool.py": ["/py... |
42,366 | DanielWinklehner/py_particle_processor | refs/heads/master | /py_particle_processor_qt/__init__.py | from py_particle_processor_qt.py_particle_processor_qt import *
| {"/py_particle_processor_qt/plotting.py": ["/py_particle_processor_qt/gui/plot_settings.py", "/py_particle_processor_qt/gui/default_plot_settings.py"], "/py_particle_processor_qt/test/__main__.py": ["/py_particle_processor_qt/py_particle_processor_qt.py"], "/py_particle_processor_qt/tools/OrbitTool/OrbitTool.py": ["/py... |
42,367 | DanielWinklehner/py_particle_processor | refs/heads/master | /py_particle_processor_qt/gui/default_plot_settings.py | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'gui/default_plot_settings.ui'
#
# Created by: PyQt5 UI code generator 5.5.1
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_DefaultPlotSettingsWindow(object):
def setupUi(sel... | {"/py_particle_processor_qt/plotting.py": ["/py_particle_processor_qt/gui/plot_settings.py", "/py_particle_processor_qt/gui/default_plot_settings.py"], "/py_particle_processor_qt/test/__main__.py": ["/py_particle_processor_qt/py_particle_processor_qt.py"], "/py_particle_processor_qt/tools/OrbitTool/OrbitTool.py": ["/py... |
42,368 | DanielWinklehner/py_particle_processor | refs/heads/master | /py_particle_processor_qt/gui/plot_settings.py | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'gui/plot_settings.ui'
#
# Created by: PyQt5 UI code generator 5.5.1
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_PlotSettingsWindow(object):
def setupUi(self, PlotSettings... | {"/py_particle_processor_qt/plotting.py": ["/py_particle_processor_qt/gui/plot_settings.py", "/py_particle_processor_qt/gui/default_plot_settings.py"], "/py_particle_processor_qt/test/__main__.py": ["/py_particle_processor_qt/py_particle_processor_qt.py"], "/py_particle_processor_qt/tools/OrbitTool/OrbitTool.py": ["/py... |
42,369 | DanielWinklehner/py_particle_processor | refs/heads/master | /py_particle_processor/drivers/OPALDriver/OPALDriver.py | import h5py
from dans_pymodules import IonSpecies
class OPALDriver:
def __init__(self, debug=False):
self._debug = debug
self._program_name = "OPAL"
def get_program_name(self):
return self._program_name
def import_data(self, filename):
if self._debug:
print(... | {"/py_particle_processor_qt/plotting.py": ["/py_particle_processor_qt/gui/plot_settings.py", "/py_particle_processor_qt/gui/default_plot_settings.py"], "/py_particle_processor_qt/test/__main__.py": ["/py_particle_processor_qt/py_particle_processor_qt.py"], "/py_particle_processor_qt/tools/OrbitTool/OrbitTool.py": ["/py... |
42,370 | DanielWinklehner/py_particle_processor | refs/heads/master | /py_particle_processor_qt/gui/__init__.py | from py_particle_processor_qt.gui import * | {"/py_particle_processor_qt/plotting.py": ["/py_particle_processor_qt/gui/plot_settings.py", "/py_particle_processor_qt/gui/default_plot_settings.py"], "/py_particle_processor_qt/test/__main__.py": ["/py_particle_processor_qt/py_particle_processor_qt.py"], "/py_particle_processor_qt/tools/OrbitTool/OrbitTool.py": ["/py... |
42,371 | DanielWinklehner/py_particle_processor | refs/heads/master | /py_particle_processor_qt/drivers/COMSOLDriver/__init__.py | from py_particle_processor_qt.drivers.COMSOLDriver.COMSOLDriver import *
| {"/py_particle_processor_qt/plotting.py": ["/py_particle_processor_qt/gui/plot_settings.py", "/py_particle_processor_qt/gui/default_plot_settings.py"], "/py_particle_processor_qt/test/__main__.py": ["/py_particle_processor_qt/py_particle_processor_qt.py"], "/py_particle_processor_qt/tools/OrbitTool/OrbitTool.py": ["/py... |
42,372 | DanielWinklehner/py_particle_processor | refs/heads/master | /py_particle_processor_qt/tools/RotateTool/RotateTool.py | from ..abstract_tool import AbstractTool
from .rotatetoolgui import Ui_RotateToolGUI
from PyQt5 import QtGui
import numpy as np
class RotateTool(AbstractTool):
def __init__(self, parent):
super(RotateTool, self).__init__(parent)
self._name = "Rotate Tool"
self._parent = parent
# --... | {"/py_particle_processor_qt/plotting.py": ["/py_particle_processor_qt/gui/plot_settings.py", "/py_particle_processor_qt/gui/default_plot_settings.py"], "/py_particle_processor_qt/test/__main__.py": ["/py_particle_processor_qt/py_particle_processor_qt.py"], "/py_particle_processor_qt/tools/OrbitTool/OrbitTool.py": ["/py... |
42,373 | DanielWinklehner/py_particle_processor | refs/heads/master | /py_particle_processor_qt/tools/ScaleTool/ScaleTool.py | from ..abstract_tool import AbstractTool
from .scaletoolgui import Ui_ScaleToolGUI
from PyQt5 import QtGui
class ScaleTool(AbstractTool):
def __init__(self, parent):
super(ScaleTool, self).__init__(parent)
self._name = "Scale Tool"
self._parent = parent
# --- Initialize the GUI -... | {"/py_particle_processor_qt/plotting.py": ["/py_particle_processor_qt/gui/plot_settings.py", "/py_particle_processor_qt/gui/default_plot_settings.py"], "/py_particle_processor_qt/test/__main__.py": ["/py_particle_processor_qt/py_particle_processor_qt.py"], "/py_particle_processor_qt/tools/OrbitTool/OrbitTool.py": ["/py... |
42,374 | DanielWinklehner/py_particle_processor | refs/heads/master | /py_particle_processor_qt/tools/RotateTool/rotatetoolgui.py | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'rotatetoolgui.ui'
#
# Created by: PyQt5 UI code generator 5.5.1
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_RotateToolGUI(object):
def setupUi(self, RotateToolGUI):
... | {"/py_particle_processor_qt/plotting.py": ["/py_particle_processor_qt/gui/plot_settings.py", "/py_particle_processor_qt/gui/default_plot_settings.py"], "/py_particle_processor_qt/test/__main__.py": ["/py_particle_processor_qt/py_particle_processor_qt.py"], "/py_particle_processor_qt/tools/OrbitTool/OrbitTool.py": ["/py... |
42,375 | DanielWinklehner/py_particle_processor | refs/heads/master | /py_particle_processor_qt/tools/ScaleTool/__init__.py | from py_particle_processor_qt.tools.ScaleTool.ScaleTool import *
| {"/py_particle_processor_qt/plotting.py": ["/py_particle_processor_qt/gui/plot_settings.py", "/py_particle_processor_qt/gui/default_plot_settings.py"], "/py_particle_processor_qt/test/__main__.py": ["/py_particle_processor_qt/py_particle_processor_qt.py"], "/py_particle_processor_qt/tools/OrbitTool/OrbitTool.py": ["/py... |
42,376 | DanielWinklehner/py_particle_processor | refs/heads/master | /py_particle_processor/drivers/TraceWinDriver/__init__.py | from TraceWinDriver import *
| {"/py_particle_processor_qt/plotting.py": ["/py_particle_processor_qt/gui/plot_settings.py", "/py_particle_processor_qt/gui/default_plot_settings.py"], "/py_particle_processor_qt/test/__main__.py": ["/py_particle_processor_qt/py_particle_processor_qt.py"], "/py_particle_processor_qt/tools/OrbitTool/OrbitTool.py": ["/py... |
42,377 | DanielWinklehner/py_particle_processor | refs/heads/master | /py_particle_processor_qt/py_particle_processor_qt.py | from py_particle_processor_qt.dataset import *
from py_particle_processor_qt.gui.main_window import *
from py_particle_processor_qt.gui.species_prompt import *
from py_particle_processor_qt.plotting import *
from py_particle_processor_qt.generator import *
from py_particle_processor_qt.tools import *
from PyQt5.QtWidge... | {"/py_particle_processor_qt/plotting.py": ["/py_particle_processor_qt/gui/plot_settings.py", "/py_particle_processor_qt/gui/default_plot_settings.py"], "/py_particle_processor_qt/test/__main__.py": ["/py_particle_processor_qt/py_particle_processor_qt.py"], "/py_particle_processor_qt/tools/OrbitTool/OrbitTool.py": ["/py... |
42,378 | DanielWinklehner/py_particle_processor | refs/heads/master | /py_particle_processor_qt/drivers/TrackDriver/TrackDriver.py | from ..arraywrapper import ArrayWrapper
from ..abstractdriver import AbstractDriver
from dans_pymodules import IonSpecies
import numpy as np
from scipy import constants as const
clight = const.value("speed of light in vacuum")
class TrackDriver(AbstractDriver):
def __init__(self, debug=False):
super(Tra... | {"/py_particle_processor_qt/plotting.py": ["/py_particle_processor_qt/gui/plot_settings.py", "/py_particle_processor_qt/gui/default_plot_settings.py"], "/py_particle_processor_qt/test/__main__.py": ["/py_particle_processor_qt/py_particle_processor_qt.py"], "/py_particle_processor_qt/tools/OrbitTool/OrbitTool.py": ["/py... |
42,379 | DanielWinklehner/py_particle_processor | refs/heads/master | /py_particle_processor_qt/drivers/FreeCADDriver/FreeCADDriver.py | from ..abstractdriver import AbstractDriver
import numpy as np
import os
class FreeCADDriver(AbstractDriver):
def __init__(self, debug=False):
super(FreeCADDriver, self).__init__()
self._debug = debug
self._program_name = "FreeCAD"
def get_program_name(self):
return self._pro... | {"/py_particle_processor_qt/plotting.py": ["/py_particle_processor_qt/gui/plot_settings.py", "/py_particle_processor_qt/gui/default_plot_settings.py"], "/py_particle_processor_qt/test/__main__.py": ["/py_particle_processor_qt/py_particle_processor_qt.py"], "/py_particle_processor_qt/tools/OrbitTool/OrbitTool.py": ["/py... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.