repo_name
stringlengths 5
92
| path
stringlengths 4
232
| copies
stringclasses 19
values | size
stringlengths 4
7
| content
stringlengths 721
1.04M
| license
stringclasses 15
values | hash
int64 -9,223,277,421,539,062,000
9,223,102,107B
| line_mean
float64 6.51
99.9
| line_max
int64 15
997
| alpha_frac
float64 0.25
0.97
| autogenerated
bool 1
class |
---|---|---|---|---|---|---|---|---|---|---|
osuripple/pep.py | constants/packetIDs.py | 1 | 2252 | """Contain server and client packet IDs"""
client_changeAction = 0
client_sendPublicMessage = 1
client_logout = 2
client_requestStatusUpdate = 3
server_userID = 5
server_sendMessage = 7
server_userStats = 11
server_userLogout = 12
server_spectatorJoined = 13
server_spectatorLeft = 14
server_spectateFrames = 15
client_startSpectating = 16
client_stopSpectating = 17
client_spectateFrames = 18
client_cantSpectate = 21
server_spectatorCantSpectate = 22
server_notification = 24
client_sendPrivateMessage = 25
server_updateMatch = 26
server_newMatch = 27
server_disposeMatch = 28
client_partLobby = 29
client_joinLobby = 30
client_createMatch = 31
client_joinMatch = 32
client_partMatch = 33
server_matchJoinSuccess = 36
server_matchJoinFail = 37
client_matchChangeSlot = 38
client_matchReady = 39
client_matchLock = 40
client_matchChangeSettings = 41
server_fellowSpectatorJoined = 42
server_fellowSpectatorLeft = 43
client_matchStart = 44
server_matchStart = 46
client_matchScoreUpdate = 47
server_matchScoreUpdate = 48
client_matchComplete = 49
server_matchTransferHost = 50
client_matchChangeMods = 51
client_matchLoadComplete = 52
server_matchAllPlayersLoaded = 53
client_matchNoBeatmap = 54
client_matchNotReady = 55
client_matchFailed = 56
server_matchPlayerFailed = 57
server_matchComplete = 58
client_matchHasBeatmap = 59
client_matchSkipRequest = 60
server_matchSkip = 61
client_channelJoin = 63
server_channelJoinSuccess = 64
server_channelInfo = 65
server_channelKicked = 66
client_matchTransferHost = 70
server_supporterGMT = 71
server_friendsList = 72
client_friendAdd = 73
client_friendRemove = 74
server_protocolVersion = 75
server_mainMenuIcon = 76
client_matchChangeTeam = 77
client_channelPart = 78
server_matchPlayerSkipped = 81
client_setAwayMessage = 82
server_userPanel = 83
client_userStatsRequest = 85
server_restart = 86
client_invite = 87
server_invite = 88
server_channelInfoEnd = 89
client_matchChangePassword = 90
server_matchChangePassword = 91
server_silenceEnd = 92
server_userSilenced = 94
server_userPresenceBundle = 96
client_userPanelRequest = 97
client_tournamentMatchInfoRequest = 93
server_matchAbort = 106
server_switchServer = 107
client_tournamentJoinMatchChannel = 108
client_tournamentLeaveMatchChannel = 109 | agpl-3.0 | -4,469,825,997,374,263,000 | 25.821429 | 42 | 0.810835 | false |
faroit/loudness | python/tests/test_OME.py | 1 | 2084 | import numpy as np
import matplotlib.pyplot as plt
import loudness as ln
def plotResponse(freqPoints, dataPoints,
freqsInterp, responseInterp,
ylim=(-40, 10), title = ""):
if np.any(dataPoints):
plt.semilogx(freqPoints, dataPoints, 'o')
plt.semilogx(freqsInterp, responseInterp)
plt.xlim(20, 20e3)
plt.ylim(ylim)
plt.xlabel("Frequency, Hz")
plt.ylabel("Response, dB")
plt.title(title)
plt.show()
def plotMiddleEar(filterType, ylim=(-40, 0)):
freqs = np.arange(20, 20000, 2)
ome = ln.OME(filterType, ln.OME.NONE)
ome.interpolateResponse(freqs)
response = ome.getResponse()
freqPoints = ome.getMiddleEarFreqPoints()
dataPoints = ome.getMiddleEardB()
plotResponse(freqPoints, dataPoints,
freqs, response, ylim)
def plotOuterEar(filterType, ylim=(-40, 0)):
freqs = np.arange(20, 20000, 2)
ome = ln.OME(ln.OME.NONE, filterType)
ome.interpolateResponse(freqs)
response = ome.getResponse()
freqPoints = ome.getOuterEarFreqPoints()
dataPoints = ome.getOuterEardB()
plotResponse(freqPoints, dataPoints,
freqs, response, ylim)
def plotCombined(middleFilterType, outerFilterType, ylim=(-40, 10)):
freqs = np.arange(20, 20000, 2)
ome = ln.OME(middleFilterType, outerFilterType)
ome.interpolateResponse(freqs)
response = ome.getResponse()
plotResponse(None, None,
freqs, response, ylim)
plt.figure(1)
plotMiddleEar(ln.OME.ANSIS342007_MIDDLE_EAR, (-40, 0))
plt.figure(2)
plotMiddleEar(ln.OME.CHGM2011_MIDDLE_EAR, (-40, 10))
plt.figure(2)
plotMiddleEar(ln.OME.ANSIS342007_MIDDLE_EAR_HPF, (-40, 0))
plt.figure(3)
plotOuterEar(ln.OME.ANSIS342007_FREEFIELD, (-5, 20))
plt.figure(4)
plotOuterEar(ln.OME.ANSIS342007_DIFFUSEFIELD, (-5, 20))
plt.figure(5)
plotOuterEar(ln.OME.BD_DT990, (-10, 10))
plt.figure(6)
plotCombined(ln.OME.ANSIS342007_MIDDLE_EAR,
ln.OME.ANSIS342007_FREEFIELD, (-40, 10))
plt.figure(7)
plotCombined(ln.OME.ANSIS342007_MIDDLE_EAR, ln.OME.BD_DT990, (-40, 10))
| gpl-3.0 | -6,410,065,352,474,172,000 | 30.104478 | 71 | 0.678503 | false |
Boussadia/SimpleScraper | scraper.py | 1 | 6078 | #!/usr/bin/python
# -*- coding: utf-8 -*-
import time
import logging
import sys
import urllib
import mechanize
import cookielib
import urlparse
class Singleton(object):
_instances = {}
def __new__(class_, *args, **kwargs):
if class_ not in class_._instances:
class_._instances[class_] = super(Singleton, class_).__new__(class_, *args, **kwargs)
return class_._instances[class_]
class BaseScraper(Singleton):
"""
Base Crawler class.
The Crawler has to perform:
- GET methods
- POST methods
- handle cookies
In order to take into account for the network failures, it will handle a certain amount of retries.
Every time a page is fetched, it has to return a code as well, he are the definition of the codes:
- -1 : Network failure (after N number of attempts)
- 200 : every thing is ok
- 404 : page not found
- 500 : server error
"""
# The number of times the crawler has to retry to fetch html page when a network failure error occurs
MAX_NETWORK_FAILURE_TRIES = 10
INTERVAL = 2
# interval between 2 http request in seconds
def __init__(self):
# Mechanize Browser
self.browser = mechanize.Browser()
# Cookie Jar
self.jar = cookielib.LWPCookieJar()
self.browser.set_cookiejar(self.jar)
# Browser options
self.browser.set_handle_equiv(True)
# self.browser.set_handle_gzip(True)
self.browser.set_handle_redirect(True)
self.browser.set_handle_referer(True)
self.browser.set_handle_robots(False)
# Follows refresh 0 but not hangs on refresh > 0
self.browser.set_handle_refresh(mechanize._http.HTTPRefreshProcessor(), max_time=1)
self.__network_failures_retry__ = 0
# time of last http request
self.last_time = 0
def do_request(self, url ='', data = {}, request = None, is_post = False, url_fix = True):
"""
Base method to perform a request to a url.
Input :
- url (string) : url of page to retrive
- data (hash {'param': 'value_param'}) : data to send to server, if an empty hash, it is not taken into account
Output:
- (html, code) : html as string and code as defined in the class docstring.
"""
if url_fix:
# Making sure it is utf8 encoded
url = self.url_fix(url)
# Request cannot happen inside a cetain lapse of time (INTERVAL seconds in between)
now = time.time()
if now-self.last_time<BaseScraper.INTERVAL:
print 'Waiting %d ms in order not to flood server'%((BaseScraper.INTERVAL+self.last_time-now)*1000)
time.sleep(BaseScraper.INTERVAL+self.last_time-now)
return self.do_request( url, data, request, is_post= is_post, url_fix = url_fix)
self.last_time = now
# Encapsulating request in try block in order to catch HTTPError
try:
if request is not None:
self.jar.add_cookie_header(request)
response = self.browser.open(request)
print "Fetching page from "+response.geturl()
print "Using personalized Request"
html = response.read()
elif not is_post:
print "Fetching page from "+url
print "GET method used"
response = self.browser.open(url)
html = response.read()
else:
print "Fetching page from "+url
print "POST method used"
form_data = urllib.urlencode(data)
response = self.browser.open(url, form_data)
html = response.read()
self.__network_failures_retry__ = 0 # Everything went OK, setting variable for network failure to 0
return html, 200
except mechanize.HTTPError, e:
if e.code == 404:
print "Error when retrieving "+url+" : page not found."
return None, 404
else:
print 'Error : %s'%(e)
self.__network_failures_retry__ = self.__network_failures_retry__ + 1
if self.__network_failures_retry__ < BaseScraper.MAX_NETWORK_FAILURE_TRIES:
print "Error occured, retrying in "+str(self.__network_failures_retry__)+" s"
time.sleep(self.__network_failures_retry__)
return self.do_request(url, data, is_post = is_post, url_fix = url_fix)
else:
print "Error when retrieving "+url
return None, e.code
except mechanize.URLError, e:
print 'Error : %s'%(e)
self.__network_failures_retry__ = self.__network_failures_retry__ + 1
if self.__network_failures_retry__ < BaseScraper.MAX_NETWORK_FAILURE_TRIES:
print "Error occured, retrying in "+str(self.__network_failures_retry__)+" s"
time.sleep(self.__network_failures_retry__)
return self.do_request(url, data, is_post = is_post, url_fix = url_fix)
else:
print "Error when retrieving "+url
return None, -1
except Exception, e:
print 'Unexpected error occured.'
print e
return None, -1
def get(self,url, url_fix = True):
"""
Executes a GET url fetch.
"""
return self.do_request(url, url_fix = url_fix)
def post(self, url, data = {}, url_fix = True):
"""
Executes a POST url fetch.
"""
return self.do_request(url, data = data, is_post=True, url_fix = url_fix)
def empty_cookie_jar(self):
"""
Removing all cookies from cookie jar
"""
self.jar.clear()
def get_cookie(self, name = None):
"""
Get cookie by name
Input :
- name (string) : name of cookie.
Output :
- hash : {
'name': ...,
'value': ...
}
"""
cookie = {}
if name:
for c in self.jar:
if name == c.name:
cookie['name'] = c.name
cookie['value'] = c.value
return cookie
def url_fix(self, s, charset='utf-8'):
"""
Sometimes you get an URL by a user that just isn't a real
URL because it contains unsafe characters like ' ' and so on. This
function can fix some of the problems in a similar way browsers
handle data entered by the user:
>>> url_fix(u'http://de.wikipedia.org/wiki/Elf (Begriffsklärung)')
'http://de.wikipedia.org/wiki/Elf%20%28Begriffskl%C3%A4rung%29'
:param charset: The target charset for the URL if the url was
given as unicode string.
"""
if isinstance(s, unicode):
s = s.encode(charset, 'ignore')
scheme, netloc, path, qs, anchor = urlparse.urlsplit(s)
path = urllib.quote(path, '/%')
qs = urllib.quote_plus(qs, ':&=')
return urlparse.urlunsplit((scheme, netloc, path, qs, anchor))
| mit | 2,890,036,489,779,167,000 | 29.385 | 115 | 0.666776 | false |
lifenggg/assaydata | get_NDCG_test.py | 1 | 4798 | import math
import numpy
from os import path
def get_ndcg(test_path, pred_path):
test_rank = []
pred_rank = []
# all the return value
ndcg10 = 0
ndcg5 = 0
ndcgall = 0
if path.isfile(pred_path) == False:
return [0, 0, 0, 0]
with open(test_path) as fp:
for line in fp:
splits = line.split(' ')
test_rank.append(float(splits[0]))
with open(pred_path) as fp:
for line in fp:
pred_rank.append(float(line))
#print("test rank:", test_rank)
#print("prediction rank:", pred_rank)
#get the index of the sorted list
index_test = sorted(range(len(test_rank)), key=lambda k: test_rank[k], reverse =1)
#get the index of the sorted list in prediction
index_pred = sorted(range(len(pred_rank)), key=lambda k: pred_rank[k], reverse =1)
#print("test index after sorted based score",index_test)
#print("pred_index after sorted based score",index_pred)
#print("length is ", len(index_pred))
DCG = 0
#this best DCG is for normalization
best_DCG = 0
current_rank = 0
#this is index is for the best ranking
if len(index_test)!=len(index_pred):
print("prediction and test set should have the same length")
#print("n DCG max_DCG NDCG")
#this is the least and largest CID score
min_range = test_rank[index_test[len(index_test)-1]]
max_range = test_rank[index_test[0]]
#print("max_range:", max_range, "min_range", min_range)
for iter in range(0, len(index_pred)):
# a pointer to pred_set
i = index_pred[iter]
# a pointer to test_set
j = index_test[iter]
# actual score of this doc
# in the NDCG the score should normalized to 0~5, 0 for bad, 5 for exellent
#print(iter,"'s interation, i(pred):,j(test): =",test_rank[i], test_rank[j])
score = 5*(test_rank[i]-min_range)/(max_range-min_range)
best_score = 5*(test_rank[j]-min_range)/(max_range-min_range)
#score_best = 5*(x-min_range)/(max_range-min_range)
#score = (108.803-math.e**(-test_rank[i]))/20
#best_score = (108.803-math.e**(-test_rank[j]))/20
#print("score", score)
#print("best score",best_score)
Gain = 2**score-1
best_Gain = 2**best_score-1
#print("get gain:", Gain)
CG = (1/math.log(iter+2, 2))*Gain
best_CG = (1/math.log(iter+2, 2))*best_Gain
print("add CG :", CG)
print("add bestCG :", best_CG)
DCG += CG
best_DCG += best_CG
#print("DCG is :", DCG)
ndcg = DCG/best_DCG
if iter == 9:
ndcg10 = ndcg
if iter == 4:
ndcg5 = ndcg
if iter == len(index_pred)-1:
ndcgall = ndcg
#print(iter+1, DCG, best_DCG, DCG/best_DCG)
return [ndcg10, ndcg5, ndcgall, len(index_pred)]
if __name__ == "__main__":
for rank_function in [0]: # svm_rank:0 or svm_light:1
if rank_function == 0:
print 'for svm ranking \n'
output_path = 'NDCG_result/svm_rank.result'
else:
print 'for svm light \n'
output_path = 'NDCG_result/svm_light.result'
#f = open('assaylist', 'r')
#for line in f:
# for each assay in the assay list
#assayname = line[:-1]
assayname = '625248.csv.out.2'
ndcg10_this_assay = []
ndcg5_this_assay = []
ndcgall_this_assay = []
for fold_id in [4]:
mycase = assayname + '_' +str(fold_id)
test_path = 'testdata/' + mycase + '.test'
if rank_function == 0:
pred_path = 'svm_rank_pred/' + mycase + '.pred'
else:
pred_path = 'svm_light_pred/' + mycase + '.pred'
[ndcg10,ndcg5,ndcgall, rank_length] = get_ndcg(test_path, pred_path)
if ndcg10 != 0:
ndcg10_this_assay.append(ndcg10)
if ndcg5 != 0:
ndcg5_this_assay.append(ndcg5)
if ndcgall != 0:
ndcgall_this_assay.append(ndcgall)
# average of the ndcg
avg_ndcg10 = numpy.average(ndcg10_this_assay)
avg_ndcg5 = numpy.average(ndcg5_this_assay)
avg_ndcgall= numpy.average(ndcgall_this_assay)
#variance of the ndcg
var_ndcg10 = numpy.var(ndcg10_this_assay)
var_ndcg5 = numpy.var(ndcg5_this_assay)
var_ndcgall = numpy.var(ndcgall_this_assay)
print assayname + ' ' + str(rank_length)+ ' 5 ' + str(avg_ndcg5) + ' ' + str(var_ndcg5)
print assayname + ' ' + str(rank_length)+ ' 10 ' + str(avg_ndcg10) + ' ' + str(var_ndcg10)
print assayname + ' ' + str(rank_length)+ ' all ' + str(avg_ndcgall) + ' ' + str(var_ndcgall)
| gpl-2.0 | -433,785,717,492,918,340 | 26.895349 | 101 | 0.552313 | false |
awemulya/fieldsight-kobocat | onadata/apps/fsforms/models.py | 1 | 37515 | from __future__ import unicode_literals
import datetime
import os
import json
import re
from django.contrib.auth.models import User
from django.contrib.contenttypes.fields import GenericRelation
from django.contrib.postgres.fields import ArrayField
from django.core.exceptions import ValidationError
from django.core.urlresolvers import reverse
from django.db import models
from django.db.models import Max
from django.db.models.signals import post_save, pre_delete
from django.utils.translation import ugettext_lazy as _
from django.dispatch import receiver
from jsonfield import JSONField
from pyxform import create_survey_from_xls, SurveyElementBuilder
from pyxform.xform2json import create_survey_element_from_xml
from xml.dom import Node
from onadata.apps.fieldsight.models import Site, Project, Organization
from onadata.apps.fsforms.fieldsight_models import IntegerRangeField
from onadata.apps.fsforms.utils import send_message, send_message_project_form, check_version
from onadata.apps.logger.models import XForm, Instance
from onadata.apps.logger.xform_instance_parser import clean_and_parse_xml
from onadata.apps.viewer.models import ParsedInstance
from onadata.apps.fsforms.fsxform_responses import get_instances_for_field_sight_form
from onadata.settings.local_settings import XML_VERSION_MAX_ITER
#To get domain to give complete url for app devs to make them easier.
from django.contrib.sites.models import Site as DjangoSite
from onadata.libs.utils.model_tools import set_uuid
SHARED_LEVEL = [(0, 'Global'), (1, 'Organization'), (2, 'Project'),]
SCHEDULED_LEVEL = [(0, 'Daily'), (1, 'Weekly'), (2, 'Monthly'),]
FORM_STATUS = [(0, 'Pending'), (1, 'Rejected'), (2, 'Flagged'), (3, 'Approved'), ]
class FormGroup(models.Model):
name = models.CharField(max_length=256, unique=True)
description = models.TextField(blank=True, null=True)
date_created = models.DateTimeField(auto_now_add=True)
date_modified = models.DateTimeField(auto_now=True)
creator = models.ForeignKey(User, related_name="form_group")
is_global = models.BooleanField(default=False)
organization = models.ForeignKey(Organization, null=True, blank=True)
project = models.ForeignKey(Project, null=True, blank=True)
logs = GenericRelation('eventlog.FieldSightLog')
class Meta:
db_table = 'fieldsight_forms_group'
verbose_name = _("FieldSight Form Group")
verbose_name_plural = _("FieldSight Form Groups")
ordering = ("-date_modified",)
def __unicode__(self):
return getattr(self, "name", "")
class Stage(models.Model):
name = models.CharField(max_length=256)
description = models.TextField(blank=True, null=True)
group = models.ForeignKey(FormGroup,related_name="stage", null=True, blank=True)
order = IntegerRangeField(min_value=0, max_value=30,default=0)
stage = models.ForeignKey('self', blank=True, null=True, related_name="parent")
shared_level = models.IntegerField(default=2, choices=SHARED_LEVEL)
date_created = models.DateTimeField(auto_now_add=True)
date_modified = models.DateTimeField(auto_now=True)
site = models.ForeignKey(Site, related_name="stages", null=True, blank=True)
project = models.ForeignKey(Project, related_name="stages", null=True, blank=True)
ready = models.BooleanField(default=False)
project_stage_id = models.IntegerField(default=0)
weight = models.IntegerField(default=0)
tags = ArrayField(models.IntegerField(), default=[])
logs = GenericRelation('eventlog.FieldSightLog')
class Meta:
db_table = 'fieldsight_forms_stage'
verbose_name = _("FieldSight Form Stage")
verbose_name_plural = _("FieldSight Form Stages")
ordering = ("order",)
def save(self, *args, **kwargs):
if self.stage:
self.group = self.stage.group
super(Stage, self).save(*args, **kwargs)
def get_display_name(self):
return "Stage" if not self.stage else "SubStage"
def is_main_stage(self):
return True if not self.stage else False
def sub_stage_count(self):
if not self.stage:
return Stage.objects.filter(stage=self).count()
return 0
def form_exists(self):
return True if FieldSightXF.objects.filter(stage=self).count() > 0 else False
def form_name(self):
if not FieldSightXF.objects.filter(stage=self).count():
return ""
return FieldSightXF.objects.filter(stage=self)[0].xf.title
def form(self):
if not FieldSightXF.objects.filter(stage=self).count():
return None
return FieldSightXF.objects.filter(stage=self)[0]
def active_substages(self):
return self.parent.filter(stage_forms__isnull=False)
def get_sub_stage_list(self):
if not self.stage:
return Stage.objects.filter(stage=self).values('stage_forms__id','name','stage_id')
return []
@property
def xf(self):
return FieldSightXF.objects.filter(stage=self)[0].xf.pk if self.form_exists() else None
@property
def form_status(self):
status = 0
if self.stage_forms.site_form_instances.filter(form_status=3).exists():
status = 1
return status
@property
def form_count(self):
return self.stage_forms.site_form_instances.all().count()
@staticmethod
def site_submission_count(id, site_id):
return Stage.objects.get(pk=id).stage_forms.project_form_instances.filter(site_id=site_id).count()
@staticmethod
def rejected_submission_count(id, site_id):
return Stage.objects.get(pk=id).stage_forms.project_form_instances.filter(form_status=1, site_id=site_id).count()
@staticmethod
def flagged_submission_count(id, site_id):
return Stage.objects.get(pk=id).stage_forms.project_form_instances.filter(form_status=2, site_id=site_id).count()
@classmethod
def get_order(cls, site, project, stage):
if site:
if not Stage.objects.filter(site=site).exists():
return 1
elif stage is not None:
if not Stage.objects.filter(stage=stage).exists():
return 1
else:
mo = Stage.objects.filter(stage=stage).aggregate(Max('order'))
order = mo.get('order__max', 0)
return order + 1
else:
mo = Stage.objects.filter(site=site, stage__isnull=True).aggregate(Max('order'))
order = mo.get('order__max', 0)
return order + 1
else:
if not Stage.objects.filter(project=project).exists():
return 1
elif stage is not None:
if not Stage.objects.filter(stage=stage).exists():
return 1
else:
mo = Stage.objects.filter(stage=stage).aggregate(Max('order'))
order = mo.get('order__max', 0)
return order + 1
else:
mo = Stage.objects.filter(project=project, stage__isnull=True).aggregate(Max('order'))
order = mo.get('order__max', 0)
return order + 1
def __unicode__(self):
return getattr(self, "name", "")
class Days(models.Model):
day = models.CharField(max_length=9)
index = models.IntegerField()
def __unicode__(self):
return getattr(self, "day", "")
class Schedule(models.Model):
name = models.CharField("Schedule Name", max_length=256, blank=True, null=True)
site = models.ForeignKey(Site, related_name="schedules", null=True, blank=True)
project = models.ForeignKey(Project, related_name="schedules", null=True, blank=True)
date_range_start = models.DateField(default=datetime.date.today)
date_range_end = models.DateField(default=datetime.date.today)
selected_days = models.ManyToManyField(Days, related_name='days', blank=True,)
shared_level = models.IntegerField(default=2, choices=SHARED_LEVEL)
schedule_level_id = models.IntegerField(default=0, choices=SCHEDULED_LEVEL)
date_created = models.DateTimeField(auto_now_add=True)
logs = GenericRelation('eventlog.FieldSightLog')
class Meta:
db_table = 'fieldsight_forms_schedule'
verbose_name = _("Form Schedule")
verbose_name_plural = _("Form Schedules")
ordering = ('-date_range_start', 'date_range_end')
def form_exists(self):
return True if FieldSightXF.objects.filter(schedule=self).count() > 0 else False
def form(self):
return FieldSightXF.objects.filter(schedule=self)[0] if self.form_exists() else None
@property
def xf(self):
return FieldSightXF.objects.filter(schedule=self)[0].xf.pk if self.form_exists() else None
def __unicode__(self):
return getattr(self, "name", "")
class DeletedXForm(models.Model):
xf = models.OneToOneField(XForm, related_name="deleted_xform")
date_created = models.DateTimeField(auto_now=True)
class FieldSightXF(models.Model):
xf = models.ForeignKey(XForm, related_name="field_sight_form")
site = models.ForeignKey(Site, related_name="site_forms", null=True, blank=True)
project = models.ForeignKey(Project, related_name="project_forms", null=True, blank=True)
is_staged = models.BooleanField(default=False)
is_scheduled = models.BooleanField(default=False)
date_created = models.DateTimeField(auto_now=True)
date_modified = models.DateTimeField(auto_now=True)
schedule = models.OneToOneField(Schedule, blank=True, null=True, related_name="schedule_forms")
stage = models.OneToOneField(Stage, blank=True, null=True, related_name="stage_forms")
shared_level = models.IntegerField(default=2, choices=SHARED_LEVEL)
form_status = models.IntegerField(default=0, choices=FORM_STATUS)
fsform = models.ForeignKey('self', blank=True, null=True, related_name="parent")
is_deployed = models.BooleanField(default=False)
is_deleted = models.BooleanField(default=False)
is_survey = models.BooleanField(default=False)
from_project = models.BooleanField(default=True)
default_submission_status = models.IntegerField(default=0, choices=FORM_STATUS)
logs = GenericRelation('eventlog.FieldSightLog')
class Meta:
db_table = 'fieldsight_forms_data'
# unique_together = (("xf", "site"), ("xf", "is_staged", "stage"),("xf", "is_scheduled", "schedule"))
verbose_name = _("XForm")
verbose_name_plural = _("XForms")
ordering = ("-date_created",)
def url(self):
return reverse(
"download_fild_sight_form",
kwargs={
"site": self.site.username,
"id_string": self.id_string
}
)
def getname(self):
return '{0} form {1}'.format(self.form_type(),
self.xf.title,)
def getresponces(self):
return get_instances_for_field_sight_form(self.pk)
def getlatestsubmittiondate(self):
if self.site is not None:
return self.site_form_instances.order_by('-pk').values('date')[:1]
else:
return self.project_form_instances.order_by('-pk').values('date')[:1]
def get_absolute_url(self):
if self.project:
# return reverse('forms:project_html_export', kwargs={'fsxf_id': self.pk})
return reverse('forms:setup-forms', kwargs={'is_project':1, 'pk':self.project_id})
else:
# return reverse('forms:formpack_html_export', kwargs={'fsxf_id': self.pk})
return reverse('forms:setup-forms', kwargs={'is_project':0, 'pk':self.site_id})
def form_type(self):
if self.is_scheduled:
return "scheduled"
if self.is_staged:
return "staged"
if self.is_survey:
return "survey"
if not self.is_scheduled and not self.is_staged:
return "general"
def form_type_id(self):
if self.is_scheduled and self.schedule: return self.schedule.id
if self.is_staged and self.stage: return self.stage.id
return None
def stage_name(self):
if self.stage: return self.stage.name
def schedule_name(self):
if self.schedule: return self.schedule.name
def clean(self):
if self.is_staged:
if FieldSightXF.objects.filter(stage=self.stage).exists():
if not FieldSightXF.objects.filter(stage=self.stage).pk == self.pk:
raise ValidationError({
'xf': ValidationError(_('Duplicate Stage Data')),
})
if self.is_scheduled:
if FieldSightXF.objects.filter(schedule=self.schedule).exists():
if not FieldSightXF.objects.filter(schedule=self.schedule)[0].pk == self.pk:
raise ValidationError({
'xf': ValidationError(_('Duplicate Schedule Data')),
})
if not self.is_scheduled and not self.is_staged:
if self.site:
if FieldSightXF.objects.filter(xf=self.xf, is_scheduled=False, is_staged=False,project=self.site.project).exists():
raise ValidationError({
'xf': ValidationError(_('Form Already Used in Project Level')),
})
else:
if FieldSightXF.objects.filter(xf=self.xf, is_scheduled=False, is_staged=False,
site=self.site, project=self.project).exists():
if not FieldSightXF.objects.filter(xf=self.xf, is_scheduled=False, is_staged=False,
site=self.site, project=self.project)[0].pk == self.pk:
raise ValidationError({
'xf': ValidationError(_('Duplicate General Form Data')),
})
@staticmethod
def get_xform_id_list(site_id):
fs_form_list = FieldSightXF.objects.filter(site__id=site_id).order_by('xf__id').distinct('xf__id')
return [fsform.xf.pk for fsform in fs_form_list]
@property
def site_name(self):
if self.site is not None:
return u'{}'.format(self.site.name)\
@property
def site_or_project_display(self):
if self.site is not None:
return u'{}'.format(self.site.name)
return u'{}'.format(self.project.name)
@property
def project_info(self):
if self.fsform:
self.fsform.pk
return None
@property
def has_versions(self):
return self.xf.fshistory.exists()
def __unicode__(self):
return u'{}- {}- {}'.format(self.xf, self.site, self.is_staged)
@receiver(post_save, sender=FieldSightXF)
def create_messages(sender, instance, created, **kwargs):
if instance.project is not None and created and not instance.is_staged:
send_message_project_form(instance)
elif created and instance.site is not None and not instance.is_staged:
send_message(instance)
@receiver(pre_delete, sender=FieldSightXF)
def send_delete_message(sender, instance, using, **kwargs):
if instance.project is not None:
pass
elif instance.is_staged:
pass
else:
fxf = instance
send_message(fxf)
post_save.connect(create_messages, sender=FieldSightXF)
class FieldSightParsedInstance(ParsedInstance):
_update_fs_data = None
class Meta:
proxy = True
def save(self, *args, **kwargs):
self._update_fs_data = kwargs.pop('update_fs_data', {})
super(FieldSightParsedInstance, self).save(*args, **kwargs)
def to_dict_for_mongo(self):
mongo_dict = super(FieldSightParsedInstance, self).to_dict_for_mongo()
mongo_dict.update(self._update_fs_data)
return mongo_dict
@staticmethod
def get_or_create(instance, update_data=None):
if update_data is None:
update_data = {}
created = False
try:
fspi = FieldSightParsedInstance.objects.get(instance__pk=instance.pk)
fspi.save(update_fs_data=update_data, async=False)
except FieldSightParsedInstance.DoesNotExist:
created = True
fspi = FieldSightParsedInstance(instance=instance)
fspi.save(update_fs_data=update_data, async=False)
return fspi, created
class FInstanceManager(models.Manager):
def get_queryset(self):
return super(FInstanceManager, self).get_queryset().filter(is_deleted=False)
class FInstanceDeletedManager(models.Manager):
def get_queryset(self):
return super(FInstanceDeletedManager, self).get_queryset().filter(is_deleted=True)
class FInstance(models.Model):
instance = models.OneToOneField(Instance, related_name='fieldsight_instance')
site = models.ForeignKey(Site, null=True, related_name='site_instances')
project = models.ForeignKey(Project, null=True, related_name='project_instances')
site_fxf = models.ForeignKey(FieldSightXF, null=True, related_name='site_form_instances', on_delete=models.SET_NULL)
project_fxf = models.ForeignKey(FieldSightXF, null=True, related_name='project_form_instances')
form_status = models.IntegerField(null=True, blank=True, choices=FORM_STATUS)
date = models.DateTimeField(auto_now=True)
submitted_by = models.ForeignKey(User, related_name="supervisor")
is_deleted = models.BooleanField(default=False)
version = models.CharField(max_length=255, default=u'')
objects = FInstanceManager()
deleted_objects = FInstanceDeletedManager()
logs = GenericRelation('eventlog.FieldSightLog')
@property
def get_version(self):
return self.instance.json['__version__']
def save(self, *args, **kwargs):
self.version = self.get_version
if self.project_fxf is not None and self.project_fxf.is_staged and self.site is not None:
self.site.update_current_progress()
elif self.site is not None:
self.site.update_status()
if self.form_status is None:
if self.site_fxf:
self.form_status = self.site_fxf.default_submission_status
else:
self.form_status = self.project_fxf.default_submission_status
super(FInstance, self).save(*args, **kwargs) # Call the "real" save() method.
@property
def fsxfid(self):
if self.project_fxf:
return self.project_fxf.id
else:
return self.site_fxf.id\
@property
def fsxf(self):
if self.project_fxf:
return self.project_fxf
else:
return self.site_fxf
def get_absolute_url(self):
if self.site_fxf:
fxf_id = self.site_fxf_id
else:
fxf_id = self.project_fxf_id
return "/forms/forms/" + str(fxf_id) + "#/" + str(self.instance.id)
def get_abr_form_status(self):
return dict(FORM_STATUS)[self.form_status]
def getname(self):
if self.site_fxf is None:
return '{0} form {1}'.format(self.project_fxf.form_type(), self.project_fxf.xf.title,)
return '{0} form {1}'.format(self.site_fxf.form_type(),
self.site_fxf.xf.title,)
def __unicode__(self):
if self.site_fxf is None:
return u"%s" % str(self.submitted_by) + "---" + self.project_fxf.xf.title
return u"%s" % str(self.submitted_by) + "---" + self.site_fxf.xf.title
def instance_json(self):
return json.dumps(self.instance.json)
def get_responces(self):
data=[]
json_answer = self.instance.json
json_question = json.loads(self.instance.xform.json)
base_url = DjangoSite.objects.get_current().domain
media_folder = self.instance.xform.user.username
def parse_repeat(r_object):
r_question = r_object['name']
data.append(r_question)
if r_question in json_answer:
for gnr_answer in json_answer[r_question]:
for first_children in r_object['children']:
question_type = first_children['type']
question = first_children['name']
group_answer = json_answer[r_question]
answer = ''
if r_question+"/"+question in gnr_answer:
if first_children['type'] == 'note':
answer= ''
elif first_children['type'] == 'photo' or first_children['type'] == 'audio' or first_children['type'] == 'video':
answer = 'http://'+base_url+'/attachment/medium?media_file=/'+ media_folder +'attachments/'+gnr_answer[r_question+"/"+question]
else:
answer = gnr_answer[r_question+"/"+question]
if 'label' in first_children:
question = first_children['label']
row={'type':question_type, 'question':question, 'answer':answer}
data.append(row)
else:
for first_children in r_object['children']:
question_type = first_children['type']
question = first_children['name']
answer = ''
if 'label' in first_children:
question = first_children['label']
row={'type':question_type, 'question':question, 'answer':answer}
data.append(row)
def parse_group(prev_groupname, g_object):
g_question = prev_groupname+g_object['name']
for first_children in g_object['children']:
question = first_children['name']
question_type = first_children['type']
if question_type == 'group':
parse_group(g_question+"/",first_children)
continue
answer = ''
if g_question+"/"+question in json_answer:
if question_type == 'note':
answer= ''
elif question_type == 'photo' or question_type == 'audio' or question_type == 'video':
answer = 'http://'+base_url+'/attachment/medium?media_file=/'+ media_folder +'attachments/'+json_answer[g_question+"/"+question]
else:
answer = json_answer[g_question+"/"+question]
if 'label' in first_children:
question = first_children['label']
row={'type':question_type, 'question':question, 'answer':answer}
data.append(row)
def parse_individual_questions(parent_object):
for first_children in parent_object:
if first_children['type'] == "repeat":
parse_repeat(first_children)
elif first_children['type'] == 'group':
parse_group("",first_children)
else:
question = first_children['name']
question_type = first_children['type']
answer= ''
if question in json_answer:
if first_children['type'] == 'note':
answer= ''
elif first_children['type'] == 'photo' or first_children['type'] == 'audio' or first_children['type'] == 'video':
answer = 'http://'+base_url+'/attachment/medium?media_file=/'+ media_folder +'attachments/'+json_answer[question]
else:
answer = json_answer[question]
if 'label' in first_children:
question = first_children['label']
row={"type":question_type, "question":question, "answer":answer}
data.append(row)
submitted_by={'type':'submitted_by','question':'Submitted by', 'answer':json_answer['_submitted_by']}
submittion_time={'type':'submittion_time','question':'Submittion Time', 'answer':json_answer['_submission_time']}
data.append(submitted_by)
data.append(submittion_time)
parse_individual_questions(json_question['children'])
return data
class InstanceStatusChanged(models.Model):
finstance = models.ForeignKey(FInstance, related_name="comments")
message = models.TextField(null=True, blank=True)
date = models.DateTimeField(auto_now=True)
old_status = models.IntegerField(default=0, choices=FORM_STATUS)
new_status = models.IntegerField(default=0, choices=FORM_STATUS)
user = models.ForeignKey(User, related_name="submission_comments")
logs = GenericRelation('eventlog.FieldSightLog')
class Meta:
ordering = ['-date']
def get_absolute_url(self):
return reverse('forms:alter-status-detail', kwargs={'pk': self.pk})
def getname(self):
return '{0} form {1}'.format(self.finstance.site_fxf.form_type(), self.finstance.site_fxf.xf.title)
class InstanceImages(models.Model):
instance_status = models.ForeignKey(InstanceStatusChanged, related_name="images")
image = models.ImageField(upload_to="submission-feedback-images",
verbose_name='Status Changed Images',)
class FieldSightFormLibrary(models.Model):
xf = models.ForeignKey(XForm)
is_global = models.BooleanField(default=False)
shared_date = models.DateTimeField(auto_now=True)
organization = models.ForeignKey(Organization, null=True, blank=True)
project = models.ForeignKey(Project, null=True, blank=True)
logs = GenericRelation('eventlog.FieldSightLog')
class Meta:
verbose_name = _("Library")
verbose_name_plural = _("Library")
ordering = ("-shared_date",)
class EducationMaterial(models.Model):
is_pdf = models.BooleanField(default=False)
pdf = models.FileField(upload_to="education-material-pdf", null=True, blank=True)
title = models.CharField(max_length=31, blank=True, null=True)
text = models.TextField(blank=True, null=True)
stage = models.OneToOneField(Stage, related_name="em", null=True, blank=True)
fsxf = models.OneToOneField(FieldSightXF, related_name="em", null=True, blank=True)
class EducationalImages(models.Model):
educational_material = models.ForeignKey(EducationMaterial, related_name="em_images")
image = models.ImageField(upload_to="education-material-images",
verbose_name='Education Images',)
# @receiver(post_save, sender=Site)
# def copy_stages_from_project(sender, **kwargs):
# site = kwargs.get('instance')
# created = kwargs.get('created')
# if created:
# project = site.project
# project_main_stages = project.stages.filter(stage__isnull=True)
# for pms in project_main_stages:
# project_sub_stages = Stage.objects.filter(stage__id=pms.pk, stage_forms__is_deleted=False, stage_forms__is_deployed=True)
# if not project_sub_stages:
# continue
# site_main_stage = Stage(name=pms.name, order=pms.order, site=site, description=pms.description,
# project_stage_id=pms.id, weight=pms.weight)
# site_main_stage.save()
# for pss in project_sub_stages:
# if pss.tags and site.type:
# if site.type.id not in pss.tags:
# continue
# site_sub_stage = Stage(name=pss.name, order=pss.order, site=site,
# description=pss.description, stage=site_main_stage, project_stage_id=pss.id, weight=pss.weight)
# site_sub_stage.save()
# if FieldSightXF.objects.filter(stage=pss).exists():
# fsxf = pss.stage_forms
# site_form = FieldSightXF(is_staged=True, default_submission_status=fsxf.default_submission_status, xf=fsxf.xf, site=site,fsform=fsxf, stage=site_sub_stage, is_deployed=True)
# site_form.save()
# general_forms = project.project_forms.filter(is_staged=False, is_scheduled=False, is_deployed=True, is_deleted=False)
# for general_form in general_forms:
# FieldSightXF.objects.create(is_staged=False, default_submission_status=general_form.default_submission_status, is_scheduled=False, is_deployed=True, site=site,
# xf=general_form.xf, fsform=general_form)
#
# schedule_forms = project.project_forms.filter(is_scheduled=True, is_deployed=True, is_deleted=False)
# for schedule_form in schedule_forms:
# schedule = schedule_form.schedule
# selected_days = tuple(schedule.selected_days.all())
# s = Schedule.objects.create(name=schedule.name, site=site, date_range_start=schedule.date_range_start,
# date_range_end=schedule.date_range_end)
# s.selected_days.add(*selected_days)
# s.save()
# FieldSightXF.objects.create(is_scheduled=True, default_submission_status=schedule_form.default_submission_status, xf=schedule_form.xf, site=site, fsform=schedule_form,
# schedule=s, is_deployed=True)
class DeployEvent(models.Model):
form_changed = models.BooleanField(default=True)
data = JSONField(default={})
date = models.DateTimeField(auto_now=True)
site = models.ForeignKey(Site, related_name="deploy_data", null=True)
project = models.ForeignKey(Project, related_name="deploy_data", null=True)
def upload_to(instance, filename):
return os.path.join(
'versions', str(instance.pk),
'xls',
os.path.split(filename)[1])
class XformHistory(models.Model):
class Meta:
unique_together = ('xform', 'version')
def _set_uuid_in_xml(self, file_name=None):
"""
Add bind to automatically set UUID node in XML.
"""
if not file_name:
file_name = self.file_name()
file_name, file_ext = os.path.splitext(file_name)
doc = clean_and_parse_xml(self.xml)
model_nodes = doc.getElementsByTagName("model")
if len(model_nodes) != 1:
raise Exception(u"xml contains multiple model nodes")
model_node = model_nodes[0]
instance_nodes = [node for node in model_node.childNodes if
node.nodeType == Node.ELEMENT_NODE and
node.tagName.lower() == "instance" and
not node.hasAttribute("id")]
if len(instance_nodes) != 1:
raise Exception(u"Multiple instance nodes without the id "
u"attribute, can't tell which is the main one")
instance_node = instance_nodes[0]
# get the first child whose id attribute matches our id_string
survey_nodes = [node for node in instance_node.childNodes
if node.nodeType == Node.ELEMENT_NODE and
(node.tagName == file_name or
node.attributes.get('id'))]
if len(survey_nodes) != 1:
raise Exception(
u"Multiple survey nodes with the id '%s'" % self.id_string)
survey_node = survey_nodes[0]
formhub_nodes = [n for n in survey_node.childNodes
if n.nodeType == Node.ELEMENT_NODE and
n.tagName == "formhub"]
if len(formhub_nodes) > 1:
raise Exception(
u"Multiple formhub nodes within main instance node")
elif len(formhub_nodes) == 1:
formhub_node = formhub_nodes[0]
else:
formhub_node = survey_node.insertBefore(
doc.createElement("formhub"), survey_node.firstChild)
uuid_nodes = [node for node in formhub_node.childNodes if
node.nodeType == Node.ELEMENT_NODE and
node.tagName == "uuid"]
if len(uuid_nodes) == 0:
formhub_node.appendChild(doc.createElement("uuid"))
if len(formhub_nodes) == 0:
# append the calculate bind node
calculate_node = doc.createElement("bind")
calculate_node.setAttribute(
"nodeset", "/%s/formhub/uuid" % file_name)
calculate_node.setAttribute("type", "string")
calculate_node.setAttribute("calculate", "'%s'" % self.uuid)
model_node.appendChild(calculate_node)
self.xml = doc.toprettyxml(indent=" ", encoding='utf-8')
# hack
# http://ronrothman.com/public/leftbraned/xml-dom-minidom-toprettyxml-\
# and-silly-whitespace/
text_re = re.compile('>\n\s+([^<>\s].*?)\n\s+</', re.DOTALL)
output_re = re.compile('\n.*(<output.*>)\n( )*')
prettyXml = text_re.sub('>\g<1></', self.xml.decode('utf-8'))
inlineOutput = output_re.sub('\g<1>', prettyXml)
inlineOutput = re.compile('<label>\s*\n*\s*\n*\s*</label>').sub(
'<label></label>', inlineOutput)
self.xml = inlineOutput
xform = models.ForeignKey(XForm, related_name="fshistory")
date = models.DateTimeField(auto_now=True)
xls = models.FileField(upload_to=upload_to, null=True)
json = models.TextField(default=u'')
description = models.TextField(default=u'', null=True)
xml = models.TextField()
id_string = models.CharField(editable=False, max_length=255)
title = models.CharField(editable=False, max_length=255)
uuid = models.CharField(max_length=32, default=u'')
version = models.CharField(max_length=255, default=u'')
@property
def get_version(self):
import re
n = XML_VERSION_MAX_ITER
xml = self.xml
p = re.compile('version="(.*)">')
m = p.search(xml)
if m:
return m.group(1)
version = check_version(xml)
if version:
return version
else:
p = re.compile("""<bind calculate="\'(.*)\'" nodeset="/(.*)/_version_" """)
m = p.search(xml)
if m:
return m.group(1)
p1 = re.compile("""<bind calculate="(.*)" nodeset="/(.*)/_version_" """)
m1 = p.search(xml)
if m1:
return m1.group(1)
p1 = re.compile("""<bind calculate="\'(.*)\'" nodeset="/(.*)/__version__" """)
m1 = p1.search(xml)
if m1:
return m1.group(1)
p1 = re.compile("""<bind calculate="(.*)" nodeset="/(.*)/__version__" """)
m1 = p1.search(xml)
if m1:
return m1.group(1)
return None
def check_version(xml, n):
for i in range(n, 0, -1):
p = re.compile("""<bind calculate="\'(.*)\'" nodeset="/(.*)/_version__00{0}" """.format(i))
m = p.search(xml)
if m:
return m.group(1)
p = re.compile("""<bind calculate="(.*)" nodeset="/(.*)/_version__00{0}" """.format(i))
m1 = p.search(xml)
if m1:
return m1.group(1)
return None
def save(self, *args, **kwargs):
if self.xls and not self.xml:
survey = create_survey_from_xls(self.xls)
self.json = survey.to_json()
self.xml = survey.to_xml()
self._mark_start_time_boolean()
# set_uuid(self)
# self._set_uuid_in_xml()
if not self.version:
self.version = self.get_version
super(XformHistory, self).save(*args, **kwargs)
def file_name(self):
return os.path.split(self.xls.name)[-1]
def _mark_start_time_boolean(self):
starttime_substring = 'jr:preloadParams="start"'
if self.xml.find(starttime_substring) != -1:
self.has_start_time = True
else:
self.has_start_time = False
def get_survey(self):
if not hasattr(self, "_survey"):
try:
builder = SurveyElementBuilder()
self._survey = \
builder.create_survey_element_from_json(self.json)
except ValueError:
xml = bytes(bytearray(self.xml, encoding='utf-8'))
self._survey = create_survey_element_from_xml(xml)
return self._survey
survey = property(get_survey)
class SubmissionOfflineSite(models.Model):
offline_site_id = models.CharField(max_length=20)
temporary_site = models.ForeignKey(Site, related_name="offline_submissions")
instance = models.OneToOneField(FInstance, blank=True, null=True, related_name="offline_submission")
fieldsight_form = models.ForeignKey(FieldSightXF, related_name="offline_submissiob" , null=True, blank=True)
def __unicode__(self):
if self.instance:
return u"%s ---------------%s" % (str(self.instance.id) ,self.offline_site_id)
return u"%s" % str(self.offline_site_id)
| bsd-2-clause | 6,981,882,587,208,460,000 | 41.057175 | 195 | 0.599547 | false |
antworteffekt/EDeN | graphprot/prepare_graphprot_seqs.py | 1 | 10394 | #!/usr/bin/env python
# draft implementation
# * TODO:
# * centering should be optional
# * viewpoint should be optional
# * check for nonunique ids and warn
# * check for bedtools version
# * write bed files for sequence coordinates
# * set rnd init for shuffling to have reproducible results
# * use my own temporary sequence files, properly clean up afterwards
# * check if seq length and core length arguments match or handle properly
# * handle input/output error gracefully
# * check if input bed coordinates are stranded
from __future__ import print_function
import argparse
from csv import reader
from itertools import izip
import logging
from eden.util import configure_logging
from pybedtools.featurefuncs import midpoint
from pybedtools.helpers import get_chromsizes_from_ucsc
from pybedtools import BedTool
# parse command line arguments
# positional arguments
parser = argparse.ArgumentParser(
description="Create coordinates and fasta sequences for use with GraphProt.")
parser.add_argument(
"bsites_fn", help="Path to binding site coordiantes in bed format")
parser.add_argument(
"genome_id", help="Genome UCSC id")
parser.add_argument(
"genome_fa_fn", help="Genome fasta sequences")
# optional arguments
parser.add_argument(
"--seq_length",
type=int,
default=150,
help="Length of sequences to create")
parser.add_argument(
"--core_length",
type=int,
default=48,
help="Length of viewpoint region at center of sequence")
parser.add_argument(
"--output_file_prefix",
default="",
help="Prefix to use for output filenames")
parser.add_argument(
"--chromosome_limits",
help="Path to file containing chromosome limites as required by bedtools. Use this parameter disables automatic lookup via the genome id.")
parser.add_argument(
"--negative_site_candidate_regions_fn",
help="Path to regions considered for placement of negatives in bed format")
parser.add_argument(
"-v", "--verbosity",
action="count",
help="Increase output verbosity")
args = parser.parse_args()
logger = logging.getLogger()
configure_logging(logger, verbosity=args.verbosity)
# fixed global variables
npeek = 2
# check chromsizes retreival
if (args.chromosome_limits is None):
# check if genome_id can be found,
chromsizes = get_chromsizes_from_ucsc(args.genome_id)
logging.debug("Number of chromosomes: {}.".format(len(chromsizes)))
# otherwise request manual definition of chromosome limits
if (len(chromsizes) == 0):
logging.error("Error: retrieving chromosome sizes from UCSC failed. Please specify manually using parameter --chromosome_limits")
exit(1)
# output file arguments
pos_core_bed_fn = args.output_file_prefix + ".positives_core.bed"
neg_core_bed_fn = args.output_file_prefix + ".negatives_core.bed"
# TODO: use
pos_seq_bed_fn = args.output_file_prefix + ".positives_seq.bed"
# TODO: use
neg_seq_bed_fn = args.output_file_prefix + ".negatives_seq.bed"
pos_seq_fa_fn = args.output_file_prefix + ".positives.fa"
neg_seq_fa_fn = args.output_file_prefix + ".negatives.fa"
# calculate flank lengths
flank_length = args.seq_length - args.core_length
flank_upstream_length = int(flank_length / 2)
flank_downstream_length = int(flank_length / 2) + (flank_length % 2)
if (args.core_length + flank_upstream_length + flank_downstream_length != args.seq_length):
raise Exception("Error: bad length calculation.")
def dbg_head(sites, description="", n=npeek, run=args.debug):
"""Print the first few bed entries."""
if run:
logging.debug(description)
for i in sites[0:n]:
logging.debug(i)
def prefix_neg(feature, prefix="negative_from_"):
"""Modify BedTool feature by adding a prefix."""
feature.name = prefix + feature.name
return feature
def offset_zero_by_one(feature):
"""Sets the start coordinate to 1 if it is actually 0.
Required for the flanking to work properly in those cases.
"""
if feature.start == 0:
feature.start += 1
return feature
def get_flanks(cores,
flank_upstream_length=flank_upstream_length,
flank_downstream_length=flank_downstream_length):
"""Calculate flanking regions of a core region."""
if args.chromosome_limits is not None:
logging.debug("using chromosome_limits " + args.chromosome_limits)
# get upstream flanks
flanks_upstream = cores.flank(
s=True,
l=flank_upstream_length,
r=0,
g=args.chromosome_limits).saveas()
# get downstream flanks
flanks_downstream = cores.flank(
s=True,
r=flank_downstream_length,
l=0,
g=args.chromosome_limits).saveas()
else:
# get upstream flanks
flanks_upstream = cores.flank(
s=True,
l=flank_upstream_length,
r=0,
genome=args.genome_id).saveas()
# get downstream flanks
flanks_downstream = cores.flank(
s=True,
r=flank_downstream_length,
l=0,
genome=args.genome_id).saveas()
# check if sites and flanks have the same number of entries
if cores.count() == flanks_upstream.count() == flanks_downstream.count():
return flanks_upstream, flanks_downstream
else:
if args.debug:
cores.saveas("debug_cores.bed")
flanks_upstream.saveas("debug_upstream.bed")
flanks_downstream.saveas("debug_downstream.bed")
else:
cores.saveas()
flanks_upstream.saveas()
flanks_downstream.saveas()
raise Exception("Error: numbers of cores and flanks don't match: got " + str(cores.count()) + " cores, " + str(
flanks_upstream.count()) + " upstream flanks and " + str(flanks_downstream.count()) + " downstream flanks.")
def get_seqs(cores,
flanks_upstream,
flanks_downstream,
viewpointfa_fn,
genome_fa_fn=args.genome_fa_fn):
"""Prepare sequences and write them to disk."""
# get sequences
genome_fa = BedTool(genome_fa_fn)
cores = cores.sequence(
fi=genome_fa,
s=True,
tab=True, name=True).save_seqs(cores.fn + ".tabseq")
flanks_upstream = flanks_upstream.sequence(
fi=genome_fa,
s=True,
tab=True,
name=True).save_seqs(flanks_upstream.fn + ".tabseq")
flanks_downstream = flanks_downstream.sequence(
fi=genome_fa,
s=True,
tab=True,
name=True).save_seqs(flanks_downstream.fn + ".tabseq")
# write sequences to disk
fup_seq_fn = flanks_upstream.seqfn
cores_seq_fn = cores.seqfn
fdown_seq_fn = flanks_downstream.seqfn
viewpointfa = open(viewpointfa_fn, "wb")
with open(fup_seq_fn, "rb") as fup_tabseq, open(cores_seq_fn, "rb") as core_tabseq, open(fdown_seq_fn, "rb") as fdown_tabseq:
fup_reader = reader(fup_tabseq, delimiter="\t")
core_reader = reader(core_tabseq, delimiter="\t")
fdown_reader = reader(fdown_tabseq, delimiter="\t")
for fup, core, fdown in izip(fup_reader, core_reader, fdown_reader):
assert fup[0] == core[0] == fdown[0], "Error: sequence ids of cores and flanks don't match."
# setup fasta headers and sequences
fa_header = ">" + core[0]
seq_viewpoint = fup[1].lower() + core[1].upper() + fdown[1].lower()
# seq_normal = fup[1].upper() + core[1].upper() + fdown[1].upper()
viewpointfa.write(fa_header + "\n")
viewpointfa.write(seq_viewpoint + "\n")
viewpointfa.close()
# prepare input coordinates
bsites = BedTool(args.bsites_fn).sort().saveas()
centers = bsites.each(midpoint).saveas()
# prepare positive instances
logging.info("preparing positive instances")
if (args.chromosome_limits):
logging.debug("using chromosome_limits " + args.chromosome_limits)
cores = centers.slop(s=True,
l=int(args.core_length / 2),
# -1 to account for the center nucleotide!
r=int(args.core_length / 2) +
(args.core_length % 2) - 1,
g=args.chromosome_limits).each(offset_zero_by_one).saveas(pos_core_bed_fn)
else:
cores = centers.slop(s=True,
l=int(args.core_length / 2),
# -1 to account for the center nucleotide!
r=int(args.core_length / 2) +
(args.core_length % 2) - 1,
genome=args.genome_id).each(offset_zero_by_one).saveas(pos_core_bed_fn)
flanks_upstream, flanks_downstream = get_flanks(cores)
get_seqs(cores, flanks_upstream, flanks_downstream, pos_seq_fa_fn)
# prepare negative sites if requested
if args.negative_site_candidate_regions_fn:
# get negative candidate regions
negative_site_candidate_regions = BedTool(
args.negative_site_candidate_regions_fn)
# remove input binding sites from negative candidate regions
processed_negative_site_candidate_regions = negative_site_candidate_regions.subtract(
bsites,
s=True).saveas()
# create negative core sites by placing within candidate regions
logging.info("preparing negative instances")
logging.info("starting from " + str(cores.count()) + " positive cores")
if args.chromosome_limits:
logging.debug("using chromosome_limits " + args.chromosome_limits)
neg_cores = cores.shuffle(
g=args.chromosome_limits,
chrom=True,
incl=processed_negative_site_candidate_regions.fn,
noOverlapping=True).each(prefix_neg).saveas(neg_core_bed_fn)
logging.info("derived negative cores: " + str(neg_cores.count()))
neg_fup, neg_fdown = get_flanks(neg_cores)
get_seqs(neg_cores, neg_fup, neg_fdown, neg_seq_fa_fn)
else:
neg_cores = cores.shuffle(
genome=args.genome_id,
chrom=True,
incl=processed_negative_site_candidate_regions.fn,
noOverlapping=True).each(prefix_neg).saveas(neg_core_bed_fn)
logging.info("derived negative cores: " + str(neg_cores.count()))
neg_fup, neg_fdown = get_flanks(neg_cores)
get_seqs(neg_cores, neg_fup, neg_fdown, neg_seq_fa_fn)
| mit | -1,839,607,395,871,399,200 | 38.075188 | 143 | 0.646527 | false |
vnaydionov/card-proxy | tests/secvault_tests.py | 1 | 3752 | # -*- coding: utf-8 -*-
import os
import sys
import unittest
import datetime as dt
from utils import generate_random_string, generate_random_number
from secvault_api import SecureVaultApi
import logger
log = logger.get_logger('/tmp/secvault_tests-%s.log' % os.environ['USER'])
SERVER_URI = 'http://localhost:17113/'
def log_func_context(func):
def inner(*args, **kwargs):
log.debug('---- Start [%s] ----', func.func_name)
result = func(*args, **kwargs)
log.debug('---- Start [%s] ----', func.func_name)
return result
return inner
class TestSecureVaultApi(unittest.TestCase):
'''
tokenize_card, detokenize_card, remove_card, etc.
'''
def __init__(self, *args, **kwargs):
super(TestSecureVaultApi, self).__init__(*args, **kwargs)
self.server_uri = SERVER_URI
def _create_new_token(self, plain_text, params=None):
p = SecureVaultApi(self.server_uri,
user='tokenize_only', passwd='qwerty', domain='mydomain')
new_params = {
'plain_text': plain_text,
'expire_ts': (dt.datetime.now() +
dt.timedelta(days=1500)).isoformat()[:19],
'dedup': 'false',
'notify_email': 'someone@somedomain',
}
new_params.update(params or {})
status, resp, f_time = p.tokenize(new_params)
return resp
def _unwrap_token(self, token, params=None):
p = SecureVaultApi(self.server_uri,
user='detokenize_only', passwd='qwerty', domain='mydomain')
new_params = {
'token': token,
}
new_params.update(params or {})
status, resp, f_time = p.detokenize(new_params)
return resp
@log_func_context
def test_tokenize(self):
secret = generate_random_string(1000)
resp = self._create_new_token(secret)
self.assertEqual('success', resp.findtext('status'))
self.assertTrue(len(resp.findtext('token')) > 10)
@log_func_context
def test_detokenize(self):
secret = generate_random_string(101)
resp = self._create_new_token(secret)
token = resp.findtext('token')
resp = self._unwrap_token(token + 'xxx')
self.assertEqual('error', resp.findtext('status'))
self.assertEqual('token_not_found', resp.findtext('status_code'))
resp = self._unwrap_token(token)
self.assertEqual('success', resp.findtext('status'))
self.assertEqual(secret, resp.findtext('plain_text'))
self.assertTrue('mydomain', resp.findtext('domain'))
self.assertTrue(19, len(resp.findtext('expire_ts')))
self.assertTrue('someone@somedomain', resp.findtext('notify_email'))
@log_func_context
def test_no_auth(self):
secret = generate_random_string(333)
resp = self._create_new_token(secret, {'user': 'vasya'})
self.assertEqual('error', resp.findtext('status'))
self.assertEqual('auth_error', resp.findtext('status_code'))
resp = self._create_new_token(secret, {'user': 'detokenize_only'})
self.assertEqual('error', resp.findtext('status'))
self.assertEqual('auth_error', resp.findtext('status_code'))
resp = self._create_new_token(secret, {'passwd': 'asdfg'})
self.assertEqual('error', resp.findtext('status'))
self.assertEqual('auth_error', resp.findtext('status_code'))
resp = self._create_new_token(secret, {'domain': 'oebs'})
self.assertEqual('error', resp.findtext('status'))
self.assertEqual('auth_error', resp.findtext('status_code'))
if __name__ == '__main__':
import sys
sys.argv.append('-v')
unittest.main()
# vim:ts=4:sts=4:sw=4:tw=85:et:
| mit | 6,813,235,318,623,303,000 | 36.148515 | 86 | 0.606077 | false |
rwightman/tensorflow-litterbox | litterbox/models/sdc/model_sdc.py | 1 | 8350 | # Copyright (C) 2016 Ross Wightman. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
# ==============================================================================
"""Model wrapper for Google's tensorflow/model/slim models.
"""
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import fabric
import tensorflow as tf
from .build_inception_resnet_sdc import *
from .build_resnet_sdc import *
from .build_nvidia_sdc import *
slim = tf.contrib.slim
sdc_default_params = {
'outputs': {'steer': 1, 'xyz': 2},
'network': 'inception_resnet_v2', # or one of other options in network_map
'regression_loss': 'mse', # or huber
'version': 2,
'bayesian': False,
'lock_root': False,
}
network_map = {
'inception_resnet_v2': build_inception_resnet_sdc_regression,
'resnet_v1_50': build_resnet_v1_50_sdc,
'resnet_v1_101': build_resnet_v1_101_sdc,
'resnet_v1_152': build_resnet_v1_152_sdc,
'nvidia_sdc': build_nvidia_sdc,
}
arg_scope_map = {
'inception_resnet_v2': inception_resnet_v2_arg_scope,
'resnet_v1_50': resnet_arg_scope,
'resnet_v1_101': resnet_arg_scope,
'resnet_v1_152': resnet_arg_scope,
'nvidia_sdc': nvidia_style_arg_scope,
}
class ModelSdc(fabric.model.Model):
def __init__(self, params={}):
super(ModelSdc, self).__init__()
params = fabric.model.merge_params(sdc_default_params, params)
print("ModelSdc params", params)
self.output_cfg = params['outputs']
# model variable scope needs to match google net for pretrained weight compat
if (params['network'] == 'resnet_v1_152' or
params['network'] == 'resnet_v1_101' or
params['network'] == 'resnet_v1_50'):
self.network = params['network']
self.model_variable_scope = params['network']
elif params['network'] == 'inception_resnet_v2':
self.network = 'inception_resnet_v2'
self.model_variable_scope = "InceptionResnetV2"
else:
assert params['network'] == 'nvidia_sdc'
self.network = 'nvidia_sdc'
self.model_variable_scope = "NvidiaSdc"
self.version = params['version']
self.bayesian = params['bayesian']
self.lock_root = params['lock_root']
if params['regression_loss'] == 'huber':
self.regression_loss = fabric.loss.loss_huber_with_aux
else:
self.regression_loss = fabric.loss.loss_mse_with_aux
self.disable_summaries = False
def build_tower(self, inputs, is_training=False, summaries=True, scope=None):
with slim.arg_scope(arg_scope_map[self.network]()):
output, endpoints = network_map[self.network](
inputs,
output_cfg=self.output_cfg,
version=self.version,
bayesian=self.bayesian,
lock_root=self.lock_root,
is_training=is_training)
aux_output = None
if 'AuxOutput' in endpoints:
aux_output = endpoints['AuxOutput']
self.add_tower(
scope,
endpoints=endpoints,
outputs=output,
aux_outputs=aux_output,
)
# Add summaries for viewing model statistics on TensorBoard.
if summaries:
self.activation_summaries()
return output
def add_tower_loss(self, targets, scope=None):
tower = self.tower(scope)
assert 'xyz' in self.output_cfg or 'steer' in self.output_cfg
if 'xyz' in self.output_cfg:
target_xyz = targets[1]
aux_output_xyz = None
if tower.aux_outputs:
aux_output_xyz = tower.aux_outputs['xyz']
self.regression_loss(
tower.outputs['xyz'], target_xyz, aux_predictions=aux_output_xyz)
if 'steer' in self.output_cfg:
target_steer = targets[0]
aux_output_steer = None
if tower.aux_outputs:
aux_output_steer = tower.aux_outputs['steer']
if self.output_cfg['steer'] > 1:
# steer is integer target, one hot output, use softmax
fabric.loss_softmax_cross_entropy_with_aux(
tower.outputs['steer'], target_steer, aux_logits=aux_output_steer)
else:
assert self.output_cfg['steer'] == 1
# steer is float target/output, use regression /w huber loss
self.regression_loss(
tower.outputs['steer'], target_steer, aux_predictions=aux_output_steer)
def get_predictions(self, outputs, processor=None):
if processor:
for k, v in outputs.items():
outputs[k] = processor.decode_output(v, key=k)
return outputs
def _remap_variable_names(self, variables, checkpoint_variable_set, prefix_scope):
def _strip_name(prefix, name):
name = name[len(prefix):] if name.startswith(prefix) else name
return name
if prefix_scope:
# strip our network prefix scope and remap accordingly
prefix_scope += '/'
restore_variables = {_strip_name(prefix_scope, v.op.name): v for v in variables}
return restore_variables
else:
return variables
def output_scopes(self, prefix_scope=''):
rel_scopes = ['logits', 'Logits', 'Output', 'Output/OutputXYZ', 'Output/OutputSteer', 'Output/Fc1',
'AuxLogits/OutputXYZ', 'AuxLogits/OutputSteer', 'AuxLogits/Fc1']
prefix = prefix_scope + '/' if prefix_scope else ''
prefix += self.model_variable_scope + '/'
abs_scopes = [prefix + x for x in rel_scopes]
return abs_scopes
@staticmethod
def eval_ops(predictions, labels, processor=None):
"""Generate a simple (non tower based) loss op for use in evaluation.
"""
ops = {}
if 'steer' in predictions:
steer_label = labels[0]
steer_prediction = predictions['steer']
if steer_prediction.get_shape()[-1].value > 1:
# one hot steering loss (non reduced)
steer_loss = tf.nn.sparse_softmax_cross_entropy_with_logits(
steer_prediction, steer_label, name='steer_xentropy_eval')
# decode non-linear mapping before mse
steer_prediction = tf.cast(tf.argmax(steer_prediction, dimension=1), tf.int32)
if processor:
steer_prediction = processor.decode_output(steer_prediction, key='steer')
steer_label = processor.decode_output(steer_label, key='steer')
else:
# linear regression steering loss
assert steer_prediction.get_shape()[-1].value == 1
steer_loss = fabric.loss.metric_huber(steer_prediction, steer_label)
if processor:
steer_prediction = processor.decode_output(steer_prediction, key='steer')
steer_label = processor.decode_output(steer_label, key='steer')
steer_mse = tf.squared_difference(
steer_prediction, steer_label, name='steer_mse_eval')
ops['steer_loss'] = steer_loss
ops['steer_mse'] = steer_mse
#ops['steer_prediction'] = steer_prediction
#ops['steer_label'] = steer_label
if 'xyz' in predictions:
xyz_labels = labels[1]
xyz_predictions = predictions['xyz']
if processor:
xyz_labels = processor.decode_output(xyz_labels, key='xyz')
xyz_predictions = processor.decode_output(xyz_predictions, key='xyz')
xyz_loss = fabric.loss.metric_huber(xyz_predictions, xyz_labels)
xyz_mse = tf.squared_difference(xyz_predictions, xyz_labels, name='xyz_mse_eval')
ops['xyz_loss'] = xyz_loss
ops['xyz_mse'] = xyz_mse
ops['xyz_prediction'] = xyz_predictions
ops['xyz_label'] = xyz_labels
return ops
| apache-2.0 | 1,256,829,688,703,866,600 | 38.761905 | 107 | 0.582395 | false |
franbull/didthattoday | didthattoday/didthattoday/tests/test_step_views.py | 1 | 2921 | import simplejson
from base import IntegrationTestBase
from didthattoday.models import Step
from didthattoday.models import Habit
class TestStepViews(IntegrationTestBase):
def create_habit(self):
assert(self.session.query(Habit).count() == 0)
habit = {'name': 'woo', 'description': 'hoo'}
res = self.app.post('/habits', simplejson.dumps(habit))
self.assertEqual(res.status_int, 200)
res = self.app.get('/habits')
self.assertEqual(res.status_int, 200)
rd = res.json
assert(1 == len(rd['habits']))
habit = rd['habits'][0]
assert(habit['name'] == 'woo')
return habit['id']
def test_steps(self):
assert(self.session.query(Step).count() == 0)
habit_id = self.create_habit()
step = {'comment': 'woo', 'happened_at': '2014-03-09T04:58:25.513Z',
'habit_id': habit_id}
res = self.app.post('/steps', simplejson.dumps(step))
self.assertEqual(res.status_int, 200)
res = self.app.get('/steps')
self.assertEqual(res.status_int, 200)
rd = res.json
assert(1 == len(rd['steps']))
step = rd['steps'][0]
assert(step['comment'] == 'woo')
print Step.Session.query(Step).count()
a = Step.Session.query(Step).first()
print a.happened_at
import pdb; pdb.set_trace()
#def test_get_habit(self):
#assert(self.session.query(Habit).count() == 0)
#habit = {'name': 'woo', 'description': 'hoo'}
#res = self.app.post('/habits', simplejson.dumps(habit))
#self.assertEqual(res.status_int, 200)
#res = self.app.get('/habits')
#self.assertEqual(res.status_int, 200)
#rd = res.json
#assert(1 == len(rd['habits']))
#habit = rd['habits'][0]
#assert(habit['name'] == 'woo')
#id = habit['id']
#res = self.app.get('/habit/%s' % id)
#self.assertEqual(res.status_int, 200)
#rd = res.json
#assert(rd['id'] == id)
#assert(rd['name'] == 'woo')
#def test_update_habit(self):
#assert(self.session.query(Habit).count() == 0)
#habit = {'name': 'woo', 'description': 'hoo'}
#res = self.app.post('/habits', simplejson.dumps(habit))
#self.assertEqual(res.status_int, 200)
#res = self.app.get('/habits')
#self.assertEqual(res.status_int, 200)
#rd = res.json
#assert(1 == len(rd['habits']))
#habit = rd['habits'][0]
#assert(habit['name'] == 'woo')
#id = habit['id']
#habit['name'] = 'coo'
#res = self.app.put('/habit/%s' % id, simplejson.dumps(habit))
#self.assertEqual(res.status_int, 200)
#res = self.app.get('/habit/%s' % id)
#self.assertEqual(res.status_int, 200)
#rd = res.json
#assert(rd['id'] == id)
#assert(rd['name'] == 'coo')
| apache-2.0 | 310,837,209,777,617,200 | 30.75 | 76 | 0.548442 | false |
wcmitchell/insights-core | insights/combiners/tests/test_virt_who_conf.py | 1 | 4088 | from insights.combiners.virt_who_conf import AllVirtWhoConf
from insights.parsers.virt_who_conf import VirtWhoConf
from insights.parsers.sysconfig import VirtWhoSysconfig
from insights.tests import context_wrap
VWHO_D_CONF_ESX = """
## This is a template for virt-who configuration files. Please see
## virt-who-config(5) manual page for detailed information.
##
## virt-who checks all files in /etc/virt-who.d/ if they're valid ini-like
## files and uses them as configuration. Each file might contain more configs.
##
## You can uncomment and fill following template or create new file with
## similar content.
## For complete list of options, see virt-who-config(5) manual page.
## Terse version of the config template:
[esx_1]
type=esx
server=10.72.32.219
#encrypted_password=
owner=Satellite
env=Satellite
"""
VWHO_D_CONF_HYPER = """
## This is a template for virt-who configuration files. Please see
## virt-who-config(5) manual page for detailed information.
##
## virt-who checks all files in /etc/virt-who.d/ if they're valid ini-like
## files and uses them as configuration. Each file might contain more configs.
##
## You can uncomment and fill following template or create new file with
## similar content.
## For complete list of options, see virt-who-config(5) manual page.
## Terse version of the config template:
[hyperv_1]
type=hyperv
server=10.72.32.209
#encrypted_password=
owner=Satellite
env=Satellite
"""
VWHO_CONF = """
## This is a template for virt-who global configuration files. Please see
## virt-who-config(5) manual page for detailed information.
##
## virt-who checks /etc/virt-who.conf for sections 'global' and 'defaults'.
## The sections and their values are explained below.
## NOTE: These sections retain their special meaning and function only when present in /etc/virt-who.conf
##
## You can uncomment and fill following template or create new file with
## similar content.
#Terse version of the general config template:
[global]
interval=3600
debug=False
oneshot=False
#log_per_config=False
#log_dir=
#log_file=
#configs=
[defaults]
owner=Satellite
env=Satellite
"""
SYS_VIRTWHO = """
VIRTWHO_BACKGROUND=0
VIRTWHO_ONE_SHOT=1
VIRTWHO_INTERVAL=1000
VIRTWHO_SATELLITE6=1
""".strip()
SYS_VIRTWHO_SAT_LEGACY = """
VIRTWHO_BACKGROUND=1
VIRTWHO_SATELLITE=1
""".strip()
SYS_VIRTWHO_SAM = """
VIRTWHO_SAM=1
""".strip()
SYS_VIRTWHO_CP = """
VIRTWHO_SAM=0
""".strip()
def test_virt_who_conf_1():
vw_sysconf = VirtWhoSysconfig(context_wrap(SYS_VIRTWHO))
vwho_conf = VirtWhoConf(context_wrap(VWHO_CONF))
vwhod_conf1 = VirtWhoConf(context_wrap(VWHO_D_CONF_HYPER))
vwhod_conf2 = VirtWhoConf(context_wrap(VWHO_D_CONF_ESX))
result = AllVirtWhoConf(vw_sysconf, [vwho_conf, vwhod_conf1, vwhod_conf2])
assert result.background is False
assert result.oneshot is True
assert result.interval == 1000
assert result.sm_type == 'sat6'
assert sorted(result.hypervisor_types) == sorted(['esx', 'hyperv'])
assert sorted(result.hypervisors) == sorted([
{'name': 'esx_1', 'server': '10.72.32.219', 'env': 'Satellite',
'owner': 'Satellite', 'type': 'esx'},
{'name': 'hyperv_1', 'server': '10.72.32.209', 'env': 'Satellite',
'owner': 'Satellite', 'type': 'hyperv'}])
def test_virt_who_conf_2():
vw_sysconf = VirtWhoSysconfig(context_wrap(SYS_VIRTWHO_SAT_LEGACY))
vwho_conf = VirtWhoConf(context_wrap(VWHO_CONF))
result = AllVirtWhoConf(vw_sysconf, [vwho_conf])
assert result.background is True
assert result.oneshot is False
assert result.interval == 3600
assert result.sm_type == 'sat5'
def test_virt_who_conf_3():
vw_sysconf = VirtWhoSysconfig(context_wrap(SYS_VIRTWHO_SAM))
vwho_conf = VirtWhoConf(context_wrap(VWHO_CONF))
result = AllVirtWhoConf(vw_sysconf, [vwho_conf])
assert result.sm_type == 'sam'
def test_virt_who_conf_4():
vw_sysconf = VirtWhoSysconfig(context_wrap(SYS_VIRTWHO_CP))
vwho_conf = VirtWhoConf(context_wrap(VWHO_CONF))
result = AllVirtWhoConf(vw_sysconf, [vwho_conf])
assert result.sm_type == 'cp'
| apache-2.0 | -6,328,110,378,281,608,000 | 29.281481 | 105 | 0.716732 | false |
mwiencek/picard | picard/ui/cdlookup.py | 1 | 3277 | # -*- coding: utf-8 -*-
#
# Picard, the next-generation MusicBrainz tagger
# Copyright (C) 2006 Lukáš Lalinský
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
from PyQt4 import QtCore, QtGui
from picard.ui.ui_cdlookup import Ui_Dialog
from picard.mbxml import artist_credit_from_node, label_info_from_node
class CDLookupDialog(QtGui.QDialog):
def __init__(self, releases, disc, parent=None):
QtGui.QDialog.__init__(self, parent)
self.releases = releases
self.disc = disc
self.ui = Ui_Dialog()
self.ui.setupUi(self)
self.ui.release_list.setSortingEnabled(True)
self.ui.release_list.setHeaderLabels([_(u"Album"), _(u"Artist"), _(u"Date"), _(u"Country"),
_(u"Labels"), _(u"Catalog #s"), _(u"Barcode")])
if self.releases:
for release in self.releases:
labels, catalog_numbers = label_info_from_node(release.label_info_list[0])
date = release.date[0].text if "date" in release.children else ""
country = release.country[0].text if "country" in release.children else ""
barcode = release.barcode[0].text if "barcode" in release.children else ""
item = QtGui.QTreeWidgetItem(self.ui.release_list)
item.setText(0, release.title[0].text)
item.setText(1, artist_credit_from_node(release.artist_credit[0], self.config)[0])
item.setText(2, date)
item.setText(3, country)
item.setText(4, ", ".join(labels))
item.setText(5, ", ".join(catalog_numbers))
item.setText(6, barcode)
item.setData(0, QtCore.Qt.UserRole, QtCore.QVariant(release.id))
self.ui.release_list.setCurrentItem(self.ui.release_list.topLevelItem(0))
self.ui.ok_button.setEnabled(True)
[self.ui.release_list.resizeColumnToContents(i) for i in range(self.ui.release_list.columnCount() - 1)]
# Sort by descending date, then ascending country
self.ui.release_list.sortByColumn(3, QtCore.Qt.AscendingOrder)
self.ui.release_list.sortByColumn(2, QtCore.Qt.DescendingOrder)
self.ui.lookup_button.clicked.connect(self.lookup)
def accept(self):
release_id = str(self.ui.release_list.currentItem().data(0, QtCore.Qt.UserRole).toString())
self.tagger.load_album(release_id, discid=self.disc.id)
QtGui.QDialog.accept(self)
def lookup(self):
lookup = self.tagger.get_file_lookup()
lookup.discLookup(self.disc.submission_url)
QtGui.QDialog.accept(self)
| gpl-2.0 | 8,501,564,173,859,651,000 | 48.606061 | 111 | 0.66066 | false |
p2pu/mechanical-mooc | twitter/views.py | 1 | 1825 | from django import http
from django.conf import settings
from django.views.decorators.http import require_http_methods
import json
from twitter import utils
@require_http_methods(['POST'])
def get_data(request):
if 'twitter_handle' not in request.POST.keys():
return http.HttpResponseServerError()
twitter_handle = request.POST.get('twitter_handle')
creds = (settings.TWITTER_ACCESS_TOKEN, settings.TWITTER_ACCESS_TOKEN_SECRET)
try:
user_data = utils.get_user_data(twitter_handle, creds)
bio_data = {
'avatar': user_data['profile_image_url'],
'name': user_data['name'],
'bio': user_data['description']
}
if '_normal' in bio_data['avatar']:
bio_data['avatar'] = bio_data['avatar'].replace('_normal', '')
return http.HttpResponse(json.dumps(bio_data))
except:
return http.HttpResponseNotFound()
def old(request):
request_token_dict = utils.get_request_token()
request.session['oauth_token'] = request_token_dict['oauth_token']
request.session['oauth_token_secret'] = request_token_dict['oauth_token_secret']
redirect_url = 'https://api.twitter.com/oauth/authenticate?oauth_token={0}'.format(
request_token_dict['oauth_token']
)
return http.HttpResponseRedirect(redirect_url)
def oauth_callback(request):
oauth_token = request.GET.get('oauth_token')
oauth_verifier = request.GET.get('oauth_verifier')
oauth_token_secret = request.session['oauth_token_secret']
access_token_dict = utils.get_access_token(oauth_verifier, (oauth_token, oauth_token_secret))
user = utils.get_user_data(
access_token_dict['screen_name'],
(access_token_dict['oauth_token'], access_token_dict['oauth_token_secret'])
)
raise Exception()
| mit | 2,535,445,939,260,978,000 | 34.096154 | 97 | 0.667397 | false |
OCA/carrier-delivery | base_delivery_carrier_label/models/delivery_carrier.py | 1 | 1276 | # -*- coding: utf-8 -*-
# Copyright 2012 Akretion <http://www.akretion.com>.
# Copyright 2013-2016 Camptocamp SA
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo import api, fields, models
class DeliveryCarrier(models.Model):
_inherit = 'delivery.carrier'
@api.model
def _get_carrier_type_selection(self):
""" To inherit to add carrier type """
return []
carrier_type = fields.Selection(
selection='_get_carrier_type_selection',
string='Type',
help="Carrier type (combines several delivery methods)",
oldname='type',
)
code = fields.Char(
help="Delivery Method Code (according to carrier)",
)
description = fields.Text()
available_option_ids = fields.One2many(
comodel_name='delivery.carrier.option',
inverse_name='carrier_id',
string='Option',
)
@api.multi
def default_options(self):
""" Returns default and available options for a carrier """
options = self.env['delivery.carrier.option'].browse()
for available_option in self.available_option_ids:
if (available_option.mandatory or available_option.by_default):
options |= available_option
return options
| agpl-3.0 | -6,199,342,651,234,206,000 | 31.717949 | 75 | 0.636364 | false |
arocks/steel-rumors | steelrumors/settings.py | 1 | 5450 | # Django settings for steelrumors project.
DEBUG = True
TEMPLATE_DEBUG = DEBUG
ADMINS = (
# ('Your Name', '[email protected]'),
)
MANAGERS = ADMINS
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3', # Add 'postgresql_psycopg2', 'mysql', 'sqlite3' or 'oracle'.
'NAME': 'database.db', # Or path to database file if using sqlite3.
# The following settings are not used with sqlite3:
'USER': '',
'PASSWORD': '',
'HOST': '', # Empty for localhost through domain sockets or '127.0.0.1' for localhost through TCP.
'PORT': '', # Set to empty string for default.
}
}
# Hosts/domain names that are valid for this site; required if DEBUG is False
# See https://docs.djangoproject.com/en/1.5/ref/settings/#allowed-hosts
ALLOWED_HOSTS = []
# Local time zone for this installation. Choices can be found here:
# http://en.wikipedia.org/wiki/List_of_tz_zones_by_name
# although not all choices may be available on all operating systems.
# In a Windows environment this must be set to your system time zone.
TIME_ZONE = 'America/Chicago'
# Language code for this installation. All choices can be found here:
# http://www.i18nguy.com/unicode/language-identifiers.html
LANGUAGE_CODE = 'en-us'
SITE_ID = 1
# If you set this to False, Django will make some optimizations so as not
# to load the internationalization machinery.
USE_I18N = True
# If you set this to False, Django will not format dates, numbers and
# calendars according to the current locale.
USE_L10N = True
# If you set this to False, Django will not use timezone-aware datetimes.
USE_TZ = True
# Absolute filesystem path to the directory that will hold user-uploaded files.
# Example: "/var/www/example.com/media/"
MEDIA_ROOT = ''
# URL that handles the media served from MEDIA_ROOT. Make sure to use a
# trailing slash.
# Examples: "http://example.com/media/", "http://media.example.com/"
MEDIA_URL = ''
# Absolute path to the directory static files should be collected to.
# Don't put anything in this directory yourself; store your static files
# in apps' "static/" subdirectories and in STATICFILES_DIRS.
# Example: "/var/www/example.com/static/"
STATIC_ROOT = ''
# URL prefix for static files.
# Example: "http://example.com/static/", "http://static.example.com/"
STATIC_URL = '/static/'
# Additional locations of static files
STATICFILES_DIRS = (
# Put strings here, like "/home/html/static" or "C:/www/django/static".
# Always use forward slashes, even on Windows.
# Don't forget to use absolute paths, not relative paths.
)
# List of finder classes that know how to find static files in
# various locations.
STATICFILES_FINDERS = (
'django.contrib.staticfiles.finders.FileSystemFinder',
'django.contrib.staticfiles.finders.AppDirectoriesFinder',
# 'django.contrib.staticfiles.finders.DefaultStorageFinder',
)
# Make this unique, and don't share it with anybody.
SECRET_KEY = 'g3pn)t)h(k8ek8%rkeh+hhhklxhx+!n03b9kl0@^xuf9pzcqt!'
# List of callables that know how to import templates from various sources.
TEMPLATE_LOADERS = (
'django.template.loaders.filesystem.Loader',
'django.template.loaders.app_directories.Loader',
# 'django.template.loaders.eggs.Loader',
)
MIDDLEWARE_CLASSES = (
'django.middleware.common.CommonMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
# Uncomment the next line for simple clickjacking protection:
# 'django.middleware.clickjacking.XFrameOptionsMiddleware',
)
ROOT_URLCONF = 'steelrumors.urls'
# Python dotted path to the WSGI application used by Django's runserver.
WSGI_APPLICATION = 'steelrumors.wsgi.application'
TEMPLATE_DIRS = (
# Put strings here, like "/home/html/django_templates" or "C:/www/django/templates".
# Always use forward slashes, even on Windows.
# Don't forget to use absolute paths, not relative paths.
)
INSTALLED_APPS = (
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.sites',
'django.contrib.messages',
'django.contrib.staticfiles',
'django.contrib.admin',
'registration',
'links',
'steelrumors',
)
from django.core.urlresolvers import reverse_lazy
LOGIN_URL=reverse_lazy("login")
LOGIN_REDIRECT_URL=reverse_lazy("home")
LOGOUT_URL=reverse_lazy("logout")
# A sample logging configuration. The only tangible logging
# performed by this configuration is to send an email to
# the site admins on every HTTP 500 error when DEBUG=False.
# See http://docs.djangoproject.com/en/dev/topics/logging for
# more details on how to customize your logging configuration.
LOGGING = {
'version': 1,
'disable_existing_loggers': False,
'filters': {
'require_debug_false': {
'()': 'django.utils.log.RequireDebugFalse'
}
},
'handlers': {
'mail_admins': {
'level': 'ERROR',
'filters': ['require_debug_false'],
'class': 'django.utils.log.AdminEmailHandler'
}
},
'loggers': {
'django.request': {
'handlers': ['mail_admins'],
'level': 'ERROR',
'propagate': True,
},
}
}
| mit | 5,335,739,064,392,280,000 | 32.435583 | 127 | 0.688624 | false |
yashodhank/erpnext | erpnext/config/buying.py | 1 | 4418 | from __future__ import unicode_literals
from frappe import _
def get_data():
return [
{
"label": _("Purchasing"),
"icon": "fa fa-star",
"items": [
{
"type": "doctype",
"name": "Material Request",
"description": _("Request for purchase."),
},
{
"type": "doctype",
"name": "Request for Quotation",
"description": _("Request for quotation."),
},
{
"type": "doctype",
"name": "Supplier Quotation",
"description": _("Quotations received from Suppliers."),
},
{
"type": "doctype",
"name": "Purchase Order",
"description": _("Purchase Orders given to Suppliers."),
},
]
},
{
"label": _("Supplier"),
"items": [
{
"type": "doctype",
"name": "Supplier",
"description": _("Supplier database."),
},
{
"type": "doctype",
"name": "Supplier Type",
"description": _("Supplier Type master.")
},
{
"type": "doctype",
"name": "Contact",
"description": _("All Contacts."),
},
{
"type": "doctype",
"name": "Address",
"description": _("All Addresses."),
},
]
},
{
"label": _("Setup"),
"icon": "fa fa-cog",
"items": [
{
"type": "doctype",
"name": "Buying Settings",
"description": _("Default settings for buying transactions.")
},
{
"type": "doctype",
"name":"Terms and Conditions",
"label": _("Terms and Conditions Template"),
"description": _("Template of terms or contract.")
},
{
"type": "doctype",
"name": "Purchase Taxes and Charges Template",
"description": _("Tax template for buying transactions.")
},
]
},
{
"label": _("Items and Pricing"),
"items": [
{
"type": "doctype",
"name": "Item",
"description": _("All Products or Services."),
},
{
"type": "doctype",
"name": "Product Bundle",
"description": _("Bundle items at time of sale."),
},
{
"type": "doctype",
"name": "Price List",
"description": _("Price List master.")
},
{
"type": "doctype",
"name": "Item Group",
"icon": "fa fa-sitemap",
"label": _("Item Group"),
"link": "Tree/Item Group",
"description": _("Tree of Item Groups."),
},
{
"type": "doctype",
"name": "Item Price",
"description": _("Multiple Item prices."),
"route": "Report/Item Price"
},
{
"type": "doctype",
"name": "Pricing Rule",
"description": _("Rules for applying pricing and discount.")
},
]
},
{
"label": _("Analytics"),
"icon": "fa fa-table",
"items": [
{
"type": "page",
"name": "purchase-analytics",
"label": _("Purchase Analytics"),
"icon": "fa fa-bar-chart",
},
{
"type": "report",
"is_query_report": True,
"name": "Supplier-Wise Sales Analytics",
"doctype": "Stock Ledger Entry"
},
{
"type": "report",
"is_query_report": True,
"name": "Purchase Order Trends",
"doctype": "Purchase Order"
},
]
},
{
"label": _("Other Reports"),
"icon": "fa fa-list",
"items": [
{
"type": "report",
"is_query_report": True,
"name": "Items To Be Requested",
"doctype": "Item"
},
{
"type": "report",
"is_query_report": True,
"name": "Requested Items To Be Ordered",
"doctype": "Material Request"
},
{
"type": "report",
"is_query_report": True,
"name": "Material Requests for which Supplier Quotations are not created",
"doctype": "Material Request"
},
{
"type": "report",
"is_query_report": True,
"name": "Item-wise Purchase History",
"doctype": "Item"
},
{
"type": "report",
"is_query_report": True,
"name": "Supplier Addresses and Contacts",
"doctype": "Supplier"
},
]
},
{
"label": _("Help"),
"items": [
{
"type": "help",
"label": _("Customer and Supplier"),
"youtube_id": "anoGi_RpQ20"
},
{
"type": "help",
"label": _("Material Request to Purchase Order"),
"youtube_id": "4TN9kPyfIqM"
},
{
"type": "help",
"label": _("Purchase Order to Payment"),
"youtube_id": "EK65tLdVUDk"
},
{
"type": "help",
"label": _("Managing Subcontracting"),
"youtube_id": "ThiMCC2DtKo"
},
]
},
]
| agpl-3.0 | -5,095,885,631,226,072,000 | 20.55122 | 79 | 0.497963 | false |
heatherleaf/MCFParser.py | test/convert_mcfg_to_py.py | 1 | 1550 |
import re
import json
import fileinput
# F --> AO a [0,0;1,0] (* C --> /T,C T [0,0;1,0] *)
# A --> AL H [0,0;1,0] (* D,-case --> /N,D,-case N [0,0;1,0] *)
# I --> m [0,2;0,0][0,1] (* PastPart,-aux;-case --> +v,PastPart,-aux;-case;-v [0,2;0,0][0,1] *)
# I --> p [0,1;0,0][0,2] (* PastPart,-aux;-case --> +v,PastPart,-aux;-v;-case [0,1;0,0][0,2] *)
# E --> "laugh" (* /D,V,-v --> "laugh" *)
# E --> "love" (* /D,V,-v --> "love" *)
_rule_re = re.compile(r'''
^ (\w+) \s+ --> \s+ ([\w\s]+?) \s+ \[ ([][\d,;]+) \]
''', re.VERBOSE)
_lex_re = re.compile(r'''
^ (\w+) \s+ --> \s+ "([^"]*)"
''', re.VERBOSE)
# >>> grammar = [('f', 'S', ['A'], [[(0,0), (0,1)]]),
# ... ('g', 'A', ['A'], [['a', (0,0), 'b'], ['c', (0,1), 'd']]),
# ... ('h', 'A', [], [['a', 'b'], ['c', 'd']])]
# fun, cat, args, rhss = split_mcfrule(mcfrule)
grammar = []
functr = 1
for line in fileinput.input():
mrule = re.match(_rule_re, line)
mlex = re.match(_lex_re, line)
if mrule:
cat, args, rhss = mrule.groups()
args = tuple(args.split())
rhss = [[tuple(int(i) for i in sym.split(',')) for sym in rhs.split(';')] for rhs in rhss.split('][')]
elif mlex:
args = ()
cat, token = mlex.groups()
if token:
rhss = [[token]]
else:
rhss = [[]]
else:
continue
fun = f"{cat}-{functr:05d}"
grammar.append((fun, cat, args, rhss))
functr += 1
print('grammar = [')
for rule in grammar:
print(f" {rule},")
print(']')
| gpl-3.0 | -5,696,885,453,429,928,000 | 28.245283 | 110 | 0.425161 | false |
meredith-digops/awsops | volumecleanup/volumecleanup.py | 1 | 3967 | #!/usr/bin/env python
from __future__ import print_function
import boto3
from botocore.exceptions import ClientError
from datetime import datetime
from datetime import timedelta
from datetime import tzinfo
DEFAULT_RETENTION_DAYS = None
"""If None, no default retention is applied"""
ZERO = timedelta(0)
class UTC(tzinfo):
"""
Implements UTC timezone for datetime interaction
"""
def utcoffset(self, dt):
return ZERO
def tzname(self, dt):
return "UTC"
def dst(self, dt):
return ZERO
def fetch_available_volumes(ec2, filters=None):
"""
Generator of available EBS volumes
:param ec2: EC2 resource
:type ec2: boto3.resources.factory.ec2.ServiceResource
:param filters: Optional list of filters
:type filters: None|list
:returns: volumes collection
:rtype: boto3.resources.collection.ec2.volumesCollection
"""
# Set an empty filter set if none provided
if filters is None:
filters = []
# Append the filter for finding only volumes that are in the 'available'
# state.
# Ref: http://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribeVolumes.html
filters.append({
'Name': 'status',
'Values': ['available'],
})
return ec2.volumes.filter(
Filters=filters
)
def get_abandoned_volumes(since, *args, **kwargs):
"""
Generate of available EBS volumes created some time ago
:param since: Datetime where all volumes created prior to are considered abandoned
:type since: datetime.datetime
:returns: (iterator) of volumes
:rtype: boto3.resources.factory.ec2.Volume
"""
for vol in fetch_available_volumes(*args, **kwargs):
# Ignore volumes created after `since` parameter
if vol.meta.data['CreateTime'] > since:
continue
yield vol
def lambda_handler(event, context):
"""
Delete abandoned EBS snapshots that exceed reasonable retention
"""
# Set the default retention period if none was provided to the lambda
# invocation
if 'Retention' not in event:
event['Retention'] = DEFAULT_RETENTION_DAYS
if event['Retention'] is None:
# Don't delete anything
raise AttributeError("No Retention specified")
if 'DryRun' not in event:
event['DryRun'] = False
if 'Filters' not in event:
event['Filters'] = [{
'Name': 'tag-key',
'Values': [
'ops:retention'
]
}]
since = datetime.now(UTC()) - timedelta(float(event['Retention']))
ec2 = boto3.resource('ec2')
old_volumes = get_abandoned_volumes(since,
ec2=ec2,
filters=event['Filters'])
for volume in old_volumes:
print("Deleting: {id}".format(
id=volume.id
))
try:
volume.delete(DryRun=event['DryRun'])
except ClientError as e:
if e.response['Error']['Code'] == 'DryRunOperation':
pass
if __name__ == '__main__':
from terminaltables import AsciiTable
since = datetime.now(UTC()) - timedelta(3*365/12)
print("Since: {}".format(
since.isoformat()))
table_headers = [
[
'created',
'id',
'size',
'type',
'tags',
]
]
table_data = []
vols = get_abandoned_volumes(
since,
ec2=boto3.resource('ec2'))
for v in vols:
table_data.append([
v.meta.data['CreateTime'].isoformat(),
v.id,
v.size,
v.volume_type,
"" if v.tags is None else
"\n".join("{k}: {v}".format(
k=i['Key'],
v=i['Value']
) for i in v.tags),
])
table_data.sort(key=lambda x: x[0])
print(AsciiTable(table_headers + table_data).table)
| mit | -3,186,707,178,158,320,600 | 24.928105 | 89 | 0.575498 | false |
gjbex/parameter-weaver | src/vsc/parameter_weaver/c/types.py | 1 | 6550 | #
# ParameterWeaver: a code generator to handle command line parameters
# and configuration files for C/C++/Fortran/R/Octave
# Copyright (C) 2013 Geert Jan Bex <[email protected]>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
'''C types and implementation of their methods for validation and formatting'''
import re
from vsc.parameter_weaver.base_validator import ParameterDefinitionError
from vsc.parameter_weaver.params import VarType
from vsc.util import Indenter
class CType(VarType):
def __init__(self, name, enduser_name):
super(CType, self).__init__(name, enduser_name)
def is_valid_var_name(self, var_name):
if not re.match(r'^[A-Za-z_]\w*$', var_name):
msg = "not a valid name for type '{0}'".format(self.name)
raise ParameterDefinitionError(msg)
def validation_function(self, name):
return '1'
@property
def struct_sep(self):
return '->'
@property
def input_format_string(self):
return self.format_string()
def input_tmpl(self, name):
return '"{0} = %[^\\n]"'.format(name)
class Int(CType):
def __init__(self):
super(Int, self).__init__('int', enduser_name='integer')
def is_of_type(self, value):
if not re.match(r'^(?:\+|-)?[0-9]+$', value):
msg = "value '{0}' is invalid for type '{1}'".format(value, self.name)
raise ParameterDefinitionError(msg)
def input_conversion(self, var, indent=None):
return '{0} = atoi(argv_str);'.format(var)
@property
def format_string(self):
return '%d';
def validation_function(self, name):
return 'isIntCL({0}, 0)'.format(name)
class Long(CType):
def __init__(self):
super(Long, self).__init__('long', enduser_name='long integer')
def is_of_type(self, value):
if not re.match(r'^(?:\+|-)?[0-9]+L?$', value):
msg = "value '{0}' is invalid for type '{1}'".format(value, self.name)
raise ParameterDefinitionError(msg)
def input_conversion(self, var, indent=None):
return '{0} = atol(argv_str);'.format(var)
@property
def format_string(self):
return '%ld'
def validation_function(self, name):
return 'isLongCL({0}, 0)'.format(name)
class Float(CType):
def __init__(self):
super(Float, self).__init__('float', 'SP float')
def is_of_type(self, value):
re1 = r'^(?:\+|-)?[0-9]+(\.[0-9]*)?((e|E)(\+|-)?[0-9]+)?$'
re2 = r'^(?:\+|-)?[0-9]*\.[0-9]+((e|E)(\+|-)?[0-9]+)?$'
if not re.match(re1, value) and not re.match(re2, value):
msg = "value '{0}' is invalid for type '{1}'".format(value, self.name)
raise ParameterDefinitionError(msg)
def input_conversion(self, var, indent=None):
return '{0} = atof(argv_str);'.format(var)
@property
def format_string(self):
return '%.7f'
def validation_function(self, name):
return 'isFloatCL({0}, 0)'.format(name)
class Double(CType):
def __init__(self):
super(Double, self).__init__('double', 'DP float')
def is_of_type(self, value):
re1 = r'^(?:\+|-)?[0-9]+(\.[0-9]*)?((e|E)(\+|-)?[0-9]+)?$'
re2 = r'^(?:\+|-)?[0-9]*\.[0-9]+((e|E)(\+|-)?[0-9]+)?$'
if not re.match(re1, value) and not re.match(re2, value):
msg = "value '{0}' is invalid for type '{1}'".format(value, self.name)
raise ParameterDefinitionError(msg)
def input_conversion(self, var, indent=None):
return '{0} = atof(argv_str);'.format(var)
@property
def format_string(self):
return '%.16lf'
def validation_function(self, name):
return 'isDoubleCL({0}, 0)'.format(name)
class Bool(CType):
def __init__(self):
super(Bool, self).__init__('bool', 'boolean')
def is_of_type(self, value):
if value != 'true' and value != 'false' and not re.match(r'^(?:\+|-)?[0-9]+$', value):
msg = "value '{0}' is invalid for type '{1}'".format(value, self.name)
raise ParameterDefinitionError(msg)
def input_conversion(self, var, indent):
indenter = Indenter(indent)
indenter.add('if (!strncmp("false", argv_str, 6)) {').incr()
indenter.add('{0} = false;'.format(var))
indenter.decr().add('} else if (!strncmp("true", argv_str, 5)) {').incr()
indenter.add('{0} = true;'.format(var))
indenter.decr().add('} else {').incr()
indenter.add('{0} = atoi(argv_str);'.format(var))
indenter.decr().add('}')
return indenter.text()
@property
def format_string(self):
return '%d'
class CharPtr(CType):
def __init__(self):
super(CharPtr, self).__init__('char *', 'string')
def is_of_type(self, value):
if not re.match(r'^("|\').*\1$', value):
msg = "value '{0}' is invalid for type '{1}'".format(value, self.name)
raise ParameterDefinitionError(msg)
def input_conversion(self, var, indent=None):
indenter = Indenter('\t')
indenter.add('char *tmp;')
indenter.add('int len = strlen(argv_str);')
indenter.add('free({var});')
indenter.add('if (!(tmp = (char *) calloc(len + 1, sizeof(char))))')
indenter.incr().add('errx(EXIT_CL_ALLOC_FAIL, "can not allocate char* field");')
indenter.decr()
indenter.add('{var} = strncpy(tmp, argv_str, len + 1);')
return indenter.text().format(var=var)
def transform(self, value):
if value.startswith('"') and value.endswith('"'):
return value.strip('"')
elif value.startswith("'") and value.endswith("'"):
return value.strip("'")
else:
msg = "value '{0}' is invalid for type '{1}'".format(value, self.name)
raise ParameterDefinitionError(msg)
@property
def format_string(self):
return '%s'
| gpl-3.0 | 6,919,932,660,071,591,000 | 31.914573 | 94 | 0.579389 | false |
johncosta/private-readthedocs.org | readthedocs/core/models.py | 1 | 1611 | from django.db import models
from django.db.models.signals import post_save
from django.db.utils import DatabaseError
from django.dispatch import receiver
from django.contrib.auth.models import User
STANDARD_EMAIL = "[email protected]"
class UserProfile (models.Model):
"""Additional information about a User.
"""
user = models.ForeignKey(User, unique=True, related_name='profile')
whitelisted = models.BooleanField()
homepage = models.CharField(max_length=100, blank=True)
allow_email = models.BooleanField(help_text='Show your email on VCS contributions.', default=True)
def get_absolute_url(self):
return ('profiles_profile_detail', (), {'username': self.user.username})
get_absolute_url = models.permalink(get_absolute_url)
def __unicode__(self):
return "%s's profile" % self.user.username
def get_contribution_details(self):
"""
Gets the line to put into commits to attribute the author.
Returns a tuple (name, email)
"""
if self.user.first_name and self.user.last_name:
name = '%s %s' % (self.user.first_name, self.user.last_name)
else:
name = self.user.username
if self.allow_email:
email = self.user.email
else:
email = STANDARD_EMAIL
return (name, email)
@receiver(post_save, sender=User)
def create_profile(sender, **kwargs):
if kwargs['created'] is True:
try:
UserProfile.objects.create(user_id=kwargs['instance'].id, whitelisted=False)
except DatabaseError:
pass
| mit | -9,134,461,863,259,773,000 | 33.276596 | 102 | 0.656735 | false |
FernanOrtega/DAT210x | Module2/assignment3.py | 1 | 1065 | import pandas as pd
# TODO: Load up the dataset
# Ensuring you set the appropriate header column names
#
df = pd.read_csv('Datasets/servo.data', names=['motor', 'screw', 'pgain', 'vgain', 'class'])
print df.head()
# TODO: Create a slice that contains all entries
# having a vgain equal to 5. Then print the
# length of (# of samples in) that slice:
#
df_vgain = df[df.vgain == 5]
print df_vgain.iloc[:,0].count()
# TODO: Create a slice that contains all entries
# having a motor equal to E and screw equal
# to E. Then print the length of (# of
# samples in) that slice:
#
# .. your code here ..
df_eq = df[(df.motor == 'E') & (df.screw == 'E')]
print df_eq.iloc[:,0].count()
# TODO: Create a slice that contains all entries
# having a pgain equal to 4. Use one of the
# various methods of finding the mean vgain
# value for the samples in that slice. Once
# you've found it, print it:
#
df_pgain = df[df.pgain == 4]
print df_pgain.vgain.mean(0)
# TODO: (Bonus) See what happens when you run
# the .dtypes method on your dataframe!
print df.dtypes
| mit | 6,675,119,542,563,966,000 | 21.659574 | 92 | 0.680751 | false |
noplay/aiohttp | tests/test_web_request.py | 1 | 5998 | import asyncio
import unittest
from unittest import mock
from aiohttp.web import Request
from aiohttp.multidict import MultiDict, CIMultiDict
from aiohttp.protocol import HttpVersion
from aiohttp.protocol import RawRequestMessage
class TestWebRequest(unittest.TestCase):
def setUp(self):
self.loop = asyncio.new_event_loop()
asyncio.set_event_loop(None)
def tearDown(self):
self.loop.close()
def make_request(self, method, path, headers=CIMultiDict(), *,
version=HttpVersion(1, 1), closing=False):
self.app = mock.Mock()
message = RawRequestMessage(method, path, version, headers, closing,
False)
self.payload = mock.Mock()
self.transport = mock.Mock()
self.writer = mock.Mock()
self.reader = mock.Mock()
req = Request(self.app, message, self.payload,
self.transport, self.reader, self.writer)
return req
def test_ctor(self):
req = self.make_request('GET', '/path/to?a=1&b=2')
self.assertIs(self.app, req.app)
self.assertEqual('GET', req.method)
self.assertEqual(HttpVersion(1, 1), req.version)
self.assertEqual(None, req.host)
self.assertEqual('/path/to?a=1&b=2', req.path_qs)
self.assertEqual('/path/to', req.path)
self.assertEqual('a=1&b=2', req.query_string)
get = req.GET
self.assertEqual(MultiDict([('a', '1'), ('b', '2')]), get)
# second call should return the same object
self.assertIs(get, req.GET)
with self.assertWarns(DeprecationWarning):
self.assertIs(self.payload, req.payload)
self.assertIs(self.payload, req.content)
self.assertIs(self.transport, req.transport)
self.assertTrue(req.keep_alive)
def test_POST(self):
req = self.make_request('POST', '/')
with self.assertRaises(RuntimeError):
req.POST
marker = object()
req._post = marker
self.assertIs(req.POST, marker)
self.assertIs(req.POST, marker)
def test_content_type_not_specified(self):
req = self.make_request('Get', '/')
self.assertEqual('application/octet-stream', req.content_type)
def test_content_type_from_spec(self):
req = self.make_request(
'Get', '/',
CIMultiDict([('CONTENT-TYPE', 'application/json')]))
self.assertEqual('application/json', req.content_type)
def test_content_type_from_spec_with_charset(self):
req = self.make_request(
'Get', '/',
CIMultiDict([('CONTENT-TYPE', 'text/html; charset=UTF-8')]))
self.assertEqual('text/html', req.content_type)
self.assertEqual('UTF-8', req.charset)
def test_calc_content_type_on_getting_charset(self):
req = self.make_request(
'Get', '/',
CIMultiDict([('CONTENT-TYPE', 'text/html; charset=UTF-8')]))
self.assertEqual('UTF-8', req.charset)
self.assertEqual('text/html', req.content_type)
def test_urlencoded_querystring(self):
req = self.make_request(
'GET',
'/yandsearch?text=%D1%82%D0%B5%D0%BA%D1%81%D1%82')
self.assertEqual({'text': 'текст'}, req.GET)
def test_non_ascii_path(self):
req = self.make_request('GET', '/путь')
self.assertEqual('/путь', req.path)
def test_content_length(self):
req = self.make_request(
'Get', '/',
CIMultiDict([('CONTENT-LENGTH', '123')]))
self.assertEqual(123, req.content_length)
def test_non_keepalive_on_http10(self):
req = self.make_request('GET', '/', version=HttpVersion(1, 0))
self.assertFalse(req.keep_alive)
def test_non_keepalive_on_closing(self):
req = self.make_request('GET', '/', closing=True)
self.assertFalse(req.keep_alive)
def test_call_POST_on_GET_request(self):
req = self.make_request('GET', '/')
ret = self.loop.run_until_complete(req.post())
self.assertEqual(CIMultiDict(), ret)
def test_call_POST_on_weird_content_type(self):
req = self.make_request(
'POST', '/',
headers=CIMultiDict({'CONTENT-TYPE': 'something/weird'}))
ret = self.loop.run_until_complete(req.post())
self.assertEqual(CIMultiDict(), ret)
def test_call_POST_twice(self):
req = self.make_request('GET', '/')
ret1 = self.loop.run_until_complete(req.post())
ret2 = self.loop.run_until_complete(req.post())
self.assertIs(ret1, ret2)
def test_no_request_cookies(self):
req = self.make_request('GET', '/')
self.assertEqual(req.cookies, {})
cookies = req.cookies
self.assertIs(cookies, req.cookies)
def test_request_cookie(self):
headers = CIMultiDict(COOKIE='cookie1=value1; cookie2=value2')
req = self.make_request('GET', '/', headers=headers)
self.assertEqual(req.cookies, {
'cookie1': 'value1',
'cookie2': 'value2',
})
def test_request_cookie__set_item(self):
headers = CIMultiDict(COOKIE='name=value')
req = self.make_request('GET', '/', headers=headers)
self.assertEqual(req.cookies, {'name': 'value'})
with self.assertRaises(TypeError):
req.cookies['my'] = 'value'
def test_match_info(self):
req = self.make_request('GET', '/')
self.assertIsNone(req.match_info)
match = {'a': 'b'}
req._match_info = match
self.assertIs(match, req.match_info)
def test_request_is_dict(self):
req = self.make_request('GET', '/')
self.assertTrue(isinstance(req, dict))
req['key'] = 'value'
self.assertEqual('value', req['key'])
def test___repr__(self):
req = self.make_request('GET', '/path/to')
self.assertEqual("<Request GET /path/to >", repr(req))
| apache-2.0 | 8,015,690,689,329,280,000 | 33.2 | 76 | 0.593651 | false |
ITNano/WikiSubtitleReader | raw_to_ass.py | 1 | 3753 | # -*- coding: utf-8 -*-
#Python class to parse lyrics on the form
#Singer 1: I am so happy, hear me sing
#And write it to an .ass file. (Advanced SubStation Alpha subtitle file)
#The string before the separator ':' is used to format the text by mapping it to
#a predefined format, the remainder is the actual text to sing.
import math
def time_to_seconds(time):
hmmss_list=time.split(':')
seconds=3600*float(hmmss_list[0])+60*float(hmmss_list[1])+float(hmmss_list[2])
return seconds
def seconds_to_time(seconds):
#Seconds are given with two decimal points. 1 digit for hours.
#Minutes and hours are integers.
hours=math.floor(seconds/3600)
seconds=seconds-3600*hours
minutes=math.floor(seconds/60)
seconds=seconds-60*minutes
seconds=float("{0:05.2f}".format(seconds))
if seconds==60:
seconds=0;
minutes=minutes+1;
if minutes==60:
minutes=0
hours=hours+1
#Pads minutes with a leading zero, formats seconds to xx.xx
hmmss_string="{0:01.0f}".format(hours)+':'+"{0:02.0f}".format(minutes)+':'+"{0:05.2f}".format(seconds)
return hmmss_string
class Raw_to_ass_parser():
def parse_line_to_ass(self,line,delimiter,allowEmptyLines):
#example output:
#Dialogue: 0,0:00:26.00,0:00:27.00,CHARACTER,,0,0,0,,I am singing!
#Styledict maps a short form to a style used in the ASS file. Example:
#Styledict["a"]="ANNA"
#Note that keys are all cast to lowercase.
emptyLine = False
if len(line) == 0:
emptyLine = True
if allowEmptyLines:
line = "kommentar:"
else:
return ""
split_line=line.split(delimiter,1)
# Handle lines without explicitly written singer
if len(split_line)==1:
split_line=[self.empty_style,split_line[0]]
# Handle multi/none singer(s)
default_singer = r"OKÄND"
if "," in split_line[0] or "+" in split_line[0]:
default_singer = r"ALLA"
# Handle people singing at the same time
extra_stylepart = ""
if self.multi_line:
extra_stylepart = " NERE"
if split_line[1].strip().endswith(self.multi_line_keyword):
if self.multi_line:
print("WARNING: Found 3+ multiline!")
extra_stylepart = " UPPE"
split_line[1] = split_line[1].strip()[:-len(self.multi_line_keyword)]
self.multi_line = True;
else:
self.multi_line = False;
# Construct the actual data.
outline='Dialogue: 0,'+self.time_start+','+self.time_end+','
outline=outline+self.style_dictionary.get(split_line[0].lower(), default_singer)+extra_stylepart+',,0,0,0,,'+split_line[1].strip()
# Prepare for next line
if not emptyLine:
self.empty_style=split_line[0]
if len(outline) > 0 and not self.multi_line:
self.increment_time()
return outline
def increment_time(self):
float_start=time_to_seconds(self.time_start)
float_end=time_to_seconds(self.time_end)
self.time_start=seconds_to_time(float_start+self.time_step)
self.time_end=seconds_to_time(float_end+self.time_step)
def __init__(self,start_time,increment_time):
self.time_step=float(increment_time)
self.time_start=seconds_to_time(start_time)
self.time_end=seconds_to_time(time_to_seconds(self.time_start)+self.time_step)
self.style_dictionary={}
self.empty_style=""
self.multi_line = False;
self.multi_line_keyword = "[samtidigt]"
| apache-2.0 | 3,436,370,674,309,785,000 | 35.427184 | 138 | 0.598614 | false |
plotly/python-api | packages/python/plotly/plotly/validators/densitymapbox/__init__.py | 1 | 3954 | import sys
if sys.version_info < (3, 7):
from ._zsrc import ZsrcValidator
from ._zmin import ZminValidator
from ._zmid import ZmidValidator
from ._zmax import ZmaxValidator
from ._zauto import ZautoValidator
from ._z import ZValidator
from ._visible import VisibleValidator
from ._uirevision import UirevisionValidator
from ._uid import UidValidator
from ._textsrc import TextsrcValidator
from ._text import TextValidator
from ._subplot import SubplotValidator
from ._stream import StreamValidator
from ._showscale import ShowscaleValidator
from ._showlegend import ShowlegendValidator
from ._reversescale import ReversescaleValidator
from ._radiussrc import RadiussrcValidator
from ._radius import RadiusValidator
from ._opacity import OpacityValidator
from ._name import NameValidator
from ._metasrc import MetasrcValidator
from ._meta import MetaValidator
from ._lonsrc import LonsrcValidator
from ._lon import LonValidator
from ._legendgroup import LegendgroupValidator
from ._latsrc import LatsrcValidator
from ._lat import LatValidator
from ._idssrc import IdssrcValidator
from ._ids import IdsValidator
from ._hovertextsrc import HovertextsrcValidator
from ._hovertext import HovertextValidator
from ._hovertemplatesrc import HovertemplatesrcValidator
from ._hovertemplate import HovertemplateValidator
from ._hoverlabel import HoverlabelValidator
from ._hoverinfosrc import HoverinfosrcValidator
from ._hoverinfo import HoverinfoValidator
from ._customdatasrc import CustomdatasrcValidator
from ._customdata import CustomdataValidator
from ._colorscale import ColorscaleValidator
from ._colorbar import ColorbarValidator
from ._coloraxis import ColoraxisValidator
from ._below import BelowValidator
from ._autocolorscale import AutocolorscaleValidator
else:
from _plotly_utils.importers import relative_import
__all__, __getattr__, __dir__ = relative_import(
__name__,
[],
[
"._zsrc.ZsrcValidator",
"._zmin.ZminValidator",
"._zmid.ZmidValidator",
"._zmax.ZmaxValidator",
"._zauto.ZautoValidator",
"._z.ZValidator",
"._visible.VisibleValidator",
"._uirevision.UirevisionValidator",
"._uid.UidValidator",
"._textsrc.TextsrcValidator",
"._text.TextValidator",
"._subplot.SubplotValidator",
"._stream.StreamValidator",
"._showscale.ShowscaleValidator",
"._showlegend.ShowlegendValidator",
"._reversescale.ReversescaleValidator",
"._radiussrc.RadiussrcValidator",
"._radius.RadiusValidator",
"._opacity.OpacityValidator",
"._name.NameValidator",
"._metasrc.MetasrcValidator",
"._meta.MetaValidator",
"._lonsrc.LonsrcValidator",
"._lon.LonValidator",
"._legendgroup.LegendgroupValidator",
"._latsrc.LatsrcValidator",
"._lat.LatValidator",
"._idssrc.IdssrcValidator",
"._ids.IdsValidator",
"._hovertextsrc.HovertextsrcValidator",
"._hovertext.HovertextValidator",
"._hovertemplatesrc.HovertemplatesrcValidator",
"._hovertemplate.HovertemplateValidator",
"._hoverlabel.HoverlabelValidator",
"._hoverinfosrc.HoverinfosrcValidator",
"._hoverinfo.HoverinfoValidator",
"._customdatasrc.CustomdatasrcValidator",
"._customdata.CustomdataValidator",
"._colorscale.ColorscaleValidator",
"._colorbar.ColorbarValidator",
"._coloraxis.ColoraxisValidator",
"._below.BelowValidator",
"._autocolorscale.AutocolorscaleValidator",
],
)
| mit | 4,225,770,923,051,942,400 | 39.346939 | 60 | 0.657056 | false |
emkael/jfrteamy-playoff | jfr_playoff/gui/tabs.py | 1 | 18307 | #coding=utf-8
import os
from collections import OrderedDict
import Tkinter as tk
import ttk
import tkFileDialog as tkfd
import tkMessageBox as tkmb
from .frames import TraceableText, NumericSpinbox
from .frames.match import *
from .frames.network import *
from .frames.team import *
from .frames.translations import *
from .frames.visual import *
from .variables import NotifyStringVar, NotifyNumericVar, NotifyBoolVar
from ..data import PlayoffData
from ..db import PlayoffDB
class PlayoffTab(ttk.Frame):
def __init__(self, master):
ttk.Frame.__init__(self, master)
self.frame = ttk.Frame(self)
self.frame.pack(fill=tk.BOTH, expand=True, padx=5, pady=5)
self.initData()
self.renderContent(self.frame)
@property
def title(self):
pass
def initData(self):
pass
def renderContent(self, container):
pass
def setValues(self, config):
pass
def getConfig(self):
pass
class MainSettingsTab(PlayoffTab):
DEFAULT_INTERVAL = 60
@property
def title(self):
return 'Główne ustawienia'
def initData(self):
self.outputPath = NotifyStringVar()
self.pageTitle = NotifyStringVar()
self.pageLogoh = NotifyStringVar()
self.favicon = NotifyStringVar()
self.refresh = NotifyBoolVar()
self.refresh.trace('w', self._updateRefreshFields)
self.refreshInterval = NotifyNumericVar()
def _chooseOutputPath(self):
currentPath = self.outputPath.get()
filename = tkfd.asksaveasfilename(
initialdir=os.path.dirname(currentPath) if currentPath else '.',
title='Wybierz plik wyjściowy',
filetypes=(('HTML files', '*.html'),))
if filename:
if not filename.lower().endswith('.html'):
filename = filename + '.html'
self.outputPath.set(filename)
def _updateRefreshFields(self, *args):
self.intervalField.configure(
state=tk.NORMAL if self.refresh.get() else tk.DISABLED)
def setValues(self, config):
self.outputPath.set(config['output'] if 'output' in config else '')
if 'page' in config:
self.pageTitle.set(
config['page'].get('title', ''))
self.pageLogoh.set(
config['page'].get('logoh', ''))
self.favicon.set(
config['page'].get('favicon', ''))
try:
interval = int(config['page']['refresh'])
if interval > 0:
self.refresh.set(1)
self.refreshInterval.set(interval)
else:
self.refresh.set(0)
self.refreshInterval.set(self.DEFAULT_INTERVAL)
except:
self.refresh.set(0)
self.refreshInterval.set(self.DEFAULT_INTERVAL)
else:
self.pageTitle.set('')
self.pageLogoh.set('')
self.favicon.set('')
self.refresh.set(0)
self.refreshInterval.set(self.DEFAULT_INTERVAL)
def renderContent(self, container):
(ttk.Label(container, text='Plik wynikowy:')).grid(
row=0, column=0, sticky=tk.E, pady=2)
outputPath = tk.Frame(container)
outputPath.grid(row=0, column=1, sticky=tk.E+tk.W, pady=2)
(ttk.Entry(outputPath, width=60, textvariable=self.outputPath)).grid(
row=0, column=0, sticky=tk.W+tk.E)
(ttk.Button(
outputPath,
text='wybierz...', command=self._chooseOutputPath)).grid(
row=0, column=1)
outputPath.columnconfigure(0, weight=1)
(ttk.Separator(container, orient=tk.HORIZONTAL)).grid(
row=1, column=0, columnspan=2, sticky=tk.E+tk.W, pady=2)
pageSettings = ttk.LabelFrame(
container, text='Ustawienia strony')
pageSettings.grid(
row=2, column=0, columnspan=2, sticky=tk.W+tk.E+tk.N+tk.S, pady=5)
pageSettings.columnconfigure(1, weight=1)
(ttk.Label(pageSettings, text='Tytuł:')).grid(
row=0, column=0, sticky=tk.E, pady=2)
(tk.Entry(pageSettings, textvariable=self.pageTitle)).grid(
row=0, column=1, sticky=tk.W+tk.E, pady=2)
(ttk.Label(pageSettings, text='Logoh:')).grid(
row=1, column=0, sticky=tk.E+tk.N, pady=2)
(TraceableText(pageSettings, width=45, height=10,
variable=self.pageLogoh)).grid(
row=1, column=1,
sticky=tk.W+tk.N+tk.E+tk.S, pady=2)
(ttk.Label(pageSettings, text='Fawikona:')).grid(
row=2, column=0, sticky=tk.E, pady=2)
(tk.Entry(pageSettings, textvariable=self.favicon)).grid(
row=2, column=1, sticky=tk.W+tk.E, pady=2)
(ttk.Label(pageSettings, text='Odświeżaj:')).grid(
row=3, column=0, sticky=tk.E, pady=2)
refreshPanel = tk.Frame(pageSettings)
refreshPanel.grid(row=3, column=1, sticky=tk.W+tk.E, pady=2)
(ttk.Checkbutton(
refreshPanel,
command=self._updateRefreshFields, variable=self.refresh)).grid(
row=0, column=0)
(ttk.Label(refreshPanel, text='co:')).grid(row=0, column=1)
self.intervalField = NumericSpinbox(
refreshPanel, from_=30, to=3600, width=5, justify=tk.RIGHT,
textvariable=self.refreshInterval)
self.intervalField.grid(row=0, column=2)
(ttk.Label(refreshPanel, text='sekund')).grid(row=0, column=3)
container.columnconfigure(1, weight=1)
container.rowconfigure(4, weight=1)
def getConfig(self):
config = OrderedDict({
'output': self.outputPath.get(),
'page': OrderedDict({
'title': self.pageTitle.get(),
'logoh': self.pageLogoh.get(),
'refresh': self.refreshInterval.get() \
if self.refresh.get() > 0 else 0
})
})
favicon = self.favicon.get().strip()
if len(favicon):
config['page']['favicon'] = favicon
return config
class TeamsTab(PlayoffTab):
@property
def title(self):
return 'Uczestnicy'
def renderContent(self, container):
leftFrame = tk.Frame(container)
leftFrame.pack(side=tk.LEFT, fill=tk.BOTH, expand=True)
self.settingsFrame = TeamSettingsFrame(
leftFrame, vertical=True, padx=5, pady=5)
self.settingsFrame.pack(side=tk.TOP, fill=tk.BOTH, expand=True)
(ttk.Separator(
leftFrame, orient=tk.HORIZONTAL)).pack(
side=tk.TOP, fill=tk.X)
self.aliasFrame = TeamAliasFrame(
leftFrame, vertical=True, padx=5, pady=5)
self.aliasFrame.pack(side=tk.TOP, fill=tk.BOTH, expand=True)
self.previewFrame = TeamPreviewFrame(
container, vertical=True, padx=5, pady=5)
self.previewFrame.pack(side=tk.RIGHT, fill=tk.BOTH, expand=True)
self._teamList = []
self._teamListFetcher = None
self.winfo_toplevel().bind(
'<<TeamSettingsChanged>>', self.onTeamSettingsChange, add='+')
def onTeamSettingsChange(self, event):
if self._teamListFetcher is not None:
self.after_cancel(self._teamListFetcher)
self._teamListFetcher = self.after(500, self._fetchTeamList)
def _fetchTeamList(self):
config = self.collectConfig()
dbConfig = self.winfo_toplevel().getDbConfig()
if dbConfig is not None:
config['database'] = dbConfig
data = PlayoffData()
db = None
try:
db = PlayoffDB(dbConfig)
except Exception:
pass
self._teamList = data.fetch_team_list(config['teams'], db)[0]
self.winfo_toplevel().event_generate(
'<<TeamListChanged>>', when='tail')
def getTeams(self):
return self._teamList
def collectConfig(self):
config = OrderedDict({
'teams': self.settingsFrame.getConfig(),
'team_aliases': self.aliasFrame.getConfig()
})
tieConfig = self.previewFrame.getTieConfig()
if tieConfig is not None and isinstance(config['teams'], dict):
config['teams']['ties'] = tieConfig
orderConfig = self.previewFrame.getOrderConfig()
if orderConfig:
config['custom_final_order'] = orderConfig
return config
def setValues(self, config):
self.settingsFrame.setValues(
config['teams'] if 'teams' in config else [])
self.aliasFrame.setValues(
config['team_aliases'] if 'team_aliases' in config else {})
self.previewFrame.setTieConfig(
config['teams']['ties']
if 'teams' in config and 'ties' in config['teams'] else [])
self.previewFrame.setOrderConfig(
config.get('custom_final_order', []))
def getConfig(self):
return self.collectConfig()
class MatchesTab(PlayoffTab):
@property
def title(self):
return 'Mecze'
def addPhase(self):
phase = MatchPhaseFrame(
self.phaseFrame, vertical=True, padx=10, pady=10)
newPhase = max(self.phases.keys()) + 1 if len(self.phases) else 1
self.phaseFrame.add(phase)
self.phases[newPhase] = phase
self._renameTabs()
self.phaseFrame.select(phase)
self.winfo_toplevel().event_generate(
'<<MatchListChanged>>', when='tail')
self.winfo_toplevel().event_generate(
'<<ValueChanged>>', when='tail')
return newPhase
def removePhase(self, phase=None):
selected = self.phaseFrame.select() if phase is None \
else self.phases[phase]
if selected:
self.phaseFrame.forget(selected)
key_to_delete = None
for key, tab in self.phases.iteritems():
if str(selected) == str(tab):
key_to_delete = key
break
if key_to_delete:
self.phases.pop(key_to_delete)
self.winfo_toplevel().event_generate(
'<<MatchListChanged>>', when='tail')
def _renameTabs(self, *args):
for idx, tab in self.phases.iteritems():
title = tab.name.get().strip()
self.phaseFrame.tab(
tab, text=(title if len(title) else '') + ' (#%d)' % (idx))
def renderContent(self, container):
container.columnconfigure(1, weight=1)
container.rowconfigure(2, weight=1)
(ttk.Label(container, text='Fazy rozgrywek:')).grid(
row=0, column=0, columnspan=2, sticky=tk.W)
(ttk.Button(
container, text='+', command=self.addPhase, width=5)).grid(
row=1, column=0, sticky=tk.W)
(ttk.Button(
container, text='-', command=self.removePhase, width=5)).grid(
row=1, column=1, sticky=tk.W)
self.phases = {}
self.phaseFrame = ttk.Notebook(container)
self.phaseFrame.grid(
row=2, column=0, columnspan=2, sticky=tk.W+tk.E+tk.N+tk.S)
self.winfo_toplevel().bind(
'<<PhaseRenamed>>', self._renameTabs, add='+')
def getMatches(self):
matches = []
for phase in self.phases.values():
matches += [w for w in phase.matches.widgets
if isinstance(w, MatchSettingsFrame)]
return matches
def setValues(self, config):
phases = config['phases'] if 'phases' in config else []
for idx in self.phases.keys():
self.removePhase(idx)
for phase in phases:
newPhase = self.addPhase()
self.phases[newPhase].setValues(phase)
for phase in self.phases.values():
for match in phase.matches.widgets:
if isinstance(match, MatchSettingsFrame) \
and match.getMatchID == 0:
match.matchID.set(
self.winfo_toplevel().getNewMatchID(match))
def getConfig(self):
return OrderedDict({
'phases': [phase.getConfig() for phase in self.phases.values()]
})
class SwissesTab(PlayoffTab):
@property
def title(self):
return 'Swissy'
def renderContent(self, container):
self.swisses = SwissesFrame(container, vertical=True)
self.swisses.pack(side=tk.TOP, fill=tk.BOTH, expand=True)
def setValues(self, config):
self.swisses.setValues(config['swiss'] if 'swiss' in config else [])
def getConfig(self):
swisses = self.swisses.getValues()
if len(swisses):
return OrderedDict({
'swiss': swisses
})
else:
return None
class NetworkTab(PlayoffTab):
@property
def title(self):
return 'Sieć'
def _onDBSettingsChange(self, event):
if self.dbFetchTimer is not None:
self.after_cancel(self.dbFetchTimer)
self.dbFetchTimer = self.after(1500, self._fetchDBList)
def _fetchDBList(self):
self._dbList = []
try:
db = PlayoffDB(self.getDB())
for row in db.fetch_all(
'information_schema',
'SELECT TABLE_SCHEMA FROM information_schema.COLUMNS WHERE TABLE_NAME = "admin" AND COLUMN_NAME = "teamcnt" ORDER BY TABLE_SCHEMA;', {}):
self._dbList.append(row[0])
except Exception as e:
pass
self.winfo_toplevel().event_generate('<<DBListChanged>>', when='tail')
def getDBList(self):
return self._dbList
def getDB(self):
return self.mysqlFrame.getConfig()
def renderContent(self, container):
container.columnconfigure(0, weight=1)
container.columnconfigure(1, weight=1)
container.rowconfigure(1, weight=1)
self.mysqlFrame = MySQLConfigurationFrame(container)
self.mysqlFrame.grid(row=0, column=0, sticky=tk.W+tk.E+tk.N+tk.S)
self.goniecFrame = GoniecConfigurationFrame(container)
self.goniecFrame.grid(row=0, column=1, sticky=tk.W+tk.E+tk.N+tk.S)
self.remoteFrame = RemoteConfigurationFrame(container, vertical=True)
self.remoteFrame.grid(
row=1, column=0, columnspan=2, sticky=tk.W+tk.E+tk.N+tk.S)
self._dbList = []
self.dbFetchTimer = None
self.winfo_toplevel().bind(
'<<DBSettingsChanged>>', self._onDBSettingsChange, add='+')
def setValues(self, config):
self.mysqlFrame.setValues(
config['database'] if 'database' in config else {})
self.goniecFrame.setValues(
config['goniec'] if 'goniec' in config else {})
self.remoteFrame.setValues(
config['remotes'] if 'remotes' in config else [])
def getConfig(self):
config = OrderedDict()
mysql = self.getDB()
if mysql is not None:
config['database'] = mysql
config['goniec'] = self.goniecFrame.getValues()
remotes = self.remoteFrame.getValues()
if len(remotes):
config['remotes'] = remotes
return config
class VisualTab(PlayoffTab):
@property
def title(self):
return 'Wygląd'
def renderContent(self, container):
container.columnconfigure(0, weight=1)
container.rowconfigure(1, weight=1)
self.settingsFrame = VisualSettingsFrame(container)
self.settingsFrame.grid(row=0, column=0, sticky=tk.S+tk.N+tk.E+tk.W)
self.positionFrame = BoxPositionsFrame(container, vertical=True)
self.positionFrame.grid(row=1, column=0, sticky=tk.S+tk.N+tk.E+tk.W)
def setValues(self, config):
if 'page' in config:
self.settingsFrame.setValues(config['page'])
else:
self.settingsFrame.setValues({})
if 'canvas' in config and 'box_positioning' in config['canvas']:
self.positionFrame.setValues(config['canvas']['box_positioning'])
else:
self.positionFrame.setValues({})
def getConfig(self):
config = OrderedDict({
'page': self.settingsFrame.getValues()
})
boxConfig = self.positionFrame.getValues()
if boxConfig:
config['canvas'] = OrderedDict()
config['canvas']['box_positioning'] = boxConfig
return config
class StyleTab(PlayoffTab):
@property
def title(self):
return 'Style'
def renderContent(self, container):
self.linesFrame = LineStylesFrame(container)
self.linesFrame.pack(side=tk.TOP, anchor=tk.W)
(ttk.Separator(container, orient=tk.HORIZONTAL)).pack(
side=tk.TOP, fill=tk.X)
self.positionStylesFrame = PositionStylesFrame(
container, vertical=True)
self.positionStylesFrame.pack(side=tk.TOP, fill=tk.BOTH, expand=True)
def setValues(self, config):
if 'canvas' in config:
self.linesFrame.setValues(config['canvas'])
else:
self.linesFrame.setValues({})
if 'position_styles' in config:
self.positionStylesFrame.setValues(config['position_styles'])
else:
self.positionStylesFrame.setValues([])
def getConfig(self):
return OrderedDict({
'canvas': self.linesFrame.getValues(),
'position_styles': self.positionStylesFrame.getValues()
})
class TranslationsTab(PlayoffTab):
@property
def title(self):
return 'Tłumaczenia'
def renderContent(self, container):
self.translationsFrame = TranslationConfigurationFrame(
container, vertical=True)
self.translationsFrame.pack(side=tk.TOP, fill=tk.BOTH, expand=True)
def setValues(self, config):
if 'i18n' in config:
self.translationsFrame.setTranslations(config['i18n'])
else:
self.translationsFrame.setTranslations({})
def getConfig(self):
return OrderedDict({
'i18n': self.translationsFrame.getTranslations()
})
__all__ = ['MainSettingsTab', 'TeamsTab', 'MatchesTab', 'SwissesTab',
'NetworkTab', 'VisualTab', 'StyleTab', 'TranslationsTab']
| bsd-2-clause | -9,176,648,892,678,380,000 | 34.324324 | 157 | 0.592251 | false |
sdanielf/dictate | dictation/config.py | 1 | 2826 | # Copyright (C) 2013 S. Daniel Francis <[email protected]>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
# MA 02110-1301, USA.
import os
from gettext import gettext as _
import ConfigParser
from dictation.espeak import espeak_voices
configpath = os.path.join(os.environ['HOME'], '.dictate')
espeak_args = _('Options given to espeak. (See "espeak --help")')
settings = {'tbw': ('-t', '--tbw', 'TWB', {'type': 'float', 'min': 0},
_('Time Between Words (Word length * TBW)'), '0.5'),
'espeak_options': ('-e', '--espeak_options', 'ARGS',
{'type': 'str'}, espeak_args, ''),
'language': ('-l', '--language', 'LANG',
{'type': 'choice', 'options': espeak_voices},
_('Language voice to speak'), 'default'),
'speed': ('-s', '--speed', 'SPEED',
{'type': 'int', 'min': 80, 'max': 450},
_('Speed in words per minute. From 80 to 450'), '80')}
options = {}
if not os.path.exists(configpath):
config = ConfigParser.RawConfigParser()
config.add_section('Dictation')
for setting in settings:
config.set('Dictation', setting, settings[setting][-1])
configfile = open(configpath, 'w')
config.write(configfile)
configfile.close()
config = ConfigParser.RawConfigParser()
config.read(configpath)
for i in settings:
try:
options[i] = config.get('Dictation', i)
except:
options[i] = settings[i][-1]
def get_tbw():
try:
return float(options['tbw'])
except:
return float(settings['tbw'][-1])
def get_espeak_options():
try:
return options['espeak_options'].split()
except:
return settings['espeak_options'][-1].split()
def get_language():
language = options['language']
if language in espeak_voices:
return language
else:
return settings['language'][-1]
def get_speed():
try:
speed = int(options['speed'])
if speed >= 80 and speed <= 450:
return options['speed']
else:
raise Exception
except:
return settings['speed'][-1]
| gpl-3.0 | -8,019,251,777,635,433,000 | 33.048193 | 76 | 0.61005 | false |
ealmansi/incc-tp-final | src/gensim/tut2.py | 1 | 1637 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# https://radimrehurek.com/gensim/tut2.html
import logging
logging.basicConfig(format='%(asctime)s : %(levelname)s : %(message)s', level=logging.INFO)
import os
from gensim import corpora, models, similarities
if (os.path.exists("/tmp/deerwester.dict")):
dictionary = corpora.Dictionary.load('/tmp/deerwester.dict')
corpus = corpora.MmCorpus('/tmp/deerwester.mm')
print("Used files generated from first tutorial")
else:
print("Please run first tutorial to generate data set")
tfidf = models.TfidfModel(corpus) # step 1 -- initialize a model
doc_bow = [(0, 1), (1, 1)]
print(tfidf[doc_bow]) # step 2 -- use the model to transform vectors
corpus_tfidf = tfidf[corpus]
for doc in corpus_tfidf:
print(doc)
lsi = models.LsiModel(corpus_tfidf, id2word=dictionary, num_topics=2) # initialize an LSI transformation
corpus_lsi = lsi[corpus_tfidf] # create a double wrapper over the original corpus: bow->tfidf->fold-in-lsi
lsi.print_topics(2)
for doc in corpus_lsi: # both bow->tfidf and tfidf->lsi transformations are actually executed here, on the fly
print(doc)
lsi.save('/tmp/model.lsi') # same for tfidf, lda, ...
lsi = models.LsiModel.load('/tmp/model.lsi')
tfidf_model = models.TfidfModel(corpus, normalize=True)
lsi_model = models.LsiModel(corpus_tfidf, id2word=dictionary, num_topics=300)
rp_model = models.RpModel(corpus_tfidf, num_topics=500)
lda_model = models.LdaModel(corpus, id2word=dictionary, num_topics=100)
hdp_model = models.HdpModel(corpus, id2word=dictionary)
print(tfidf_model)
print(lsi_model)
print(rp_model)
print(lda_model)
print(hdp_model)
| mit | 5,472,797,103,600,224,000 | 33.104167 | 110 | 0.735492 | false |
milapour/palm | palm/test/test_blink_model.py | 1 | 3374 | import nose.tools
from palm.blink_factory import SingleDarkBlinkFactory,\
DoubleDarkBlinkFactory,\
ConnectedDarkBlinkFactory
from palm.blink_model import BlinkModel
from palm.blink_parameter_set import SingleDarkParameterSet,\
DoubleDarkParameterSet,\
ConnectedDarkParameterSet
from palm.util import n_choose_k
@nose.tools.istest
def SingleDarkModelHasCorrectNumberOfStatesAndRoutes():
parameter_set = SingleDarkParameterSet()
parameter_set.set_parameter('N', 3)
model_factory = SingleDarkBlinkFactory()
model = model_factory.create_model(parameter_set)
num_states = model.get_num_states()
N = parameter_set.get_parameter('N')
expected_num_states = n_choose_k(N+3, 3)
error_message = "Got model with %d states, " \
"expected model with %d states.\n %s" % \
(num_states, expected_num_states, str(model))
nose.tools.eq_(num_states, expected_num_states,
error_message)
num_routes = model.get_num_routes()
nose.tools.ok_(num_routes > 0, "Model doesn't have routes.")
# print model.state_collection
# print model.route_collection
@nose.tools.istest
def DoubleDarkModelHasCorrectNumberOfStatesAndRoutes():
parameter_set = DoubleDarkParameterSet()
parameter_set.set_parameter('N', 5)
parameter_set.set_parameter('log_kr_diff', -1.0)
model_factory = DoubleDarkBlinkFactory()
model = model_factory.create_model(parameter_set)
num_states = model.get_num_states()
N = parameter_set.get_parameter('N')
expected_num_states = n_choose_k(N+4, 4)
error_message = "Got model with %d states, " \
"expected model with %d states.\n %s" % \
(num_states, expected_num_states, str(model))
nose.tools.eq_(num_states, expected_num_states,
error_message)
num_routes = model.get_num_routes()
nose.tools.ok_(num_routes > 0, "Model doesn't have routes.")
@nose.tools.istest
def initial_vector_gives_probability_one_to_state_with_all_inactive():
parameter_set = SingleDarkParameterSet()
model_factory = SingleDarkBlinkFactory()
model = model_factory.create_model(parameter_set)
init_prob_vec = model.get_initial_probability_vector()
prob = init_prob_vec.get_state_probability(model.all_inactive_state_id)
nose.tools.eq_(prob, 1.0)
@nose.tools.istest
def ConnectedDarkModelHasCorrectNumberOfStatesAndRoutes():
parameter_set = ConnectedDarkParameterSet()
parameter_set.set_parameter('N', 3)
parameter_set.set_parameter('log_kr2', -1.0)
model_factory = ConnectedDarkBlinkFactory()
model = model_factory.create_model(parameter_set)
num_states = model.get_num_states()
N = parameter_set.get_parameter('N')
expected_num_states = n_choose_k(N+4, 4)
error_message = "Got model with %d states, " \
"expected model with %d states.\n %s" % \
(num_states, expected_num_states, str(model))
nose.tools.eq_(num_states, expected_num_states,
error_message)
num_routes = model.get_num_routes()
nose.tools.ok_(num_routes > 0, "Model doesn't have routes.")
print model.state_collection
print model.route_collection
| bsd-2-clause | 1,793,866,859,589,507,000 | 40.654321 | 75 | 0.65412 | false |
tomzw11/Pydrone | route.py | 1 | 2000 | import matplotlib.pyplot as plt
import matplotlib.patches as patches
def route(root):
root_height = root[2]
coordinates = [\
[0.42*root_height+root[0],0.42*root_height+root[1],root_height/2],\
[-0.42*root_height+root[0],0.42*root_height+root[1],root_height/2],\
[-0.42*root_height+root[0],-0.15*root_height+root[1],root_height/2],\
[0.42*root_height+root[0],-0.15*root_height+root[1],root_height/2]]
return coordinates
if __name__ == "__main__":
meter_to_feet = 3.28
root = [0,0,16*1]
print 'root',root,'\n'
level1 = route(root)
print 'level 1 \n'
print level1[0],'\n'
print level1[1],'\n'
print level1[2],'\n'
print level1[3],'\n'
print 'level 2 \n'
level2 = [[0]*3]*4
for x in xrange(4):
level2[x] = route(level1[x])
for y in xrange(4):
print 'level2 point[',x+1,y+1,']',level2[x][y],'\n'
fig, ax = plt.subplots()
ball, = plt.plot(6.72+1.52,6.72+1.52,'mo')
plt.plot(0,0,'bo')
plt.plot([level1[0][0],level1[1][0],level1[2][0],level1[3][0]],[level1[0][1],level1[1][1],level1[2][1],level1[3][1]],'ro')
rect_blue = patches.Rectangle((-13.44,-4.8),13.44*2,9.12*2,linewidth=1,edgecolor='b',facecolor='b',alpha = 0.1)
ax.add_patch(rect_blue)
rect_red = patches.Rectangle((0,4.23),13.44,9.12,linewidth=1,edgecolor='r',facecolor='r',alpha = 0.3)
ax.add_patch(rect_red)
plt.plot([level2[0][0][0],level2[0][1][0],level2[0][2][0],level2[0][3][0]],[level2[0][0][1],level2[0][1][1],level2[0][2][1],level2[0][3][1]],'go')
rect_green = patches.Rectangle((6.72,6.72+4.23/2),13.44/2,9.12/2,linewidth=1,edgecolor='g',facecolor='g',alpha = 0.5)
ax.add_patch(rect_green)
linear_s = [12,12]
plt.plot(12,12,'yo')
rect_yellow = patches.Rectangle((10,11),13.44/4,9.12/4,linewidth=1,edgecolor='y',facecolor='y',alpha = 0.5)
ax.add_patch(rect_yellow)
ax.legend([ball,rect_blue,rect_red,rect_green,rect_yellow],['Ball','Root View','Level 1 - 4 anchors','Level 2 - 16 anchors','Linear Search - 64 anchors'])
plt.axis([-13.44, 13.44, -4.8, 13.44])
plt.show()
| mit | 8,674,524,241,058,925,000 | 26.777778 | 155 | 0.6335 | false |
PierreBdR/point_tracker | point_tracker/tissue_plot/tracking_plot.py | 1 | 45873 | # coding=utf-8
from __future__ import print_function, division, absolute_import
"""
This module contains the bases classes needed for plotting.
"""
__author__ = "Pierre Barbier de Reuille <[email protected]>"
from PyQt4.QtGui import (QColor, QDialog, QFontDialog, QFont, QDoubleValidator, QPicture,
QPainter, QFileDialog)
from PyQt4.QtCore import QObject, Slot, QTimer, Signal
from ..transferfunction import TransferFunction
from ..transferfunctiondlg import TransferFunctionDlg
from ..scale_bar import ScaleBar as ScaleBarDrawer
from ..sys_utils import setColor, changeColor, getColor, createForm
from ..debug import log_debug
from math import hypot as norm
from ..path import path
from ..tracking_data import RetryTrackingDataException, TrackingData
from ..growth_computation_methods import Result
from ..sys_utils import toBool, cleanQObject
def make_cap_symetric(caps):
caps = list(caps)
if caps[0] * caps[1] < 0:
caps[1] = max(abs(caps[0]), abs(caps[1]))
caps[0] = -caps[1]
elif caps[1] > 0:
caps[0] = 0
else:
caps[1] = 0
return tuple(caps)
cell_colorings_cls = []
"""
List of cell coloring classes.
:type: list of class
"""
wall_colorings_cls = []
"""
List of wall coloring classes.
:type: list of class
"""
point_colorings_cls = []
"""
List of point coloring classes.
:type: list of class
"""
class Struct(object):
pass
def reset_classes():
global cell_colorings_cls
global wall_colorings_cls
global point_colorings_cls
del cell_colorings_cls[:]
del wall_colorings_cls[:]
del point_colorings_cls[:]
def transfer_fct_dlg():
"""
This function create a singleton of the transfer function dialog box.
"""
if transfer_fct_dlg.instance is None:
dlg = TransferFunctionDlg()
dlg.use_histogram = False
dlg.loadSettings("")
transfer_fct_dlg.instance = dlg
return transfer_fct_dlg.instance
transfer_fct_dlg.instance = None
class NoParametersObject(QObject):
changed = Signal()
"""
Class handling parameters when none are needed.
It is also useful as a template to create a new parameter class.
:Parameters:
params : struct
Structure holding the parameters for this class
"""
def __init__(self, params, parent=None):
QObject.__init__(self, parent)
pass
def widget(self, parent):
"""
:returns: The widget used to get the values or None.
:returntype: QWidget|None
"""
return None
@staticmethod
def load(params, settings):
"""
Load the parameters and save them in the `params` argument.
:Parameters:
params : struct
Structure in which to place the parameters.
settings : `QSettings`
Settings object where the settings are read. No need to create a group ...
"""
pass
@staticmethod
def save(params, settings):
"""
Save the parameters contained in the `params` argument.
:Parameters:
params : struct
Structure in which to place the parameters.
settings : `QSettings`
Settings object where the settings are read. No need to create a group ...
"""
pass
class ColoringObject(QObject):
changed = Signal()
"""
Base class for all coloring object.
If the parameters of the object change, the ``changed`` signal is sent.
:signal: ``changed``
"""
parameter_class = NoParametersObject
"""
Object used to store the parameters
"""
coloring_name = None
"""
Name of the coloring.
"""
settings_name = None
"""
Name used to store in the settings
"""
def __init__(self, result, parent=None):
QObject.__init__(self, parent)
self._result = result
self._parameters = None
self._config = None
self._update_parameters()
def __del__(self):
cleanQObject(self)
@property
def result(self):
'''Result object used for coloring'''
return self._result
@result.setter
def result(self, value):
if self._result != value:
self._result = value
self._update_parameters()
@property
def parameters(self):
'''
Parameter class as a singleton per instance
'''
if self._parameters is None:
self._parameters = self.create_parameters()
self._parameters.changed.connect(self.changed)
return self._parameters
#{ Main interface methods
def init(self):
"""
Initialise the object if needed.
This function is called once after all the parameters of the object are set to allow for precomputing.
"""
pass
def startImage(self, painter, imageid):
"""
This method is called once the image is placed but before any cell or wall is drawn.
"""
pass
def finalizeImage(self, painter, imageid, image_transform, size=None):
"""
This method is called after all cells and walls are drawn.
Useful to add elements global to the image (i.e. color scale, ...)
"""
pass
def __call__(self, imageid, uid):
"""
:Parameters:
imageid : int
Id of the image in the result (i.e. its position in the images list)
uid : int | (int,int)
A cell id if integer, a wall id if tuple
:returns: the color of the object according to the instanciated class.
:returntype: `QColor`
"""
raise NotImplemented("This is an abstract method.")
def config_widget(self, parent):
"""
Default implementation returns `_config` if it exists, otherwise,
call `_config_widget` and store the result in `_config` for
later calls.
:returns: The configuration widget for the current method
:returntype: `QWidget`
"""
if self._config is None:
log_debug("Creating config widget")
self._config = self._config_widget(parent)
self._update_parameters()
return self._config
@staticmethod
def accept_result_type(result_type):
"""
:returns: true if the result type is handled by the class, False otherwise.
:returntype: bool
Default implementation accept nothing.
:Parameters:
result_type: str
For now, it is one of "Data" and "Growth" depending if the object is a growth
result object or a data object.
"""
return False
#{ Private methods to implement in subclasses if needed
def _update_parameters(self):
"""
Update the parameters according to the current result object.
Default implementation does nothing.
"""
pass
def _config_widget(self, parent):
"""
Return a new config widget at each call.
"""
return self.parameters.widget(parent)
@classmethod
def load_parameters(cls, settings):
"""
Load the parameters from settings.
Default implementation uses the class defined in the `parameter_class`
class member with the name `settings_name`.
"""
from ..parameters import instance
params = instance.plotting
name = cls.settings_name
s = Struct()
settings.beginGroup(name)
cls.parameter_class.load(s, settings)
setattr(params, name, s)
settings.endGroup()
@classmethod
def save_parameters(cls, settings):
"""
Save the parameters into a settings object.
Default implementation uses the class defined in the `parameter_class`
class member with the name `settings_name`.
"""
from ..parameters import instance
params = instance.plotting
name = cls.settings_name
if hasattr(params, name):
s = getattr(params, name)
settings.beginGroup(name)
cls.parameter_class.save(s, settings)
settings.endGroup()
@classmethod
def create_parameters(cls):
"""
Create an instance of the parameter class `parameter_class`.
"""
from ..parameters import instance
params = instance.plotting
name = cls.settings_name
p = getattr(params, name)
return cls.parameter_class(p)
#}
coloring_baseclasses = {}
coloring_classes = {'cell': cell_colorings_cls,
'wall': wall_colorings_cls,
'point': point_colorings_cls}
coloring_metaclasses = {}
def ColoringObjectType(*objects):
if not objects:
objects = ('cell', 'wall', 'point')
objects = frozenset(objects)
global coloring_metaclasses
if objects not in coloring_metaclasses:
colorings_cls = tuple(coloring_classes[obj] for obj in objects)
class ObjectColoringObjectType(type(QObject)):
def __init__(cls, name, bases, dct):
#print("Adding coloring object {0} for objects {1}".format(cls, ", ".join(objects)))
type(QObject).__init__(cls, name, bases, dct)
if cls.coloring_name:
for ccls in colorings_cls:
ccls.append(cls)
coloring_metaclasses[objects] = ObjectColoringObjectType
return coloring_metaclasses[objects]
def ColoringClass(objects=None, base=ColoringObject):
if objects is None:
objects = ('cell', 'wall', 'point')
elif not isinstance(objects, tuple):
objects = (objects,)
ids = frozenset(objects + (base,))
global coloring_baseclasses
if ids not in coloring_baseclasses:
name = "{0}ColoringBaseClass".format("".join(t.capitalize() for t in objects))
ColoringBaseClass = ColoringObjectType(*objects)(name, (base,), {})
coloring_baseclasses[ids] = ColoringBaseClass
return coloring_baseclasses[ids]
class ScaleBar(QObject):
changed = Signal()
"""
The scale bar has to be inherited.
It assumes there is a `transfer_function` property defined when the scale bar might be drawn.
If any parameter change, the ``changed`` signal is sent.
:signal: ``changed``
"""
def __init__(self, params, parent=None):
QObject.__init__(self, parent)
self._scale_config = None
self._scale_config_param = None
self._scale_text = params.scale_text
self._scale_line = params.scale_line
self._scale_line_thickness = params.scale_line_thickness
self._scale_position = params.scale_position
self._scale_font = params.scale_font
self._scale_show = params.scale_show
self._scale_bar_outside_image = params.scale_bar_outside_image
self._params = params
def _showConfig(self):
self._scale_config_param.exec_()
def addScaleBarWidget(self, parent):
config = createForm("plot_scale.ui", parent)
config_params = createForm("plot_scale_config.ui", None)
self._scale_config = config
self._scale_config_param = config_params
config.configuration.clicked.connect(self._showConfig)
config.scaleBar.toggled.connect(self.set_scale_show)
config_params.selectTextColor.clicked.connect(self._changeScaleTextColor)
config_params.selectLineColor.clicked.connect(self._changeScaleLineColor)
config_params.selectPosition.highlighted['QString'].connect(self.set_scale_position)
config_params.selectFont.clicked.connect(self._changeFont)
config_params.lineThickness.valueChanged[int].connect(self._changeScaleLineThickness)
config_params.outsideImage.toggled.connect(self._set_scaleBarOutsideImage)
config.scaleBar.setChecked(self.scale_show)
scaled_font = QFont(self.scale_font)
scaled_font.setPointSizeF(config_params.selectFont.font().pointSizeF())
config_params.selectFont.setFont(scaled_font)
setColor(config_params.textColor, self.scale_text)
setColor(config_params.lineColor, self.scale_line)
config_params.outsideImage.setChecked(self.scale_bar_outside_image)
for i in range(config_params.selectPosition.count()):
txt = config_params.selectPosition.itemText(i)
if txt == self.scale_position:
config_params.selectPosition.setCurrentIndex(i)
break
else:
self.scale_position = config_params.selectPosition.itemText(0)
config_params.selectPosition.setCurrentIndex(0)
parent.layout().addWidget(config)
@Slot()
def _changeFont(self):
fnt, ok = QFontDialog.getFont(self.scale_font, self._scale_config_param, "Font for the color scale bar")
if ok:
self.scale_font = fnt
normal_size = self._scale_config_param.selectFont.font().pointSizeF()
scaled_font = QFont(fnt)
scaled_font.setPointSizeF(normal_size)
self._scale_config_param.selectFont.setFont(scaled_font)
@Slot()
def _changeScaleLineColor(self):
if changeColor(self._scale_config_param.lineColor):
self.scale_line = getColor(self._scale_config_param.lineColor)
@Slot(int)
def _changeScaleLineThickness(self, value):
self.scale_line_thickness = value
@Slot(bool)
def _set_scaleBarOutsideImage(self, value):
self.scale_bar_outside_image = value
@Slot()
def _changeScaleTextColor(self):
if changeColor(self._scale_config_param.textColor):
self.scale_text = getColor(self._scale_config_param.textColor)
@property
def scale_text(self):
"""
Color of the text on the scale bar
:returntype: QColor
"""
return self._scale_text
@scale_text.setter
def scale_text(self, value):
value = QColor(value)
if self._scale_text != value:
self._scale_text = value
self._params.scale_text = value
self.changed.emit()
@property
def scale_line(self):
"""
Color of the line around the scale bar and the ticks of the scale bar.
:returntype: QColor
"""
return self._scale_line
@scale_line.setter
def scale_line(self, value):
value = QColor(value)
if self._scale_line != value:
self._scale_line = value
self._params.scale_line = value
self.changed.emit()
@property
def scale_line_thickness(self):
"""
Thickness of the line around the scale bar and the ticks of the scale bar.
:returntype: QColor
"""
return self._scale_line_thickness
@scale_line_thickness.setter
def scale_line_thickness(self, value):
value = int(value)
if self._scale_line_thickness != value:
self._scale_line_thickness = value
self._params.scale_line_thickness = value
self.changed.emit()
@property
def scale_position(self):
"""
Position of the scale bar with respect to the image. Must be one of "Top", "Right", "Bottom" or "Left".
:returntype: str
"""
return self._scale_position
@scale_position.setter
def scale_position(self, value):
value = str(value)
if self._scale_position != value:
self._scale_position = value
self._params.scale_position = value
self.changed.emit()
@Slot(str)
def set_scale_position(self, value):
self.scale_position = value
@property
def scale_show(self):
"""
Wether or not to show the scale bar
:returntype: bool
"""
return self._scale_show
@scale_show.setter
def scale_show(self, value):
value = bool(value)
if self._scale_show != value:
self._scale_show = value
self._params.scale_show = value
self.changed.emit()
@Slot(bool)
def set_scale_show(self, value):
self.scale_show = value
@property
def scale_bar_outside_image(self):
"""
Wether or not to show the scale bar
:returntype: bool
"""
return self._scale_bar_outside_image
@scale_bar_outside_image.setter
def scale_bar_outside_image(self, value):
value = bool(value)
if self._scale_bar_outside_image != value:
self._scale_bar_outside_image = value
self._params.scale_bar_outside_image = value
self.changed.emit()
@property
def scale_font(self):
"""
Font used for the text of the scale bar.
:returntype: QFont
"""
return self._scale_font
@scale_font.setter
def scale_font(self, value):
value = QFont(value)
if self._scale_font != value:
self._scale_font = value
self._params.scale_font = value
self.changed.emit()
def drawScaleBar(self, painter, value_range, unit="", size=None):
if self.scale_show:
sc = ScaleBarDrawer(position=self.scale_position,
transfer_function=self.transfer_function,
font=self.scale_font,
text_color=self.scale_text,
line_color=self.scale_line,
line_thickness=self.scale_line_thickness,
value_range=value_range,
unit=unit)
log_debug("Drawing scale bar!")
if not self.scale_bar_outside_image:
sc.draw(painter, size)
else:
if size is None:
viewport = painter.viewport() # viewport rectangle
mat, ok = painter.worldMatrix().inverted()
if not ok:
raise ValueError("Transformation matrix of painter is singular.")
size = mat.mapRect(viewport)
pic = QPicture()
new_painter = QPainter()
new_painter.begin(pic)
bounding_rect = sc.draw(new_painter, size)
new_painter.end()
pic.setBoundingRect(pic.boundingRect() | bounding_rect.toRect())
log_debug("Returning picture %s" % (pic,))
return pic
@staticmethod
def load(params, settings):
col = QColor(settings.value("ScaleText"))
if not col.isValid():
col = QColor(0, 0, 0)
params.scale_text = col
col = QColor(settings.value("ScaleLine"))
if not col.isValid():
col = QColor(0, 0, 0)
params.scale_line = col
try:
params.scale_line_thickness = int(settings.value("ScaleLineThickness"))
except (ValueError, TypeError):
params.scale_line_thickness = 0
params.scale_position = settings.value("ScalePosition", "Top")
fnt = QFont(settings.value("ScaleFont", QFont()))
params.scale_font = fnt
params.scale_show = toBool(settings.value("ScaleShow", "True"))
params.scale_bar_outside_image = toBool(settings.value("ScaleBarOutsideImage", "False"))
@staticmethod
def save(params, settings):
settings.setValue("ScaleText", params.scale_text)
settings.setValue("ScaleLine", params.scale_line)
settings.setValue("ScaleLineThickness", params.scale_line_thickness)
settings.setValue("ScalePosition", params.scale_position)
settings.setValue("ScaleFont", params.scale_font)
settings.setValue("ScaleShow", params.scale_show)
settings.setValue("ScaleBarOutsideImage", params.scale_bar_outside_image)
def fixRangeParameters(m, M):
range = (m, M)
class FixRangeParameters(ScaleBar):
"""
Parameters for the theta object.
"""
def __init__(self, params):
ScaleBar.__init__(self, params)
self.range = range
self._transfer_function = params.transfer_function
self._config = None
@property
def transfer_function(self):
'''Transfer function used to convert values into colors
:returntype: `TransferFunction`'''
return self._transfer_function
@transfer_function.setter
def transfer_function(self, value):
if self._transfer_function != value:
self._transfer_function = TransferFunction(value)
self._params.transfer_function = self._transfer_function
self.changed.emit()
@property
def value_capping(self):
return None
@value_capping.setter
def value_capping(self, value):
pass
@property
def symetric_coloring(self):
return False
def widget(self, parent):
config = createForm("plot_param_theta.ui", parent)
self._config = config
config.changeColorMap.clicked.connect(self._changeColorMap)
self.addScaleBarWidget(config)
return self._config
def drawScaleBar(self, painter, value_range, unit, size=None):
return ScaleBar.drawScaleBar(self, painter, self.range, unit, size)
@Slot()
def _changeColorMap(self):
dlg = transfer_fct_dlg()
dlg.transfer_fct = self.transfer_function
if dlg.exec_() == QDialog.Accepted:
self.transfer_function = dlg.transfer_fct
dlg.saveSettings("")
@staticmethod
def load(params, settings):
ScaleBar.load(params, settings)
tr = settings.value("TransferFunction", "")
if tr:
params.transfer_function = TransferFunction.loads(tr)
else:
params.transfer_function = TransferFunction.hue_scale()
params.symetric_coloring = False
params.value_capping = None
@staticmethod
def save(params, settings):
ScaleBar.save(params, settings)
settings.setValue("TransferFunction", params.transfer_function.dumps())
return FixRangeParameters
class TransferFunctionParameters(ScaleBar):
"""
Parameters for continuous objects.
"""
def __init__(self, params):
ScaleBar.__init__(self, params)
self._transfer_function = params.transfer_function
self._symetric_coloring = params.symetric_coloring
self._value_capping = params.value_capping
self._minmax_values = (-100.0, 100.0)
self._config = None
@property
def transfer_function(self):
'''Transfer function used to convert values into colors
:returntype: `TransferFunction`'''
return self._transfer_function
@transfer_function.setter
def transfer_function(self, value):
if self._transfer_function != value:
self._transfer_function = TransferFunction(value)
self._params.transfer_function = self._transfer_function
self.changed.emit()
@property
def symetric_coloring(self):
'''
If true, the color scheme is forced to be symetric. i.e. If all
values are of the same sign, then 0 is forced into the range.
Otherwise, 0 is the middle color of the transfer function.
:returntype: `bool`
'''
return self._symetric_coloring
@Slot(bool)
def _set_symetric_coloring(self, value):
value = bool(value)
if self._symetric_coloring != value:
self._symetric_coloring = value
self._params.symetric_coloring = value
self.changed.emit()
symetric_coloring.setter(_set_symetric_coloring)
@Slot(bool)
def set_symetric_coloring(self, value):
self.symetric_coloring = value
@property
def value_capping(self):
"""
If not None, value_capping gives the min and max of the color used.
If symetric_coloring is True, the actual capping will be adjusted
to a symetric one.
:returntype: (float,float)|None
"""
return self._value_capping
@value_capping.setter
def value_capping(self, value):
if value is not None:
value = (float(value[0]), float(value[1]))
if self._value_capping != value:
self._value_capping = value
self._params.value_capping = value
self.changed.emit()
@property
def minmax_values(self):
'''
Get the min and max of the values for the capping
:returntype: (float,float)
'''
return self._minmax_values
@minmax_values.setter
def minmax_values(self, value):
value = (float(value[0]), float(value[1]))
if self._minmax_values != value:
self._minmax_values = value
self.changed.emit()
if self._config is not None:
self.resetMinMax(value)
def resetMinMax(self, bounds):
self._config.minCap.setText(u"{:.5g}".format(bounds[0]))
self._config.maxCap.setText(u"{:.5g}".format(bounds[1]))
def widget(self, parent):
config = createForm("plot_param_fct.ui", parent)
self._config = config
config.changeColorMap.clicked.connect(self._changeColorMap)
config.symetricColoring.toggled[bool].connect(self.set_symetric_coloring)
config.capping.toggled[bool].connect(self._cappingChanged)
config.minCap.setValidator(QDoubleValidator(config.minCap))
config.maxCap.setValidator(QDoubleValidator(config.minCap))
config.minCap.textChanged["const QString&"].connect(self._minCapStringChanged)
config.maxCap.textChanged["const QString&"].connect(self._maxCapStringChanged)
value = self.minmax_values
self.resetMinMax(value)
config.symetricColoring.setChecked(self._symetric_coloring)
if self._value_capping is not None:
config.capping.setChecked(True)
config.minCap.setText(u"{:.5g}".format(self._value_capping[0]))
config.maxCap.setText(u"{:.5g}".format(self._value_capping[1]))
self.addScaleBarWidget(config)
return self._config
@Slot()
def _changeColorMap(self):
dlg = transfer_fct_dlg()
if self._symetric_coloring:
dlg.stickers = [0.5]
dlg.transfer_fct = self.transfer_function
if dlg.exec_() == QDialog.Accepted:
self.transfer_function = dlg.transfer_fct
dlg.stickers = []
dlg.saveSettings("")
@Slot(bool)
def _cappingChanged(self, value):
if value:
self.value_capping = (float(self._config.minCap.text()), float(self._config.maxCap.text()))
else:
self.value_capping = None
@Slot("const QString&")
def _minCapStringChanged(self, value):
try:
value_double = float(value)
except ValueError:
return
cap = self.value_capping
if cap is not None:
if value_double != cap[0]:
cap = (value_double, cap[1])
self.value_capping = cap
@Slot("const QString&")
def _maxCapStringChanged(self, value):
try:
value_double = float(value)
except ValueError:
return
cap = self.value_capping
if cap is not None:
if value_double != cap[1]:
cap = (cap[0], value_double)
self.value_capping = cap
@staticmethod
def load(params, settings):
ScaleBar.load(params, settings)
tr = settings.value("TransferFunction", "")
if tr:
params.transfer_function = TransferFunction.loads(str(tr))
else:
params.transfer_function = TransferFunction.hue_scale()
params.symetric_coloring = toBool(settings.value("SymetricColoring", "False"))
isc = toBool(settings.value("IsCapping", "False"))
if isc:
vc = [0, 0]
try:
vc[0] = float(settings.value("ValueCappingMin"))
except (ValueError, TypeError):
vc[0] = 0
try:
vc[1] = float(settings.value("ValueCappingMax"))
except (ValueError, TypeError):
vc[1] = 1
params.value_capping = vc
else:
params.value_capping = None
@staticmethod
def save(params, settings):
ScaleBar.save(params, settings)
tf = params.transfer_function.dumps()
settings.setValue("TransferFunction", tf)
settings.setValue("SymetricColoring", params.symetric_coloring)
if params.value_capping is not None:
settings.setValue("IsCapping", True)
settings.setValue("ValueCappingMin", params.value_capping[0])
settings.setValue("ValueCappingMax", params.value_capping[1])
else:
settings.setValue("IsCapping", False)
class DirectionGrowthParameters(ScaleBar):
"""
Parameters for growth along a direction.
"""
def __init__(self, params):
ScaleBar.__init__(self, params)
self._transfer_function = params.transfer_function
self._symetric_coloring = params.symetric_coloring
self._value_capping = params.value_capping
self._minmax_values = (-100.0, 100.0)
self._config = None
self._data_file = ""
self.data = None
self._direction = None
self._data_points = (0, 1)
self._next_data_file = None
self._orthogonal = params.orthogonal
self._draw_line = params.draw_line
self._line_width = params.line_width
self._line_color = params.line_color
self.edit_timer = QTimer(self)
self.edit_timer.setSingleShot(True)
self.edit_timer.setInterval(500)
self.edit_timer.timeout.connect(self.loadEdit)
@property
def data_file(self):
"""Data file holding the points for the direction"""
return self._data_file
@data_file.setter
def data_file(self, value):
value = path(value)
if self._data_file != value:
self._data_file = value
self.load_data()
self.changed.emit()
def load_data(self, **loading_arguments):
try:
if self.data_file == self.result.current_filename:
self.data = self.result.data
else:
# First, prepare the data by getting the images and computing how big they
# should be
f = open(self.data_file)
first_line = f.readline()
f.close()
if first_line.startswith("TRKR_VERSION"):
result = Result(None)
result.load(self.data_file, **loading_arguments)
data = result.data
else:
data = TrackingData()
data.load(self.data_file, **loading_arguments)
data.copyAlignementAndScale(self.result.data)
self.data = data
self.points = list(self.data.cell_points)
if self._config is not None:
config = self._config
config.point1.clear()
config.point2.clear()
for i in self.points:
log_debug("i = %s" % i)
config.point1.addItem(str(i))
config.point2.addItem(str(i))
config.point1.setCurrentIndex(0)
config.point2.setCurrentIndex(1)
except RetryTrackingDataException as ex:
loading_arguments.update(ex.method_args)
self.load_data(**loading_arguments)
def direction(self, img_data):
i1, i2 = self.data_points
p1 = img_data[i1]
p2 = img_data[i2]
u = p2 - p1
u /= norm(u.x(), u.y())
return u
@Slot("const QString&")
def _changePoint1(self, value):
try:
value = int(value)
if value != self.data_points[0]:
self.data_points = (value, self.data_points[1])
except ValueError as err:
log_debug("Error while changing point1 = %s" % str(err))
@Slot("const QString&")
def _changePoint2(self, value):
try:
value = int(value)
if value != self.data_points[1]:
self.data_points = (self.data_points[0], value)
except ValueError as err:
log_debug("Error while changing point1 = %s" % str(err))
@property
def data_points(self):
"""Ids of the data points defining the direction in the data file"""
return self._data_points
@data_points.setter
def data_points(self, value):
value = (int(value[0]), int(value[1]))
if self._data_points != value:
self._data_points = value
self.changed.emit()
@property
def transfer_function(self):
'''Transfer function used to convert values into colors
:returntype: `TransferFunction`'''
return self._transfer_function
@transfer_function.setter
def transfer_function(self, value):
if self._transfer_function != value:
self._transfer_function = TransferFunction(value)
self._params.transfer_function = self._transfer_function
self.changed.emit()
@property
def symetric_coloring(self):
'''
If true, the color scheme is forced to be symetric. i.e. If all
values are of the same sign, then 0 is forced into the range.
Otherwise, 0 is the middle color of the transfer function.
:returntype: `bool`
'''
return self._symetric_coloring
@Slot(bool)
def _set_symetric_coloring(self, value):
value = bool(value)
if self._symetric_coloring != value:
self._symetric_coloring = value
self._params.symetric_coloring = value
self.changed.emit()
symetric_coloring.setter(_set_symetric_coloring)
@property
def orthogonal(self):
"""If true, the points mark the line orthogonal to the direction wanted"""
return self._orthogonal
@Slot(bool)
def _set_orthogonal(self, value):
value = bool(value)
if self._orthogonal != value:
self._orthogonal = value
self._params.orthogonal = value
self.changed.emit()
orthogonal.setter(_set_orthogonal)
@property
def draw_line(self):
"""If truem draw the line defining the direction"""
return self._draw_line
@Slot(bool)
def _set_draw_line(self, value):
value = bool(value)
if self._draw_line != value:
self._draw_line = value
self._params.draw_line = value
self.changed.emit()
draw_line.setter(_set_draw_line)
@property
def line_color(self):
"""Color of the line defining the direction"""
return self._line_color
@line_color.setter
def line_color(self, value):
value = QColor(value)
if self._line_color != value:
self._line_color = value
self._params.line_color = value
self.changed.emit()
@property
def line_width(self):
"""Width of the line in pixels"""
return self._line_width
@Slot(int)
def _set_line_width(self, value):
value = int(value)
if self._line_width != value:
self._line_width = value
self._params.line_width = value
self.changed.emit()
line_width.setter(_set_line_width)
@property
def value_capping(self):
"""
If not None, value_capping gives the min and max of the color used.
If symetric_coloring is True, the actual capping will be adjusted
to a symetric one.
:returntype: (float,float)|None
"""
return self._value_capping
@value_capping.setter
def value_capping(self, value):
if value is not None:
value = (float(value[0]), float(value[1]))
if self._value_capping != value:
self._value_capping = value
self._params.value_capping = value
self.changed.emit()
@property
def minmax_values(self):
'''
Get the min and max of the values for the capping
:returntype: (float,float)
'''
return self._minmax_values
@minmax_values.setter
def minmax_values(self, value):
value = (float(value[0]), float(value[1]))
if self._minmax_values != value:
self._minmax_values = value
self.changed.emit()
if self._config is not None:
self.resetMinMax(value)
def resetMinMax(self, bounds):
self._config.minCap.setText(u"{:.5g}".format(bounds[0]))
self._config.maxCap.setText(u"{:.5g}".format(bounds[1]))
@Slot()
def _changeLineColor(self):
if changeColor(self._config.lineColor):
self.line_color = getColor(self._config.lineColor)
def widget(self, parent):
config = createForm("plot_param_dir_fct.ui", parent)
self._config = config
config.selectDataFile.clicked.connect(self._selectDataFile)
config.changeColorMap.clicked.connect(self._changeColorMap)
config.dataFile.textChanged.connect(self._checkAndLoad)
config.orthogonal.toggled.connect(self._set_orthogonal)
config.symetricColoring.toggled[bool].connect(self._set_symetric_coloring)
config.capping.toggled[bool].connect(self._cappingChanged)
config.minCap.setValidator(QDoubleValidator(config.minCap))
config.maxCap.setValidator(QDoubleValidator(config.minCap))
config.minCap.textChanged['QString'].connect(self._minCapStringChanged)
config.maxCap.textChanged['QString'].connect(self._maxCapStringChanged)
config.point1.currentIndexChanged['QString'].connect(self._changePoint1)
config.point2.currentIndexChanged['QString'].connect(self._changePoint2)
config.drawLine.toggled.connect(self._set_draw_line)
config.lineWidth.valueChanged.connect(self._set_line_width)
config.selectLineColor.clicked.connect(self._changeLineColor)
config.dataFile.setText(self.data_file)
value = self.minmax_values
self.resetMinMax(value)
config.orthogonal.setChecked(self.orthogonal)
config.symetricColoring.setChecked(self._symetric_coloring)
config.drawLine.setChecked(self.draw_line)
config.lineWidth.setValue(self.line_width)
setColor(config.lineColor, self.line_color)
if self._value_capping is not None:
config.capping.setChecked(True)
config.minCap.setText(u"{:.5g}".format(self._value_capping[0]))
config.maxCap.setText(u"{:.5g}".format(self._value_capping[1]))
if self.data is not None:
config = self._config
config.point1.clear()
config.point2.clear()
for i in self.points:
config.point1.addItem(str(i))
config.point2.addItem(str(i))
config.point1.setCurrentIndex(0)
config.point2.setCurrentIndex(1)
self.addScaleBarWidget(config)
return self._config
@Slot()
def _selectDataFile(self):
fn = QFileDialog.getOpenFileName(self._config, "Select the data file defining your line", self.data_file,
"All data files (*.csv *.xls);;CSV Files (*.csv);;"
"XLS files (*.xls);;"
"All files (*.*)")
if fn:
self._config.dataFile.setText(fn)
@Slot("const QString&")
def _checkAndLoad(self, txt):
pth = path(txt)
if pth.exists() and pth.isfile():
self._next_data_file = pth
self.edit_timer.start()
else:
self._next_data_file = None
self.edit_timer.stop()
@Slot()
def loadEdit(self):
if self._next_data_file is not None:
self.data_file = self._next_data_file
@Slot()
def _changeColorMap(self):
dlg = transfer_fct_dlg()
if self._symetric_coloring:
dlg.stickers = [0.5]
dlg.transfer_fct = self.transfer_function
if dlg.exec_() == QDialog.Accepted:
self.transfer_function = dlg.transfer_fct
dlg.stickers = []
dlg.saveSettings("")
@Slot(bool)
def _cappingChanged(self, value):
if value:
self.value_capping = (float(self._config.minCap.text()), float(self._config.maxCap.text()))
else:
self.value_capping = None
@Slot("const QString&")
def _minCapStringChanged(self, value):
try:
value_double = float(value)
except ValueError:
return
cap = self.value_capping
if cap is not None:
if value_double != cap[0]:
cap = (value_double, cap[1])
self.value_capping = cap
@Slot("const QString&")
def _maxCapStringChanged(self, value):
try:
value_double = float(value)
except ValueError:
return
cap = self.value_capping
if cap is not None:
if value_double != cap[1]:
cap = (cap[0], value_double)
self.value_capping = cap
@staticmethod
def load(params, settings):
ScaleBar.load(params, settings)
df = settings.value("DataFile", "")
if df:
params.data_file = path(df)
else:
params.data_file = None
try:
p0 = int(settings.value("DataPoint0"))
except (ValueError, TypeError):
p0 = 0
try:
p1 = int(settings.value("DataPoint1"))
except (ValueError, TypeError):
p1 = 1
params.data_points = (p0, p1)
tr = settings.value("TransferFunction", "")
if tr:
params.transfer_function = TransferFunction.loads(str(tr))
else:
params.transfer_function = TransferFunction.hue_scale()
params.orthogonal = toBool(settings.value("Orthogonal"))
params.symetric_coloring = toBool(settings.value("SymetricColoring", False))
params.draw_line = toBool(settings.value("DrawLine", False))
col = QColor(settings.value("LineColor"))
if not col.isValid():
col = QColor(0, 0, 0)
params.line_color = col
try:
lw = int(settings.value("LineWidth", 0))
except (ValueError, TypeError):
lw = 0
params.line_width = lw
isc = toBool(settings.value("IsCapping"))
if isc:
vc = [0, 0]
try:
vc[0] = float(settings.value("ValueCappingMin"))
except (ValueError, TypeError):
vc[0] = 0
try:
vc[1] = float(settings.value("ValueCappingMax"))
except (ValueError, TypeError):
vc[1] = 1
params.value_capping = vc
else:
params.value_capping = None
@staticmethod
def save(params, settings):
ScaleBar.save(params, settings)
settings.setValue("DataFile", params.data_file)
settings.setValue("DataPoint0", params.data_points[0])
settings.setValue("DataPoint1", params.data_points[1])
settings.setValue("Orthogonal", params.orthogonal)
settings.setValue("DrawLine", params.draw_line)
settings.setValue("LineWidth", params.line_width)
settings.setValue("LineColor", params.line_color)
tf = params.transfer_function.dumps()
settings.setValue("TransferFunction", tf)
settings.setValue("SymetricColoring", params.symetric_coloring)
if params.value_capping is not None:
settings.setValue("IsCapping", True)
settings.setValue("ValueCappingMin", params.value_capping[0])
settings.setValue("ValueCappingMax", params.value_capping[1])
else:
settings.setValue("IsCapping", False)
class ColorParameters(QObject):
changed = Signal()
"""
Parameters for continuous objects.
"""
def __init__(self, params, parent=None):
QObject.__init__(self, parent)
log_debug("Parameter object: %s" % id(params))
self._color = params.color
self._params = params
def widget(self, parent):
config = createForm("plot_param_color.ui", parent)
setColor(config.color, self._color)
config.selectColor.clicked.connect(self._changeColor)
self._config = config
return config
@Slot()
def _changeColor(self):
if changeColor(self._config.color):
self.color = getColor(self._config.color)
@property
def color(self):
'''Color used for the rendering of the property.
:returntype: `QColor`'''
return self._color
@color.setter
def color(self, value):
value = QColor(value)
if self._color != value:
self._color = value
self._params.color = value
self.changed.emit()
@staticmethod
def load(params, settings):
log_debug("Loading with parameter object: %s" % id(params))
color = QColor(settings.value("Color"))
if not color.isValid():
color = QColor(0, 0, 0)
params.color = color
@staticmethod
def save(params, settings):
settings.setValue("Color", params.color)
| gpl-2.0 | -4,149,817,835,625,474,600 | 32.581991 | 113 | 0.593159 | false |
Bloomie/murano-agent | muranoagent/common/messaging/mqclient.py | 1 | 3280 | # Copyright (c) 2013 Mirantis Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
# implied.
# See the License for the specific language governing permissions and
# limitations under the License.
import anyjson
import ssl as ssl_module
from eventlet import patcher
kombu = patcher.import_patched('kombu')
from subscription import Subscription
class MqClient(object):
def __init__(self, login, password, host, port, virtual_host,
ssl=False, ca_certs=None):
ssl_params = None
if ssl is True:
ssl_params = {
'ca_certs': ca_certs,
'cert_reqs': ssl_module.CERT_REQUIRED
}
self._connection = kombu.Connection(
'amqp://{0}:{1}@{2}:{3}/{4}'.format(
login,
password,
host,
port,
virtual_host
), ssl=ssl_params
)
self._channel = None
self._connected = False
def __enter__(self):
self.connect()
return self
def __exit__(self, exc_type, exc_val, exc_tb):
self.close()
return False
def connect(self):
self._connection.connect()
self._channel = self._connection.channel()
self._connected = True
def close(self):
self._connection.close()
self._connected = False
def declare(self, queue, exchange='', enable_ha=False, ttl=0):
if not self._connected:
raise RuntimeError('Not connected to RabbitMQ')
queue_arguments = {}
if enable_ha is True:
# To use mirrored queues feature in RabbitMQ 2.x
# we need to declare this policy on the queue itself.
#
# Warning: this option has no effect on RabbitMQ 3.X,
# to enable mirrored queues feature in RabbitMQ 3.X, please
# configure RabbitMQ.
queue_arguments['x-ha-policy'] = 'all'
if ttl > 0:
queue_arguments['x-expires'] = ttl
exchange = kombu.Exchange(exchange, type='direct', durable=True)
queue = kombu.Queue(queue, exchange, queue, durable=True,
queue_arguments=queue_arguments)
bound_queue = queue(self._connection)
bound_queue.declare()
def send(self, message, key, exchange=''):
if not self._connected:
raise RuntimeError('Not connected to RabbitMQ')
producer = kombu.Producer(self._connection)
producer.publish(
exchange=str(exchange),
routing_key=str(key),
body=anyjson.dumps(message.body),
message_id=str(message.id)
)
def open(self, queue, prefetch_count=1):
if not self._connected:
raise RuntimeError('Not connected to RabbitMQ')
return Subscription(self._connection, queue, prefetch_count)
| apache-2.0 | -1,117,816,651,737,075,100 | 31.156863 | 72 | 0.594817 | false |
MysterionRise/fantazy-predictor | enriching_data.py | 1 | 10896 | #!/usr/local/bin/python
# -*- coding: utf-8 -*-
import calendar
import os
import pandas as pd
# Правила подсчета очков:
#
# за участие в матче – 2 очка, если сыграно 10 минут и больше; 1 очко, если сыграно меньше 10 минут
#
# за победу – 3 очка (в гостях); 2 очка (дома)
#
# за поражение – минус 3 очка (дома); минуc 2 очка (в гостях)
#
# Принцип начисления очков следующий:
#
# количество очков + количество передач + количество перехватов + количество подборов +
# количество блок-шотов + количество совершенных штрафных + количество совершенных двухочковых + количество совершенных трехочковых
#
# - количество попыток штрафных бросков - количество попыток двухочковых – количество попыток трехочковых –
# удвоенная цифра от количества потерь - количество фолов
def convert_to_sec(time_str):
if pd.isnull(time_str):
return 0
try:
m, s = time_str.split(':')
return int(m) * 60 + int(s)
except Exception as inst:
print(time_str)
print(type(inst)) # the exception instance
print(inst.args) # arguments stored in .args
def get_sec(row):
time_str = row['minutes']
return convert_to_sec(time_str)
def getOrDefault(value):
if pd.isnull(value):
return 0
return int(value)
def extractYear(row):
return row['date'].year
def extractMonth(row):
return row['date'].month
def extractDay(row):
return row['date'].day
def concat1(row):
return row['opponent'] + str(row['year'])
def concat2(row):
return row['team'] + str(row['year'])
def concat3(row):
return row['name'] + str(row['year'])
def concat4(row):
return row['opponent'] + str(row['month']) + str(row['year'])
def concat5(row):
return row['team'] + str(row['month']) + str(row['year'])
def concat6(row):
return row['name'] + str(row['month']) + str(row['year'])
def getDayOfTheWeek(row):
day = calendar.day_name[row['date'].weekday()]
return day[:3]
def convert_age(row):
if pd.isnull(row['age']):
return 0
years, days = row['age'].split('-')
return int(years) + 1.0 * int(days) / 365
def split_result(x):
try:
sp = x.split('(')
return sp[0].strip(), sp[1][:-1]
except Exception as inst:
print(x)
print(type(inst)) # the exception instance
print(inst.args) # arguments stored in .args
# (FG + 0.5 * 3P) / FGA
def calc_efg(row):
try:
fg = row['fg']
fg3 = row['fg3']
fga = row['fga']
if fga == 0:
return 0.0
return (fg + 0.5 * fg3) / fga
except Exception as inst:
print(row)
print(type(inst)) # the exception instance
print(inst.args) # arguments stored in .args
def calc_fantasy(row):
if pd.isnull(row['minutes']):
return 0
fantasy_points = 0
if convert_to_sec(row['minutes']) >= 10 * 60:
fantasy_points += 2
else:
fantasy_points += 1
if 'W' in str(row['result']):
if row['location'] == '@':
fantasy_points += 3
else:
fantasy_points += 2
else:
if row['location'] == '@':
fantasy_points -= 2
else:
fantasy_points -= 3
fantasy_points += getOrDefault(row['pts'])
fantasy_points += getOrDefault(row['ast'])
fantasy_points += getOrDefault(row['stl'])
fantasy_points += getOrDefault(row['trb'])
fantasy_points += getOrDefault(row['blk'])
fantasy_points += getOrDefault(row['ft'])
fantasy_points += getOrDefault(row['fg'])
fantasy_points -= getOrDefault(row['fta'])
fantasy_points -= getOrDefault(row['fga'])
fantasy_points -= 2 * getOrDefault(row['tov'])
fantasy_points -= getOrDefault(row['pf'])
return fantasy_points
def enrich_player_df(df):
df['fantasy_points'] = df.apply(lambda row: calc_fantasy(row), axis=1)
df['year'] = df.apply(lambda row: extractYear(row), axis=1)
df['month'] = df.apply(lambda row: extractMonth(row), axis=1)
df['day'] = df.apply(lambda row: extractDay(row), axis=1)
df['opponent2'] = df.apply(lambda row: concat1(row), axis=1)
df['opponent3'] = df.apply(lambda row: concat4(row), axis=1)
df['team3'] = df.apply(lambda row: concat5(row), axis=1)
df['name3'] = df.apply(lambda row: concat6(row), axis=1)
df['name2'] = df.apply(lambda row: concat3(row), axis=1)
df['team2'] = df.apply(lambda row: concat2(row), axis=1)
df['age1'] = df.apply(lambda row: convert_age(row), axis=1)
df['seconds'] = df.apply(lambda row: get_sec(row), axis=1)
for i in range(1, 6):
df['mean_pts_' + str(i)] = df['pts'].rolling(i).mean().shift(1)
df['efg'] = df.apply(lambda row: calc_efg(row), axis=1)
df['mefg'] = df['efg'].expanding().mean().shift(1)
df['day_of_the_week'] = df.apply(lambda row: getDayOfTheWeek(row), axis=1)
df['mfp'] = df['fantasy_points'].expanding().mean().shift(1)
df['medfp'] = df['fantasy_points'].expanding().median().shift(1)
df['msec'] = df['seconds'].expanding().mean().shift(1)
df['mpts'] = df['pts'].expanding().mean().shift(1)
df['mast'] = df['ast'].expanding().mean().shift(1)
df['mtrb'] = df['trb'].expanding().mean().shift(1)
df['mstl'] = df['stl'].expanding().mean().shift(1)
df['mpf'] = df['pf'].expanding().mean().shift(1)
df['mtov'] = df['tov'].expanding().mean().shift(1)
df['mblk'] = df['blk'].expanding().mean().shift(1)
df['mfg'] = df['fg'].expanding().mean().shift(1)
df['mfg3'] = df['fg3'].expanding().mean().shift(1)
df['mft'] = df['ft'].expanding().mean().shift(1)
df['mfg3_pct'] = df['fg3_pct'].expanding().mean().shift(1)
df['mfg_pct'] = df['fg_pct'].expanding().mean().shift(1)
df['mft_pct'] = df['ft_pct'].expanding().mean().shift(1)
# number of games in last 5 days
df['rest_days'] = df['date'].diff().apply(lambda x: x.days)
for i in [1, 7, 10, 11, 12]:
df['mean_rest_days_' + str(i)] = df['rest_days'].rolling(i).mean().shift(1)
for i in [10, 21, 31, 38, 39]:
df['mean_fantasy_' + str(i)] = df['fantasy_points'].rolling(i).mean().shift(1)
for i in [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]:
df['mean_sec_' + str(i)] = df['seconds'].rolling(i).mean().shift(1)
for i in [3, 4, 12, 16, 17, 28, 36]:
df['skew_fantasy_' + str(i)] = df['fantasy_points'].rolling(i).skew().shift(1)
return df
def enrich_player_df_for_upcoming_games(df):
df['fantasy_points'] = df.apply(lambda row: calc_fantasy(row), axis=1)
df['year'] = df.apply(lambda row: extractYear(row), axis=1)
df['month'] = df.apply(lambda row: extractMonth(row), axis=1)
df['day'] = df.apply(lambda row: extractDay(row), axis=1)
df['opponent2'] = df.apply(lambda row: concat1(row), axis=1)
df['opponent3'] = df.apply(lambda row: concat4(row), axis=1)
df['team3'] = df.apply(lambda row: concat5(row), axis=1)
df['name3'] = df.apply(lambda row: concat6(row), axis=1)
df['name2'] = df.apply(lambda row: concat3(row), axis=1)
df['team2'] = df.apply(lambda row: concat2(row), axis=1)
df['age1'] = df.apply(lambda row: convert_age(row), axis=1)
df['seconds'] = df.apply(lambda row: get_sec(row), axis=1)
for i in range(1, 6):
df['mean_pts_' + str(i)] = df['pts'].rolling(i).mean().shift(1)
df['efg'] = df.apply(lambda row: calc_efg(row), axis=1)
df['mefg'] = df['efg'].expanding().mean().shift(1)
df['day_of_the_week'] = df.apply(lambda row: getDayOfTheWeek(row), axis=1)
df['mfp'] = df['fantasy_points'].expanding().mean().shift(1)
df['medfp'] = df['fantasy_points'].expanding().median().shift(1)
df['msec'] = df['seconds'].expanding().mean().shift(1)
df['mpts'] = df['pts'].expanding().mean().shift(1)
df['mast'] = df['ast'].expanding().mean().shift(1)
df['mtrb'] = df['trb'].expanding().mean().shift(1)
df['mstl'] = df['stl'].expanding().mean().shift(1)
df['mpf'] = df['pf'].expanding().mean().shift(1)
df['mtov'] = df['tov'].expanding().mean().shift(1)
df['mblk'] = df['blk'].expanding().mean().shift(1)
df['mfg'] = df['fg'].expanding().mean().shift(1)
df['mfg3'] = df['fg3'].expanding().mean().shift(1)
df['mft'] = df['ft'].expanding().mean().shift(1)
df['mfg3_pct'] = df['fg3_pct'].expanding().mean().shift(1)
df['mfg_pct'] = df['fg_pct'].expanding().mean().shift(1)
df['mft_pct'] = df['ft_pct'].expanding().mean().shift(1)
# number of games in last 5 days
df['rest_days'] = df['date'].diff().apply(lambda x: x.days)
for i in [1, 7, 10, 11, 12]:
df['mean_rest_days_' + str(i)] = df['rest_days'].rolling(i).mean().shift(1)
for i in [10, 21, 31, 38, 39]:
df['mean_fantasy_' + str(i)] = df['fantasy_points'].rolling(i).mean().shift(1)
for i in [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]:
df['mean_sec_' + str(i)] = df['seconds'].rolling(i).mean().shift(1)
for i in [3, 4, 12, 16, 17, 28, 36]:
df['skew_fantasy_' + str(i)] = df['fantasy_points'].rolling(i).skew().shift(1)
return df
dateparse = lambda x: pd.datetime.strptime(x, '%Y-%m-%d')
def enrich_all_data():
for root, dirs, files in os.walk("nba"):
for file in files:
if file.endswith(".csv"):
try:
path = os.path.join(root, file)
if path.find('fantasy') == -1 and path.find('2018.csv') != -1:
f = open(path)
print(path)
lines = f.readlines()
if len(lines) > 1:
df = pd.read_csv(path,
parse_dates=['date'],
date_parser=dateparse)
if not df.empty:
df.fillna(df.mean(), inplace=True)
df = enrich_player_df(df)
join = os.path.join(root, "fantasy")
if not os.path.exists(join):
os.mkdir(join)
df.to_csv(os.path.join(root, "fantasy", file), index=False)
except Exception as inst:
print(file)
print(df.head())
print(type(inst)) # the exception instance
print(inst.args) # arguments stored in .args
| mit | 7,115,765,170,995,633,000 | 34.2 | 131 | 0.562115 | false |
Gixugif/CDRecording | Call_Detail_Record.py | 1 | 2248 | #!/usr/bin/python
# -*- coding: utf-8 -*-
# Title: Call_Detail_Record
# Description: Class for one
# CDR
# separately.
# Date: 6/9/16
# Author: Jeffrey Zic
class Call_Detail_Record:
""" Call Detail Records contain metadata for phone calls."""
def __init__(self):
self.bbx_cdr_id = ('', )
self.network_addr = ('', )
self.bbx_fax_inbound_id = ('', )
self.billsec = ('', )
self.original_callee_id_name = ('', )
self.end_timestamp = ('', )
self.direction = ('', )
self.destination_name = ('', )
self.transfer_source = ('', )
self.original_callee_id_number = ('', )
self.write_rate = ('', )
self.transfer_to = ('', )
self.write_codec = ('', )
self.context = ('', )
self.callee_bbx_phone_id = ('', )
self.destination_number = ('', )
self.caller_id_number = ('', )
self.caller_bbx_phone_registration_id = ('', )
self.hangup_cause = ('', )
self.original_caller_id_number = ('', )
self.gateway_name = ('', )
self.record_file_name = ('', )
self.callee_bbx_user_id = ('', )
self.record_file_checksum = ('', )
self.caller_bbx_phone_id = ('', )
self.duration = ('', )
self.callee_bbx_phone_registration_id = ('', )
self.answer_timestamp = ('', )
self.hangup_originator = ('', )
self.transfer_history = ('', )
self.call_type = ('', )
self.source_table = ('', )
self.bbx_queue_id = ('', )
self.hold_events = ('', )
self.start_timestamp = ('', )
self.uuid = ('', )
self.record_keep_days = ('', )
self.bbx_fax_outbound_id = ('', )
self.bleg_uuid = ('', )
self.bbx_callflow_id = ('', )
self.destination_list = ('', )
self.caller_id_name = ('', )
self.click_to_call_uuid = ('', )
self.read_rate = ('', )
self.original_caller_id_name = ('', )
self.recording_retention = ('', )
self.caller_bbx_user_id = ('', )
self.destination_type = ('', )
self.outbound_route = ('', )
self.processed = ('', )
self.accountcode = ('', )
self.read_codec = ''
| gpl-3.0 | -1,865,762,430,259,183,400 | 33.060606 | 64 | 0.483986 | false |
jmbergmann/yogi | yogi-python/tests/test_subscription.py | 1 | 3085 | #!/usr/bin/env python3
import sys
import os
sys.path.insert(0, os.path.dirname(os.path.abspath(__file__)))
sys.path.insert(0, os.path.dirname(os.path.abspath(__file__)) + '/..')
import yogi
import unittest
from proto import yogi_0000d007_pb2
from test_terminals import AsyncCall
class TestSubscription(unittest.TestCase):
def setUp(self):
self.scheduler = yogi.Scheduler()
self.leafA = yogi.Leaf(self.scheduler)
self.leafB = yogi.Leaf(self.scheduler)
self.connection = None
self.tmA = yogi.PublishSubscribeTerminal('T', yogi_0000d007_pb2, leaf=self.leafA)
self.tmB = yogi.PublishSubscribeTerminal('T', yogi_0000d007_pb2, leaf=self.leafB)
self.bd = yogi.Binding(self.tmA, self.tmB.name)
def tearDown(self):
self.bd.destroy()
self.tmA.destroy()
self.tmB.destroy()
if self.connection:
self.connection.destroy()
self.leafA.destroy()
self.leafB.destroy()
self.scheduler.destroy()
def connect(self):
self.assertIs(yogi.SubscriptionState.UNSUBSCRIBED, self.tmB.get_subscription_state())
self.connection = yogi.LocalConnection(self.leafA, self.leafB)
while self.tmB.get_subscription_state() is yogi.SubscriptionState.UNSUBSCRIBED:
pass
self.assertIs(yogi.SubscriptionState.SUBSCRIBED, self.tmB.get_subscription_state())
def test_ctor(self):
pass
def test_async_get_subscription_state(self):
with AsyncCall() as wrap:
def fn(res, state):
self.assertEqual(yogi.Success(), res)
self.assertEqual(yogi.SubscriptionState.UNSUBSCRIBED, state)
self.tmB.async_get_subscription_state(wrap(fn))
self.connect()
with AsyncCall() as wrap:
def fn(res, state):
self.assertEqual(yogi.Success(), res)
self.assertEqual(yogi.SubscriptionState.SUBSCRIBED, state)
self.tmB.async_get_subscription_state(wrap(fn))
def test_async_await_subscription_state_changed(self):
with AsyncCall() as wrap:
def fn(res, state):
self.assertEqual(yogi.Success(), res)
self.assertEqual(yogi.SubscriptionState.SUBSCRIBED, state)
self.tmB.async_await_subscription_state_change(wrap(fn))
self.connect()
with AsyncCall() as wrap:
def fn(res, state):
self.assertEqual(yogi.Success(), res)
self.assertEqual(yogi.SubscriptionState.UNSUBSCRIBED, state)
self.tmB.async_await_subscription_state_change(wrap(fn))
self.connection.destroy()
self.connection = None
def test_cancel_await_subscription_state_changed(self):
with AsyncCall() as wrap:
def fn(res, state):
self.assertEqual(yogi.Canceled(), res)
self.tmB.async_await_subscription_state_change(wrap(fn))
self.tmB.cancel_await_subscription_state_change()
if __name__ == '__main__':
unittest.main()
| gpl-3.0 | 5,551,646,205,919,994,000 | 32.532609 | 93 | 0.630146 | false |
kannon92/psi4 | doc/sphinxman/source/psi4doc/ext/psidomain.py | 1 | 1221 | #
# @BEGIN LICENSE
#
# Psi4: an open-source quantum chemistry software package
#
# Copyright (c) 2007-2016 The Psi4 Developers.
#
# The copyrights for code used from other parties are included in
# the corresponding files.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License along
# with this program; if not, write to the Free Software Foundation, Inc.,
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
#
# @END LICENSE
#
"""Extension to format and index PSI variables."""
#Sphinx.add_object_type(psivar, rolename, indextemplate='', parse_node=None, ref_nodeclass=None, objname='', doc_field_types=[])
def setup(app):
app.add_object_type('psivar', 'psivar', indextemplate='single: %s')
| gpl-2.0 | 5,442,838,222,191,783,000 | 33.885714 | 128 | 0.746929 | false |
CaptainDesAstres/Simple-Blender-Render-Manager | usefullFunctions.py | 1 | 1409 | #!/usr/bin/python3.4
# -*-coding:Utf-8 -*
import time
def now(short = True):
'''return current date in short or long form (HH:MM:SS or DD.MM.AAAA-HH:MM:SS)'''
if short == True:
return time.strftime('%H:%M:%S')
else:
return time.strftime('%d.%m.%Y-%H:%M:%S')
def columnLimit(value, limit, begin = True, sep = '|'):
'''make fix sized text column'''
if type(value) is not str:
value = str(value)
if begin is True:
begin = limit# number of first caracter to display
if len(value) > limit:
return (value[0:begin-1]+'…'# first caracter\
+value[len(value)-(limit-begin):]# last caracter\
+sep) # column seperator
else:
return value + (' '*(limit-len(value))) +sep# add space to match needed size
def indexPrintList(l):
'''Print a list and index'''
for i, v in enumerate(l):
print(str(i)+'- '+str(v))
class XML:
''' a class containing usefull method for XML'''
entities = {
'\'':''',
'"':'"',
'<':'<',
'>':'>'
}
def encode(txt):
'''replace XML entities by XML representation'''
txt.replace('&', '&')
for entity, code in XML.entities.items():
txt.replace(entity, code)
return txt
def decode(txt):
'''XML representation by the original character'''
for entity, code in XML.entities.items():
txt.replace(code, entity)
txt.replace('&', '&')
return txt
| mit | -1,501,886,194,108,361,200 | 15.552941 | 82 | 0.595593 | false |
willdecker/suds | suds/client.py | 1 | 27894 | # This program is free software; you can redistribute it and/or modify
# it under the terms of the (LGPL) GNU Lesser General Public License as
# published by the Free Software Foundation; either version 3 of the
# License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Library Lesser General Public License for more details at
# ( http://www.gnu.org/licenses/lgpl.html ).
#
# You should have received a copy of the GNU Lesser General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
# written by: Jeff Ortel ( [email protected] )
"""
The I{2nd generation} service proxy provides access to web services.
See I{README.txt}
"""
import suds
import suds.metrics as metrics
from cookielib import CookieJar
from suds import *
from suds.reader import DefinitionsReader
from suds.transport import TransportError, Request
from suds.transport.https import HttpAuthenticated
from suds.servicedefinition import ServiceDefinition
from suds import sudsobject
from sudsobject import Factory as InstFactory
from sudsobject import Object
from suds.resolver import PathResolver
from suds.builder import Builder
from suds.wsdl import Definitions
from suds.cache import MemCache
# for testing
#from suds.cache import ObjectCache
from suds.sax.document import Document
from suds.sax.parser import Parser
from suds.options import Options
from suds.properties import Unskin
from urlparse import urlparse
from copy import deepcopy
from suds.plugin import PluginContainer
from logging import getLogger
log = getLogger(__name__)
class Client(object):
"""
A lightweight web services client.
I{(2nd generation)} API.
@ivar wsdl: The WSDL object.
@type wsdl:L{Definitions}
@ivar service: The service proxy used to invoke operations.
@type service: L{Service}
@ivar factory: The factory used to create objects.
@type factory: L{Factory}
@ivar sd: The service definition
@type sd: L{ServiceDefinition}
@ivar messages: The last sent/received messages.
@type messages: str[2]
"""
@classmethod
def items(cls, sobject):
"""
Extract the I{items} from a suds object much like the
items() method works on I{dict}.
@param sobject: A suds object
@type sobject: L{Object}
@return: A list of items contained in I{sobject}.
@rtype: [(key, value),...]
"""
return sudsobject.items(sobject)
@classmethod
def dict(cls, sobject):
"""
Convert a sudsobject into a dictionary.
@param sobject: A suds object
@type sobject: L{Object}
@return: A python dictionary containing the
items contained in I{sobject}.
@rtype: dict
"""
return sudsobject.asdict(sobject)
@classmethod
def metadata(cls, sobject):
"""
Extract the metadata from a suds object.
@param sobject: A suds object
@type sobject: L{Object}
@return: The object's metadata
@rtype: L{sudsobject.Metadata}
"""
return sobject.__metadata__
def __init__(self, url, **kwargs):
"""
@param url: The URL for the WSDL.
@type url: str
@param kwargs: keyword arguments.
@see: L{Options}
"""
options = Options()
options.transport = HttpAuthenticated()
self.options = options
options.cache = MemCache() # changed from None to use memcache on GAE
# for testing
# options.cache = ObjectCache()
self.set_options(**kwargs)
reader = DefinitionsReader(options, Definitions)
self.wsdl = reader.open(url)
plugins = PluginContainer(options.plugins)
plugins.init.initialized(wsdl=self.wsdl)
self.factory = Factory(self.wsdl)
self.service = ServiceSelector(self, self.wsdl.services)
self.sd = []
for s in self.wsdl.services:
sd = ServiceDefinition(self.wsdl, s)
self.sd.append(sd)
self.messages = dict(tx=None, rx=None)
def set_options(self, **kwargs):
"""
Set options.
@param kwargs: keyword arguments.
@see: L{Options}
"""
p = Unskin(self.options)
p.update(kwargs)
def add_prefix(self, prefix, uri):
"""
Add I{static} mapping of an XML namespace prefix to a namespace.
This is useful for cases when a wsdl and referenced schemas make heavy
use of namespaces and those namespaces are subject to changed.
@param prefix: An XML namespace prefix.
@type prefix: str
@param uri: An XML namespace URI.
@type uri: str
@raise Exception: when prefix is already mapped.
"""
root = self.wsdl.root
mapped = root.resolvePrefix(prefix, None)
if mapped is None:
root.addPrefix(prefix, uri)
return
if mapped[1] != uri:
raise Exception('"%s" already mapped as "%s"' % (prefix, mapped))
def last_sent(self):
"""
Get last sent I{soap} message.
@return: The last sent I{soap} message.
@rtype: L{Document}
"""
return self.messages.get('tx')
def last_received(self):
"""
Get last received I{soap} message.
@return: The last received I{soap} message.
@rtype: L{Document}
"""
return self.messages.get('rx')
def clone(self):
"""
Get a shallow clone of this object.
The clone only shares the WSDL. All other attributes are
unique to the cloned object including options.
@return: A shallow clone.
@rtype: L{Client}
"""
class Uninitialized(Client):
def __init__(self):
pass
clone = Uninitialized()
clone.options = Options()
cp = Unskin(clone.options)
mp = Unskin(self.options)
cp.update(deepcopy(mp))
clone.wsdl = self.wsdl
clone.factory = self.factory
clone.service = ServiceSelector(clone, self.wsdl.services)
clone.sd = self.sd
clone.messages = dict(tx=None, rx=None)
return clone
def __str__(self):
return unicode(self)
def __unicode__(self):
s = ['\n']
build = suds.__build__.split()
s.append('Suds ( https://fedorahosted.org/suds/ )')
s.append(' version: %s' % suds.__version__)
if len(build) > 1:
s.append(' %s build: %s' % (build[0], build[1]))
else:
s.append(' build: %s' % (build[0]))
for sd in self.sd:
s.append('\n\n%s' % unicode(sd))
return ''.join(s)
class Factory:
"""
A factory for instantiating types defined in the wsdl
@ivar resolver: A schema type resolver.
@type resolver: L{PathResolver}
@ivar builder: A schema object builder.
@type builder: L{Builder}
"""
def __init__(self, wsdl):
"""
@param wsdl: A schema object.
@type wsdl: L{wsdl.Definitions}
"""
self.wsdl = wsdl
self.resolver = PathResolver(wsdl)
self.builder = Builder(self.resolver)
def create(self, name):
"""
create a WSDL type by name
@param name: The name of a type defined in the WSDL.
@type name: str
@return: The requested object.
@rtype: L{Object}
"""
timer = metrics.Timer()
timer.start()
type = self.resolver.find(name)
if type is None:
raise TypeNotFound(name)
if type.enum():
result = InstFactory.object(name)
for e, a in type.children():
setattr(result, e.name, e.name)
else:
try:
result = self.builder.build(type)
except Exception, e:
log.error("create '%s' failed", name, exc_info=True)
raise BuildError(name, e)
timer.stop()
metrics.log.debug('%s created: %s', name, timer)
return result
def separator(self, ps):
"""
Set the path separator.
@param ps: The new path separator.
@type ps: char
"""
self.resolver = PathResolver(self.wsdl, ps)
class ServiceSelector:
"""
The B{service} selector is used to select a web service.
In most cases, the wsdl only defines (1) service in which access
by subscript is passed through to a L{PortSelector}. This is also the
behavior when a I{default} service has been specified. In cases
where multiple services have been defined and no default has been
specified, the service is found by name (or index) and a L{PortSelector}
for the service is returned. In all cases, attribute access is
forwarded to the L{PortSelector} for either the I{first} service or the
I{default} service (when specified).
@ivar __client: A suds client.
@type __client: L{Client}
@ivar __services: A list of I{wsdl} services.
@type __services: list
"""
def __init__(self, client, services):
"""
@param client: A suds client.
@type client: L{Client}
@param services: A list of I{wsdl} services.
@type services: list
"""
self.__client = client
self.__services = services
def __getattr__(self, name):
"""
Request to access an attribute is forwarded to the
L{PortSelector} for either the I{first} service or the
I{default} service (when specified).
@param name: The name of a method.
@type name: str
@return: A L{PortSelector}.
@rtype: L{PortSelector}.
"""
default = self.__ds()
if default is None:
port = self.__find(0)
else:
port = default
return getattr(port, name)
def __getitem__(self, name):
"""
Provides selection of the I{service} by name (string) or
index (integer). In cases where only (1) service is defined
or a I{default} has been specified, the request is forwarded
to the L{PortSelector}.
@param name: The name (or index) of a service.
@type name: (int|str)
@return: A L{PortSelector} for the specified service.
@rtype: L{PortSelector}.
"""
if len(self.__services) == 1:
port = self.__find(0)
return port[name]
default = self.__ds()
if default is not None:
port = default
return port[name]
return self.__find(name)
def __find(self, name):
"""
Find a I{service} by name (string) or index (integer).
@param name: The name (or index) of a service.
@type name: (int|str)
@return: A L{PortSelector} for the found service.
@rtype: L{PortSelector}.
"""
service = None
if not len(self.__services):
raise Exception, 'No services defined'
if isinstance(name, int):
try:
service = self.__services[name]
name = service.name
except IndexError:
raise ServiceNotFound, 'at [%d]' % name
else:
for s in self.__services:
if name == s.name:
service = s
break
if service is None:
raise ServiceNotFound, name
return PortSelector(self.__client, service.ports, name)
def __ds(self):
"""
Get the I{default} service if defined in the I{options}.
@return: A L{PortSelector} for the I{default} service.
@rtype: L{PortSelector}.
"""
ds = self.__client.options.service
if ds is None:
return None
else:
return self.__find(ds)
class PortSelector:
"""
The B{port} selector is used to select a I{web service} B{port}.
In cases where multiple ports have been defined and no default has been
specified, the port is found by name (or index) and a L{MethodSelector}
for the port is returned. In all cases, attribute access is
forwarded to the L{MethodSelector} for either the I{first} port or the
I{default} port (when specified).
@ivar __client: A suds client.
@type __client: L{Client}
@ivar __ports: A list of I{service} ports.
@type __ports: list
@ivar __qn: The I{qualified} name of the port (used for logging).
@type __qn: str
"""
def __init__(self, client, ports, qn):
"""
@param client: A suds client.
@type client: L{Client}
@param ports: A list of I{service} ports.
@type ports: list
@param qn: The name of the service.
@type qn: str
"""
self.__client = client
self.__ports = ports
self.__qn = qn
def __getattr__(self, name):
"""
Request to access an attribute is forwarded to the
L{MethodSelector} for either the I{first} port or the
I{default} port (when specified).
@param name: The name of a method.
@type name: str
@return: A L{MethodSelector}.
@rtype: L{MethodSelector}.
"""
default = self.__dp()
if default is None:
m = self.__find(0)
else:
m = default
return getattr(m, name)
def __getitem__(self, name):
"""
Provides selection of the I{port} by name (string) or
index (integer). In cases where only (1) port is defined
or a I{default} has been specified, the request is forwarded
to the L{MethodSelector}.
@param name: The name (or index) of a port.
@type name: (int|str)
@return: A L{MethodSelector} for the specified port.
@rtype: L{MethodSelector}.
"""
default = self.__dp()
if default is None:
return self.__find(name)
else:
return default
def __find(self, name):
"""
Find a I{port} by name (string) or index (integer).
@param name: The name (or index) of a port.
@type name: (int|str)
@return: A L{MethodSelector} for the found port.
@rtype: L{MethodSelector}.
"""
port = None
if not len(self.__ports):
raise Exception, 'No ports defined: %s' % self.__qn
if isinstance(name, int):
qn = '%s[%d]' % (self.__qn, name)
try:
port = self.__ports[name]
except IndexError:
raise PortNotFound, qn
else:
qn = '.'.join((self.__qn, name))
for p in self.__ports:
if name == p.name:
port = p
break
if port is None:
raise PortNotFound, qn
qn = '.'.join((self.__qn, port.name))
return MethodSelector(self.__client, port.methods, qn)
def __dp(self):
"""
Get the I{default} port if defined in the I{options}.
@return: A L{MethodSelector} for the I{default} port.
@rtype: L{MethodSelector}.
"""
dp = self.__client.options.port
if dp is None:
return None
else:
return self.__find(dp)
class MethodSelector:
"""
The B{method} selector is used to select a B{method} by name.
@ivar __client: A suds client.
@type __client: L{Client}
@ivar __methods: A dictionary of methods.
@type __methods: dict
@ivar __qn: The I{qualified} name of the method (used for logging).
@type __qn: str
"""
def __init__(self, client, methods, qn):
"""
@param client: A suds client.
@type client: L{Client}
@param methods: A dictionary of methods.
@type methods: dict
@param qn: The I{qualified} name of the port.
@type qn: str
"""
self.__client = client
self.__methods = methods
self.__qn = qn
def __getattr__(self, name):
"""
Get a method by name and return it in an I{execution wrapper}.
@param name: The name of a method.
@type name: str
@return: An I{execution wrapper} for the specified method name.
@rtype: L{Method}
"""
return self[name]
def __getitem__(self, name):
"""
Get a method by name and return it in an I{execution wrapper}.
@param name: The name of a method.
@type name: str
@return: An I{execution wrapper} for the specified method name.
@rtype: L{Method}
"""
m = self.__methods.get(name)
if m is None:
qn = '.'.join((self.__qn, name))
raise MethodNotFound, qn
return Method(self.__client, m)
class Method:
"""
The I{method} (namespace) object.
@ivar client: A client object.
@type client: L{Client}
@ivar method: A I{wsdl} method.
@type I{wsdl} Method.
"""
def __init__(self, client, method):
"""
@param client: A client object.
@type client: L{Client}
@param method: A I{raw} method.
@type I{raw} Method.
"""
self.client = client
self.method = method
def __call__(self, *args, **kwargs):
"""
Invoke the method.
"""
clientclass = self.clientclass(kwargs)
client = clientclass(self.client, self.method)
if not self.faults():
try:
return client.invoke(args, kwargs)
except WebFault, e:
return (500, e)
else:
return client.invoke(args, kwargs)
def faults(self):
""" get faults option """
return self.client.options.faults
def clientclass(self, kwargs):
""" get soap client class """
if SimClient.simulation(kwargs):
return SimClient
else:
return SoapClient
class SoapClient:
"""
A lightweight soap based web client B{**not intended for external use}
@ivar service: The target method.
@type service: L{Service}
@ivar method: A target method.
@type method: L{Method}
@ivar options: A dictonary of options.
@type options: dict
@ivar cookiejar: A cookie jar.
@type cookiejar: libcookie.CookieJar
"""
def __init__(self, client, method):
"""
@param client: A suds client.
@type client: L{Client}
@param method: A target method.
@type method: L{Method}
"""
self.client = client
self.method = method
self.options = client.options
self.cookiejar = CookieJar()
def invoke(self, args, kwargs):
"""
Send the required soap message to invoke the specified method
@param args: A list of args for the method invoked.
@type args: list
@param kwargs: Named (keyword) args for the method invoked.
@type kwargs: dict
@return: The result of the method invocation.
@rtype: I{builtin}|I{subclass of} L{Object}
"""
timer = metrics.Timer()
timer.start()
result = None
binding = self.method.binding.input
soapenv = binding.get_message(self.method, args, kwargs)
timer.stop()
metrics.log.debug(
"message for '%s' created: %s",
self.method.name,
timer)
timer.start()
result = self.send(soapenv)
timer.stop()
metrics.log.debug(
"method '%s' invoked: %s",
self.method.name,
timer)
return result
def send(self, soapenv):
"""
Send soap message.
@param soapenv: A soap envelope to send.
@type soapenv: L{Document}
@return: The reply to the sent message.
@rtype: I{builtin} or I{subclass of} L{Object}
"""
result = None
location = self.location()
binding = self.method.binding.input
transport = self.options.transport
retxml = self.options.retxml
nosend = self.options.nosend
prettyxml = self.options.prettyxml
timer = metrics.Timer()
log.debug('sending to (%s)\nmessage:\n%s', location, soapenv)
try:
self.last_sent(soapenv)
plugins = PluginContainer(self.options.plugins)
plugins.message.marshalled(envelope=soapenv.root())
if prettyxml:
soapenv = soapenv.str()
else:
soapenv = soapenv.plain()
soapenv = soapenv.encode('utf-8')
ctx = plugins.message.sending(envelope=soapenv)
soapenv = ctx.envelope
if nosend:
return RequestContext(self, binding, soapenv)
request = Request(location, soapenv)
request.headers = self.headers()
timer.start()
reply = transport.send(request)
timer.stop()
metrics.log.debug('waited %s on server reply', timer)
ctx = plugins.message.received(reply=reply.message)
reply.message = ctx.reply
if retxml:
result = reply.message
else:
result = self.succeeded(binding, reply.message)
except TransportError, e:
if e.httpcode in (202,204):
result = None
else:
log.error(self.last_sent())
result = self.failed(binding, e)
return result
def headers(self):
"""
Get http headers or the http/https request.
@return: A dictionary of header/values.
@rtype: dict
"""
action = self.method.soap.action
if isinstance(action, unicode):
action = action.encode('utf-8')
stock = { 'Content-Type' : 'text/xml; charset=utf-8', 'SOAPAction': action }
result = dict(stock, **self.options.headers)
log.debug('headers = %s', result)
return result
def succeeded(self, binding, reply):
"""
Request succeeded, process the reply
@param binding: The binding to be used to process the reply.
@type binding: L{bindings.binding.Binding}
@param reply: The raw reply text.
@type reply: str
@return: The method result.
@rtype: I{builtin}, L{Object}
@raise WebFault: On server.
"""
log.debug('http succeeded:\n%s', reply)
plugins = PluginContainer(self.options.plugins)
if len(reply) > 0:
reply, result = binding.get_reply(self.method, reply)
self.last_received(reply)
else:
result = None
ctx = plugins.message.unmarshalled(reply=result)
result = ctx.reply
if self.options.faults:
return result
else:
return (200, result)
def failed(self, binding, error):
"""
Request failed, process reply based on reason
@param binding: The binding to be used to process the reply.
@type binding: L{suds.bindings.binding.Binding}
@param error: The http error message
@type error: L{transport.TransportError}
"""
status, reason = (error.httpcode, tostr(error))
reply = error.fp.read()
log.debug('http failed:\n%s', reply)
if status == 500:
if len(reply) > 0:
r, p = binding.get_fault(reply)
self.last_received(r)
return (status, p)
else:
return (status, None)
if self.options.faults:
raise Exception((status, reason))
else:
return (status, None)
def location(self):
p = Unskin(self.options)
return p.get('location', self.method.location)
def last_sent(self, d=None):
key = 'tx'
messages = self.client.messages
if d is None:
return messages.get(key)
else:
messages[key] = d
def last_received(self, d=None):
key = 'rx'
messages = self.client.messages
if d is None:
return messages.get(key)
else:
messages[key] = d
class SimClient(SoapClient):
"""
Loopback client used for message/reply simulation.
"""
injkey = '__inject'
@classmethod
def simulation(cls, kwargs):
""" get whether loopback has been specified in the I{kwargs}. """
return kwargs.has_key(SimClient.injkey)
def invoke(self, args, kwargs):
"""
Send the required soap message to invoke the specified method
@param args: A list of args for the method invoked.
@type args: list
@param kwargs: Named (keyword) args for the method invoked.
@type kwargs: dict
@return: The result of the method invocation.
@rtype: I{builtin} or I{subclass of} L{Object}
"""
simulation = kwargs[self.injkey]
msg = simulation.get('msg')
reply = simulation.get('reply')
fault = simulation.get('fault')
if msg is None:
if reply is not None:
return self.__reply(reply, args, kwargs)
if fault is not None:
return self.__fault(fault)
raise Exception('(reply|fault) expected when msg=None')
sax = Parser()
msg = sax.parse(string=msg)
return self.send(msg)
def __reply(self, reply, args, kwargs):
""" simulate the reply """
binding = self.method.binding.input
msg = binding.get_message(self.method, args, kwargs)
log.debug('inject (simulated) send message:\n%s', msg)
binding = self.method.binding.output
return self.succeeded(binding, reply)
def __fault(self, reply):
""" simulate the (fault) reply """
binding = self.method.binding.output
if self.options.faults:
r, p = binding.get_fault(reply)
self.last_received(r)
return (500, p)
else:
return (500, None)
class RequestContext:
"""
A request context.
Returned when the ''nosend'' options is specified.
@ivar client: The suds client.
@type client: L{Client}
@ivar binding: The binding for this request.
@type binding: I{Binding}
@ivar envelope: The request soap envelope.
@type envelope: str
"""
def __init__(self, client, binding, envelope):
"""
@param client: The suds client.
@type client: L{Client}
@param binding: The binding for this request.
@type binding: I{Binding}
@param envelope: The request soap envelope.
@type envelope: str
"""
self.client = client
self.binding = binding
self.envelope = envelope
def succeeded(self, reply):
"""
Re-entry for processing a successful reply.
@param reply: The reply soap envelope.
@type reply: str
@return: The returned value for the invoked method.
@rtype: object
"""
options = self.client.options
plugins = PluginContainer(options.plugins)
ctx = plugins.message.received(reply=reply)
reply = ctx.reply
return self.client.succeeded(self.binding, reply)
def failed(self, error):
"""
Re-entry for processing a failure reply.
@param error: The error returned by the transport.
@type error: A suds I{TransportError}.
"""
return self.client.failed(self.binding, error)
| mit | 582,025,390,059,082,400 | 31.816471 | 84 | 0.573098 | false |
slub/vk2-georeference | georeference/views/user/georeferencehistory.py | 1 | 3257 | # -*- coding: utf-8 -*-
'''
Copyright (c) 2015 Jacob Mendt
Created on 07.10.15
@author: mendt
'''
import traceback
from pyramid.view import view_config
from pyramid.httpexceptions import HTTPInternalServerError
from sqlalchemy import desc
from georeference import LOGGER
from georeference.settings import OAI_ID_PATTERN
from georeference.utils.exceptions import ParameterException
from georeference.models.vkdb.georeferenzierungsprozess import Georeferenzierungsprozess
from georeference.models.vkdb.map import Map
from georeference.models.vkdb.metadata import Metadata
GENERAL_ERROR_MESSAGE = 'Something went wrong while trying to process your requests. Please try again or contact the administrators of the Virtual Map Forum 2.0.'
@view_config(route_name='user-history', renderer='json')
def generateGeoreferenceHistory(request):
def getUserId(request):
""" Parse the process id from the request.
:type request: pyramid.request
:return: str|None """
if request.method == 'GET' and 'userid' in request.matchdict:
return request.matchdict['userid']
return None
LOGGER.info('Request - Get georeference profile page.')
dbsession = request.db
try:
userid = getUserId(request)
if userid is None:
raise ParameterException("Wrong or missing userid.")
LOGGER.debug('Query georeference profile information from database for user %s'%userid)
queryData = request.db.query(Georeferenzierungsprozess, Metadata, Map).join(Metadata, Georeferenzierungsprozess.mapid == Metadata.mapid)\
.join(Map, Georeferenzierungsprozess.mapid == Map.id)\
.filter(Georeferenzierungsprozess.nutzerid == userid)\
.order_by(desc(Georeferenzierungsprozess.id))
LOGGER.debug('Create response list')
georef_profile = []
points = 0
for record in queryData:
georef = record[0]
metadata = record[1]
mapObj = record[2]
#
# create response
#
responseRecord = {'georefid':georef.id, 'mapid':OAI_ID_PATTERN%georef.mapid,
'georefparams': georef.georefparams, 'time': str(metadata.timepublish), 'transformed': georef.processed,
'isvalide': georef.adminvalidation, 'title': metadata.title, 'key': mapObj.apsdateiname,
'georeftime':str(georef.timestamp),'type':georef.type,
'published':georef.processed, 'thumbnail': metadata.thumbsmid}
# add boundingbox if exists
if mapObj.boundingbox is not None:
responseRecord['boundingbox'] = mapObj.getExtentAsString(dbsession, 4326)
# calculate points
if georef.adminvalidation is not 'invalide':
points += 20
georef_profile.append(responseRecord)
LOGGER.debug('Response: %s'%georef_profile)
return {'georef_profile':georef_profile, 'points':points}
except Exception as e:
LOGGER.error('Error while trying to request georeference history information');
LOGGER.error(e)
LOGGER.error(traceback.format_exc())
raise HTTPInternalServerError(GENERAL_ERROR_MESSAGE) | gpl-3.0 | -4,433,242,273,326,549,500 | 38.253012 | 162 | 0.671784 | false |
mtpajula/ijonmap | core/project.py | 1 | 4348 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from .elements.point import Point
from .elements.line import Line
from .elements.polygon import Polygon
import os
class Project(object):
def __init__(self, messages):
self.messages = messages
self.points = []
self.lines = []
self.polygons = []
self.title = None
self.filepath = None
self.users = []
self.saved = True
self.draw = True
def get_title(self):
if self.title is not None:
return self.title
if self.filepath is not None:
filename, file_extension = os.path.splitext(self.filepath)
return filename + file_extension
return '...'
def is_empty(self):
if len(self.points) > 0:
return False
if len(self.lines) > 0:
return False
if len(self.polygons) > 0:
return False
return True
def get(self, element_type):
if element_type == 'point':
return self.points
elif element_type == 'line':
return self.lines
elif element_type == 'polygon':
return self.polygons
else:
return False
def get_id(self, element_type, id):
for element in self.get(element_type):
if element.id == id:
return element
return False
def new_point(self):
return Point()
def new_line(self):
return Line()
def new_polygon(self):
return Polygon()
def new(self, element_type):
if element_type == 'point':
return self.new_point()
elif element_type == 'line':
return self.new_line()
elif element_type == 'polygon':
return self.new_polygon()
else:
return False
def save(self, element, show_ok_message = True):
if show_ok_message:
m = self.messages.add("save " + element.type, "Project")
if element.is_valid() is not True:
self.messages.set_message_status(m, False, element.type + " is not valid")
return False
self.get(element.type).append(element)
if show_ok_message:
self.messages.set_message_status(m, True)
self.saved = False
return True
def edit(self, element):
m = self.messages.add("edit " + element.type, "Project")
self.messages.set_message_status(m, True)
self.saved = False
return True
def delete(self, element):
m = self.messages.add("delete " + element.type, "Project")
elements = self.get(element.type)
if element in elements:
elements.remove(element)
self.messages.set_message_status(m, True)
self.saved = False
return True
def is_in_range(self, elements, num):
try:
elements[num]
return True
except:
return False
def get_dictionary(self):
data = {
'title' : self.title
}
d = {
'data' : data,
'points' : [],
'lines' : [],
'polygons' : []
}
for point in self.points:
d['points'].append(point.get_dictionary())
for line in self.lines:
d['lines'].append(line.get_dictionary())
for polygon in self.polygons:
d['polygons'].append(polygon.get_dictionary())
return d
def set_dictionary(self, d):
if 'data' in d:
if 'title' in d['data']:
self.title = d['data']['title']
for data in d['points']:
p = self.new_point()
p.set_dictionary(data)
self.get('point').append(p)
for data in d['lines']:
l = self.new_line()
l.set_dictionary(data)
self.get('line').append(l)
for data in d['polygons']:
pl = self.new_polygon()
pl.set_dictionary(data)
self.get('polygon').append(pl)
| gpl-2.0 | 1,836,806,213,838,873,000 | 26.518987 | 86 | 0.49172 | false |
pyfa-org/eos | eos/util/repr.py | 1 | 1866 | # ==============================================================================
# Copyright (C) 2011 Diego Duclos
# Copyright (C) 2011-2018 Anton Vorobyov
#
# This file is part of Eos.
#
# Eos is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Eos is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public License
# along with Eos. If not, see <http://www.gnu.org/licenses/>.
# ==============================================================================
def make_repr_str(instance, spec=None):
"""Prepare string for printing info about passed object.
Args:
instance: Object which we should get info from.
spec (optional): Iterable which defines which fields we should include
in info string. Each iterable element can be single attribute name,
or tuple/list with two elements, where first defines reference name
for info string, and second defines actual attribute name.
Returns:
String, which includes object's class name and requested additional
fields.
"""
arg_list = []
for field in spec or ():
if isinstance(field, str):
repr_name, attr_name = field, field
else:
repr_name, attr_name = field
attr_val = getattr(instance, attr_name, 'N/A')
arg_list.append('{}={}'.format(repr_name, attr_val))
return '<{}({})>'.format(type(instance).__name__, ', '.join(arg_list))
| lgpl-3.0 | 6,969,660,614,217,755,000 | 41.409091 | 80 | 0.620579 | false |
Ophrys-Project/Ophrys | ophrys/utils/models.py | 1 | 4817 | from django.conf.urls import patterns, url, include
from django.core.urlresolvers import reverse, NoReverseMatch
from django.db import models
from .views import ListView, CreateView, DetailView, UpdateView, DeleteView
class GetAbsoluteUrlMixin:
"""
Mixin to add the methods get_absolute_url() and get_absolute_url_name()
to a model class. These methods look for an url name in the nested
namespace. The top level namespace is the name of the application
(including the name of the project), e. g. `yourproject.yourapp`. The
low level namespace is the name of the current model (class), e. g.
`YourModel`. The url name can be something like `list`, `create`,
`detail`, `update` or `delete`. So this mixin tries to reverse e. g.
`yourproject.yourapp:YourModel:detail`. The named urls except `list`
and `create` have to accept either a pk argument or a slug argument.
"""
def get_absolute_url(self, url_name='detail'):
"""
Returns the url concerning the given url name. The url must accept
a pk argument or a slug argument if its name is not `list` or
`create`.
"""
if url_name == 'list' or url_name == 'create':
return reverse(self.get_absolute_url_name(url_name))
try:
return reverse(self.get_absolute_url_name(url_name), kwargs={'pk': str(self.pk)})
except NoReverseMatch:
pass
# TODO: Raise an specific error message if self.slug does not exist or
# reverse does not find an url.
return reverse(self.get_absolute_url_name(url_name), kwargs={'slug': str(self.slug)})
def get_absolute_url_name(self, url_name='detail'):
"""
Returns the full url name (including namespace patterns) of the
given url name.
"""
project_app_name = type(self).__module__.split('.models')[0]
class_name = type(self).__name__
return '%s:%s:%s' % (project_app_name, class_name, url_name)
class AutoModelMixin(GetAbsoluteUrlMixin):
"""
Mixin for models to add automaticly designed urls and views.
Add this mixin to your model and include YourModel().urls in the
urlpatterns of your application::
url(r'^example/', include(YourModel().urls))
The urls and classes for a list view (`/example/`), a create view
(`/example/create/`), a detail view (`/example/<pk>/`), an update view
(`/example/<pk>/update/`) and a delete view (`/example/<pk>/delete/`)
will be setup. You only have to write the corresponding templates with
Django's default template names (`yourapp/yourmodel_list.html`,
`yourapp/yourmodel_form.html`, `yourapp/yourmodel_detail.html`,
`yourapp/yourmodel_confirm_delete.html`).
The GetAbsoluteUrlMixin is used, so you have to set the inclusion of the
urls into a specific top level namespace concerning to the name of the
application (including the name of the project)::
url(r'^example_app/', include(yourproject.yourapp.urls), namespace='yourproject.yourapp')
"""
@property
def urls(self):
"""
Attribute of mixed models. Include this in the urlpatterns of
your application::
url(r'^example/', include(YourModel().urls))
"""
return (self.get_urlpatterns(), None, type(self).__name__)
def get_urlpatterns(self):
"""
Method to get the urlpatterns object. Override this method to
customize the urls.
"""
return patterns(
'',
url(r'^$', self.get_view_class('List').as_view(), name='list'),
url(r'^create/$', self.get_view_class('Create').as_view(), name='create'),
url(r'^(?P<pk>\d+)/$', self.get_view_class('Detail').as_view(), name='detail'),
url(r'^(?P<pk>\d+)/update/$', self.get_view_class('Update').as_view(), name='update'),
url(r'^(?P<pk>\d+)/delete/$', self.get_view_class('Delete').as_view(), name='delete'))
def get_view_class(self, view_name):
"""
Method to construct the view classes. Override this method to
customize them.
"""
view_class_definitions = {'model': type(self)}
if view_name == 'List':
view_class = ListView
elif view_name == 'Create':
view_class = CreateView
elif view_name == 'Detail':
view_class = DetailView
elif view_name == 'Update':
view_class = UpdateView
elif view_name == 'Delete':
view_class = DeleteView
view_class_definitions['success_url_name'] = self.get_absolute_url_name('list')
else:
raise ValueError('The view name "%s" is unknown.' % view_name)
return type(view_name, (view_class,), view_class_definitions)
| mit | 7,332,932,344,475,288,000 | 42.396396 | 98 | 0.625493 | false |
zekearneodo/ephys-tools | zk/pca_filter.py | 1 | 4586 | __author__ = 'chris'
import logging
import tables
from scipy import signal
import numpy as np
def PCA_filter(self, rec_h5_obj, probe):
"""
Filtering based on
doi:10.1016/S0165-0270(01)00516-7
"""
data = self.run_group.data
D_all_clean = rec_h5_obj.create_carray(self.run_group, '_data_PCA_filt',
shape=data.shape, atom=data.atom)
logging.info('Starting PCA filtering. Loading data matrix...')
D_all_raw = data.read()
# TODO: this read should be done by shank instead of entirely at once to save memory.
# -- filter and threshold parameters --
t_scalar = 5. # stdeviations away from noise to call a spike.
pre_spike_samples=10 # num samples before threshold-crossing to replace with spike-free version
post_spike_samples= 10 # num samples after ^^^
rate = data._v_attrs['sampling_rate_Hz']
low = 500.
high = 9895.675
_b, _a = signal.butter(3, (low/(rate/2.), high/(rate/2.)), 'pass')
sh_cnt = 0
# --- first stage cleaning.
for shank in probe.values():
sh_cnt += 1
logging.info('PCA filtering {0}'.format(sh_cnt))
channels = shank['channels']
# print channels
D = D_all_raw[:, channels]
D_clean = np.zeros(D.shape, dtype=D.dtype)
for i in xrange(len(channels)):
D_i = D[:,i]
D_i_clean = D[:, i].astype(np.float64)
noti = []
for ii in xrange(len(channels)):
if ii != i:
noti.append(ii)
D_noti = D[:, noti]
u, _, _ = np.linalg.svd(D_noti, full_matrices=False)
for i_pc in xrange(3): # first 3 pcs
pc = u[:, i_pc]
b = np.dot(D_i, pc) / np.dot(pc, pc)
pc *= b
D_i_clean -= pc
D_clean[:, i] = D_i_clean.astype(D.dtype)
# --- find spikes, replace spike times with D_noise (spike free noise representation D_noise)
D_noise = D - D_clean
D_filt_clean_1 = signal.filtfilt(_b,_a, D_clean, axis=0) #filtered representation of cleaned data to find spikes
D_nospikes = D.copy()
for i in xrange(len(channels)):
sig = D_filt_clean_1[:,i]
median = np.median(np.abs(sig))
std = median / .6745
threshold = t_scalar * std
sig_L = sig < -threshold
edges = np.convolve([1, -1], sig_L, mode='same')
t_crossings = np.where(edges == 1)[0]
for cross in t_crossings:
if cross == 0:
continue
elif cross < pre_spike_samples:
st = 0
end = cross+post_spike_samples
elif cross + post_spike_samples > len(sig) - 1:
st = cross-pre_spike_samples
end = len(sig)-1
else:
st = cross-pre_spike_samples
end = cross+post_spike_samples
D_nospikes[st:end, i] = D_noise[st:end,i]
# -- 2nd stage cleaning.
for i in xrange(len(channels)):
# just reuse D_clean's memory space here, as it is not being used by the algorithm any more.
D_i_clean = D[:, i].astype(np.float64, copy=True) # Copying from original data matrix.
D_i_nospikes = D_nospikes[:, i]
noti = []
for ii in xrange(len(channels)):
if ii != i:
noti.append(ii)
D_noti = D_nospikes[:, noti]
u, _, _ = np.linalg.svd(D_noti, full_matrices=False)
for i_pc in xrange(3): # first 3 pcs
pc = u[:, i_pc]
b = np.dot(D_i_nospikes, pc) / np.dot(pc, pc)
pc *= b
D_i_clean -= pc
D_clean[:, i] = D_i_clean.astype(D.dtype)
# put everything back into the a super D.
for i, ch in enumerate(channels):
# the channel order is the same as the row in D.
D_all_clean[:, ch] = D_clean[:, i]
D_all_clean.flush()
assert isinstance(data, tables.EArray)
logging.info('Renaming plfiltered data to "neural_PL_filtered"')
data.rename('neural_PL_filtered')
rec_h5_obj.flush()
logging.info('Renaming PCA filtered data to "data"')
D_all_clean.rename('data')
rec_h5_obj.flush()
logging.info('PCA filtering complete!')
return D_all_clean | gpl-2.0 | -8,351,679,364,114,622,000 | 38.60177 | 121 | 0.511557 | false |
mfalesni/python-kwargify | test_kwargify.py | 1 | 5569 | # -*- coding: utf-8 -*-
import pytest
from kwargify import kwargify
class TestFunctionWithNoArgs(object):
@pytest.fixture(scope="class")
def function(self):
@kwargify
def f():
return True
return f
def test_no_args_given(self, function):
function()
@pytest.mark.xfail
@pytest.mark.parametrize("n", range(1, 4))
def test_args_given(self, function, n):
function(*range(n + 1))
def test_kwargs_passed(self, function):
function(foo="bar")
class TestFunctionWithOnlyArgs(object):
@pytest.fixture(scope="class")
def function(self):
@kwargify
def f(a, b):
return True
return f
@pytest.mark.xfail
def test_no_args_given(self, function):
function()
@pytest.mark.xfail
def test_args_given_not_enough(self, function):
function(1)
def test_args_given_enough(self, function):
function(1, 2)
@pytest.mark.xfail
def test_only_kwargs_passed_wrong(self, function):
function(foo="bar")
@pytest.mark.xfail
def test_only_kwargs_passed_not_enough(self, function):
function(a="bar")
def test_only_kwargs_passed(self, function):
function(a=1, b=2)
def test_both_passed(self, function):
function(1, b=2)
class TestFunctionWithDefaultValues(object):
@pytest.fixture(scope="class")
def function(self):
@kwargify
def f(a, b=None):
return locals()
return f
def test_pass_only_required(self, function):
assert function(1)["b"] is None
def test_override_default_with_arg(self, function):
assert function(1, 2)["b"] == 2
def test_override_default_with_kwarg(self, function):
assert function(1, b=2)["b"] == 2
class TestKwargifyMethod(object):
class _TestClass(object):
def noargs(self):
return locals()
def onlyargs(self, a, b):
return locals()
def withdefault(self, a, b=None):
return locals()
@pytest.fixture(scope="class")
def o(self):
return self._TestClass()
# No args test
def test_no_args_given(self, o):
kwargify(o.noargs)()
@pytest.mark.xfail
@pytest.mark.parametrize("n", range(1, 4))
def test_args_given(self, o, n):
kwargify(o.noargs)(*range(n + 1))
def test_kwargs_passed(self, o):
kwargify(o.noargs)(foo="bar")
# Only args
@pytest.mark.xfail
def test_no_args_given_fails(self, o):
kwargify(o.onlyargs)()
@pytest.mark.xfail
def test_args_given_not_enough(self, o):
kwargify(o.onlyargs)(1)
def test_args_given_enough(self, o):
kwargify(o.onlyargs)(1, 2)
@pytest.mark.xfail
def test_only_kwargs_passed_wrong(self, o):
kwargify(o.onlyargs)(foo="bar")
@pytest.mark.xfail
def test_only_kwargs_passed_not_enough(self, o):
kwargify(o.onlyargs)(a="bar")
def test_only_kwargs_passed(self, o):
kwargify(o.onlyargs)(a=1, b=2)
def test_both_passed(self, o):
kwargify(o.onlyargs)(1, b=2)
# Default values
def test_pass_only_required(self, o):
assert kwargify(o.withdefault)(1)["b"] is None
def test_override_default_with_arg(self, o):
assert kwargify(o.withdefault)(1, 2)["b"] == 2
def test_override_default_with_kwarg(self, o):
assert kwargify(o.withdefault)(1, b=2)["b"] == 2
def test_wrapped_method():
# method wrapping should work the same as function wrapping,
# so this only does a minimum of sanity checks
class Foo(object):
@kwargify
def bar(self, x, y, z):
return x, y, z
f = Foo()
args = 1, 2, 3
# method fails correctly with incorrect args, just like a function does
with pytest.raises(TypeError):
f.bar(**dict(zip(('x', 'y'), args)))
# This should not explode (self is handled correctly)
ret = f.bar(**dict(zip(('x', 'y', 'z'), args)))
# Values should be returned in the same way that they were given
assert ret == args
def test_wrapped():
# double check that the function wrapper does its job
def f():
"""doctring!"""
pass
f.custom_attr = True
wrapped_f = kwargify(f)
# __wrapped__ should be set
assert wrapped_f.__wrapped__ is f
# dunder attrs should be copied over
assert wrapped_f.__doc__ == f.__doc__
# any public attrs on the wrapped func should be available
assert wrapped_f.custom_attr
def test_wrap_method():
"""Tst whether wrapping already existing method works."""
class A(object):
def a(self):
return True
def b(self, a, b):
return locals()
def c(self, a, b=None):
return locals()
a = A()
k_a = kwargify(a.a)
k_b = kwargify(a.b)
k_c = kwargify(a.c)
# Plain function
assert k_a()
# Without nonrequired parameters
with pytest.raises(TypeError):
k_b()
result = k_b(1, 2)
assert result["a"] == 1
assert result["b"] == 2
# With nonrequired params
with pytest.raises(TypeError):
k_c()
result_1 = k_c(1, 2)
result_2 = k_c(1)
assert result_1["a"] == result_2["a"] == 1
assert result_1["b"] == 2
assert result_2["b"] is None
def test_wrap_class_constructor():
class A(object):
def __init__(self, a, b=None):
self.a = a
self.b = b
cons = kwargify(A)
a = cons(a=1)
assert a.a == 1
assert a.b is None
| lgpl-3.0 | -1,896,215,505,816,903,200 | 23.318777 | 75 | 0.587718 | false |
markbrough/exchangerates | exchangerates/util.py | 1 | 1344 | fred_countries_currencies = {
'Australia': 'AUD',
'Austria': 'ATS',
'Belgium': 'BEF',
'Brazil': 'BRL',
'Canada': 'CAD',
'China': 'CNY',
'Denmark': 'DKK',
'Euro': 'EUR',
'Finland': 'FIM',
'France': 'FRF',
'Germany': 'DEM',
'Greece': 'GRD',
'Hong Kong': 'HKD',
'Ireland': 'IEP',
'Italy': 'ITL',
'India': 'INR',
'Japan': 'JPY',
'Malaysia': 'MYR',
'Mexico': 'MXN',
'Norway': 'NOK',
'Netherlands': 'NLG',
'Portugal': 'PTE',
'Singapore': 'SGD',
'South Korea': 'KRW',
'South Africa': 'ZAR',
'Spain': 'ESP',
'Sri Lanka': 'LKR',
'Sweden': 'SEK',
'Switzerland': 'CHF',
'Taiwan': 'TWD',
'Thailand': 'THB',
'Venezuela': 'VEF',
'New Zealand': 'NZD',
'U.K.': 'GBP'
}
oecd_countries_currencies = {
'AUS': 'AUD',
'BRA': 'BRL',
'CAN': 'CAD',
'CHE': 'CHF',
'CHL': 'CLP',
'CHN': "CNY",
'COL': 'COP',
'CRI': 'CRC',
'CZE': 'CZK',
'DNK': 'DKK',
'EA19': 'EUR',
'GBR': 'GBP',
'HUN': 'HUF',
'IDN': 'IDR',
'IND': 'INR',
'ISL': 'ISK',
'ISR': 'ILS',
'JPN': 'JPY',
'KOR': 'KRW',
'LVA': 'LVL',
'MEX': 'MXN',
'NOR': 'NOK',
'NZL': 'NZD',
'POL': 'PLN',
'RUS': 'RUB',
'SDR': 'XDR',
'SWE': 'SEK',
'TUR': 'TRY',
'ZAF': 'ZAR'
}
| mit | -3,411,846,571,437,409,000 | 18.764706 | 29 | 0.419643 | false |
bmazin/SDR | Projects/ChannelizerSim/legacy/bin_width_1st_stage.py | 1 | 1524 |
import matplotlib.pyplot as plt
import scipy.signal
import numpy as np
import math
import random
from matplotlib.backends.backend_pdf import PdfPages
samples = 51200
L = samples/512
fs = 512e6
dt = 1/fs
time = [i*dt for i in range(samples)]
def pfb_fir(x):
N = len(x)
T = 4
L = 512
bin_width_scale = 2.5
dx = T*math.pi/L/T
X = np.array([n*dx-T*math.pi/2 for n in range(T*L)])
coeff = np.sinc(bin_width_scale*X/math.pi)*np.hanning(T*L)
y = np.array([0+0j]*(N-T*L))
for n in range((T-1)*L, N):
m = n%L
coeff_sub = coeff[L*T-m::-L]
y[n-T*L] = (x[n-(T-1)*L:n+L:L]*coeff_sub).sum()
return y
R = 100/5
#freqs = [i*1e5 + 6.0e6 for i in range(R)]
freqs = [i*5e4 + 6.0e6 for i in range(R*8)]
bin = []
bin_pfb = []
for f in freqs:
print f
signal = np.array([complex(math.cos(2*math.pi*f*t), math.sin(2*math.pi*f*t)) for t in time])
y = pfb_fir(signal)
bin_pfb.append(np.fft.fft(y[0:512])[10])
bin = np.array(bin)
bin_pfb = np.array(bin_pfb)
freqs = np.array(freqs)/1e6
b = scipy.signal.firwin(20, cutoff=0.125, window="hanning")
w,h = scipy.signal.freqz(b,1, 4*R, whole=1)
h = np.array(h[2*R:4*R].tolist()+h[0:2*R].tolist())
#h = np.array(h[20:40].tolist()+h[0:20].tolist())
fig = plt.figure()
ax0 = fig.add_subplot(111)
#ax0.plot(freqs, abs(fir9), '.', freqs, abs(fir10), '.', freqs, abs(fir11), '.')
ax0.plot(freqs, 10*np.log10(abs(bin_pfb)/512), 'k-')
ax0.set_xlabel('Frequency (MHz)')
ax0.set_ylabel('Gain (dB)')
ax0.set_ylim((-50,0))
plt.show()
#ax0.axvline(x = 10, linewidth=1, color='k')
| gpl-2.0 | 6,725,326,808,693,590,000 | 21.411765 | 93 | 0.625328 | false |
doctorzeb8/django-era | era/tests/test_functools.py | 1 | 1525 | from ..utils.functools import unidec, pluck, separate, pick, omit, truthful, avg
from .base import SimpleTestCase, IsOkTestCase
class UnidecTestCase(IsOkTestCase):
def test_default_behaviour(self):
self.assertOk(
unidec(lambda fn, a: fn(a) + 'k') \
(lambda a: a[1:])('oo'))
def test_with_params(self):
self.assertOk(
unidec(lambda fn, a, **f: f['w'] + fn(a))(w='o') \
(lambda a: a[1:])('kk'))
class AvgTestCase(SimpleTestCase):
def test(self):
self.assertEqual(avg(4, 6, 8), 6)
class SeparateTestCase(SimpleTestCase):
def test(self):
[even, odd] = separate(lambda x: bool(x % 2), [1, 2, 3, 4, 5])
self.assertEqual(even, [2, 4])
self.assertEqual(odd, [1, 3, 5])
class DictCopyTestCase(SimpleTestCase):
def test_pick(self):
self.assertEqual(
pick({0: 1, 2: 4}, 0), {0: 1})
def test_omit(self):
self.assertEqual(
omit({0: 1, 2: 4}, 0), {2: 4})
def test_truthful(self):
self.assertEqual(
truthful({1: True, 2: False, 3: 'yes', 4: []}), {1: True, 3: 'yes'})
class PluckTestCase(SimpleTestCase):
def test_dict(self):
self.assertEqual(
pluck([{0: 0}, {0: 1, 1: 1}, {0: 2, 1: 1, 2: 2}], 0),
[0, 1, 2])
def test_obj(self):
class O:
def __init__(self, x):
self.x = x
self.assertEqual(
pluck([O(1), O(2), O(3)], 'x'),
[1, 2, 3])
| mit | -7,966,047,185,514,408,000 | 26.232143 | 80 | 0.516721 | false |
xpostudio4/red-de-emprendimiento | app/institutions/views.py | 1 | 4872 | from django.contrib.auth import (login as django_login, authenticate,
logout as django_logout)
from django.contrib.auth.decorators import login_required
from django.contrib.auth.forms import SetPasswordForm
from django.http import JsonResponse, HttpResponseRedirect
from django.shortcuts import render, get_object_or_404
from django.views.decorators.http import require_POST
from .models import Event, Organization, UserProfile
from .forms import (CustomUserCreationForm,
DashboardUserCreationForm,
EventForm, OrganizationForm,
UserProfileLoginForm)
@login_required
def approve_organization(request, organization_id):
"""This function responde to an ajax request asking to approve an
organization"""
if request.user.is_admin:
organization = Organization.objects.get(id=organization_id)
organization.is_active = True
organization.save()
return JsonResponse({'is_approved': True})
return JsonResponse({'is_approved': False,
'reason': 'Solo los administradores pueden aprobar'})
@require_POST
@login_required
def create_event(request):
"""This view creates a new event from a registered organization,
it returns Json"""
form = EventForm(request.POST or None)
if form.is_valid():
event = form.save(commit=False)
event.organization = request.user.organization
event.save()
form.save_m2m()
return HttpResponseRedirect('/dashboard/')
@require_POST
@login_required
def dashboard_usercreation(request):
"""
This view helps to create a new user of the
person belonging to the organization.
"""
user_form = DashboardUserCreationForm(request.POST or None)
if user_form.is_valid():
new_user = user_form.save(commit=False)
new_user.organization = request.user.organization
new_user.save()
return HttpResponseRedirect('/dashboard/')
@require_POST
@login_required
def dashboard_userdeletion(request, user_id):
"""
This view helps to delete the users asociated with an
organization after validating the user creating the view is
not himself or does belong to the organization
"""
user_to_delete = UserProfile.objects.get(pk=user_id)
if user_to_delete.organization == request.user.organization:
user_to_delete.delete()
return JsonResponse({'is_deleted': True})
return JsonResponse({'is_deleted': False})
@require_POST
@login_required
def delete_event(request, event_id):
"""
This view deletes the event after receiving a POST request.
"""
event = get_object_or_404(Event, id=event_id)
if request.user.organization == event.organization:
event.delete()
return JsonResponse({"is_deleted": True})
return JsonResponse({"is_deleted": False})
@require_POST
@login_required
def password_change(request):
"""This view process the password change of the user, returns Json"""
password_form = SetPasswordForm(request.user, request.POST or None)
#if form is valid
if password_form.is_valid():
#process the form by saving
password_form.save()
return JsonResponse({'is_changed': True})
else:
#else return the error as ajax
print password_form.errors
return JsonResponse({'is_changed': False,
'reasons': str(password_form.errors)})
@require_POST
def signin(request):
"""
Log in view
"""
form = UserProfileLoginForm(data=request.POST or None)
if request.method == 'POST':
if form.is_valid():
user = authenticate(email=request.POST['username'],
password=request.POST['password'])
if user is not None and user.is_active:
django_login(request, user)
return JsonResponse({'is_loggedin': True})
return JsonResponse({'is_loggedin': False,
'reason': "La contraseña es incorrecta"})
def signup(request):
"""
User registration view.
"""
if request.user.is_authenticated():
return HttpResponseRedirect('/')
user_form = CustomUserCreationForm(request.POST or None)
organization_form = OrganizationForm(request.POST or None)
if request.method == 'POST':
if user_form.is_valid() and organization_form.is_valid():
organization = organization_form.save()
user = user_form.save(commit=False)
user.is_admin = False
user.organization = organization
user.save()
return HttpResponseRedirect('/')
return render(request,
'accounts/signup.html',
{'user_form': user_form,
'organization_form': organization_form},
)
| mit | 6,066,139,324,412,251,000 | 34.304348 | 78 | 0.650246 | false |
noironetworks/group-based-policy | gbpservice/nfp/core/cfg.py | 1 | 1671 | # Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
from oslo_config import cfg as oslo_config
CONF = oslo_config.CONF
NFP_OPTS = [
oslo_config.IntOpt(
'workers',
default=1,
help='Number of event worker process to be created.'
),
oslo_config.ListOpt(
'nfp_modules_path',
default='gbpservice.nfp.core.test',
help='Path for NFP modules.'
'All modules from this path are autoloaded by framework'
),
oslo_config.StrOpt(
'backend',
default='rpc',
help='Backend Support for communicationg with configurator.'
)
]
EXTRA_OPTS = [
oslo_config.StrOpt(
'logger_class',
default='gbpservice.nfp.core.log.WrappedLogger',
help='logger class path to handle logging seperately.'
),
]
def init(module, args, **kwargs):
"""Initialize the configuration. """
oslo_config.CONF.register_opts(EXTRA_OPTS)
oslo_config.CONF.register_opts(NFP_OPTS, module)
oslo_config.CONF(args=args, project='nfp',
version='%%(prog)s %s' % ('version'),
**kwargs)
return oslo_config.CONF
| apache-2.0 | 1,557,896,110,659,903,700 | 29.944444 | 78 | 0.645721 | false |
pipicold/BlockyTime | server_new/testing/blocks_controller_tester.py | 1 | 2255 | import datetime
from Initialization import Initialization
from Data_Controllers.blocks_controller import blocks_controller
from DB_Model import database_helper
from DB_Model.database_tester import database_tester
from DB_Model.database_model import Blocks
from DB_Model.database_model import Users
class blocks_controller_tester(object):
'''
tester for day_controller
'''
def __init__(self):
print("\n\n\n\n\n\n\n\n\n\n\n\n!!!users_controller_tester!!!")
self.database = Initialization().get_global_db()
self.db_helper = database_helper.database_helper(self.database)
self.db_helper.rebuild_database()
self.db_tester = database_tester()
self.db_tester.generate_fake_data()
new_pri = self.db_tester.generate_fake_primary_category()
new_sec = self.db_tester.generate_fake_secondary_category(new_pri)
new_sec = self.db_tester.generate_fake_secondary_category(new_pri)
new_sec = self.db_tester.generate_fake_secondary_category(new_pri)
self.db_helper.dump_all_data()
def testing_get_blocks_list_of_a_day(self):
'''
:)
'''
blocks_con_tester = blocks_controller('0')
assert len(blocks_con_tester.get_blocks_list_of_a_day(
'2017-03-10')) == 48
print "testing_get_blocks_list_of_a_day SUCCESS <<<<<<<<<<<<<<<<<<<<<<"
def testing_update_a_block(self):
'''
:)
'''
blocks_con_tester = blocks_controller('0')
blocks_con_tester.update_a_block('1', '1')
ret_obj = Blocks.query.filter_by(id=1).first()
assert ret_obj.secondary_category_id == 1
assert ret_obj.primary_category_id == 1
blocks_con_tester.update_a_block(2, 2)
ret_obj = Blocks.query.filter_by(id=2).first()
assert ret_obj.secondary_category_id == 2
assert ret_obj.primary_category_id == 1
#there is no secondary_category_id = 6, not update,no crashing
blocks_con_tester.update_a_block(3, 6)
ret_obj = Blocks.query.filter_by(id=3).first()
assert ret_obj.secondary_category_id == 0
assert ret_obj.primary_category_id == 0
print "testing_update_a_block SUCCESS <<<<<<<<<<<<<<<<<<<<<<"
| gpl-3.0 | 8,987,393,502,863,784,000 | 38.561404 | 80 | 0.630599 | false |
nhoffman/opiates | opiate/utils.py | 1 | 2361 | from collections import Iterable
import os
from os import path
import shutil
import logging
from __init__ import __version__
log = logging.getLogger(__name__)
def flatten(seq):
"""
Poached from http://stackoverflow.com/questions/2158395/flatten-an-irregular-list-of-lists-in-python
Don't flatten strings or dict-like objects.
"""
for el in seq:
if isinstance(el, Iterable) and not (isinstance(el, basestring) or hasattr(el, 'get')):
for sub in flatten(el):
yield sub
else:
yield el
def get_outfile(args, label = None, ext = None, include_version = True):
"""
Return a file-like object open for writing. `args` is expected to
have attributes 'infile' (None or a string specifying a file
path), 'outfile' (None or a file-like object open for writing),
and 'outdir' (None or a string defining a dir-path). If
`args.outfilr` is None, the name of the outfile is derived from
the basename of `args.infile` and is written either in the same
directory or in `args.outdir` if provided.
"""
version = __version__ if include_version else None
if args.outfile is None:
dirname, basename = path.split(args.infile)
parts = filter(lambda x: x,
[path.splitext(basename)[0], version, label, ext])
outname = path.join(args.outdir or dirname,
'.'.join(parts))
if path.abspath(outname) == path.abspath(args.infile):
raise OSError('Input and output file names are identical')
outfile = open(outname, 'w')
else:
outfile = args.outfile
if not (hasattr(outfile, 'write') and not outfile.closed and 'w' in outfile.mode):
raise OSError('`args.outfile` must be a file-like object open for writing')
log.debug(outfile)
return outfile
def mkdir(dirpath, clobber = False):
"""
Create a (potentially existing) directory without errors. Raise
OSError if directory can't be created. If clobber is True, remove
dirpath if it exists.
"""
if clobber:
shutil.rmtree(dirpath, ignore_errors = True)
try:
os.mkdir(dirpath)
except OSError, msg:
pass
if not path.exists(dirpath):
raise OSError('Failed to create %s' % dirpath)
return dirpath
| gpl-3.0 | -4,849,164,687,510,369,000 | 31.342466 | 104 | 0.633206 | false |
Seekatar/pcg | Games/FineControl.py | 1 | 2743 | import base
import datetime
import random
from FixedRandomGame import FixedRandomGame as __base
# use __base, otherwise when searching for games, FixedRandomGame shows up multiple times
class FineControl(__base):
"""
Touch four plates in patterns as fast as you can.
Level 1: tight, clockwise 5 times
Level 2: tight, anti clockwise 5 times
Level 3: tight, repeat 4 each: clockwise, anticlockwise, diagonal1, diagonal2
Level 4: wide, clockwise 5 times
Level 5: wide, anti clockwise 5 times
Level 6: wide, repeat 4 each: clockwise, anticlockwise, diagonal1, diagonal2
"""
def GameInfo():
"""
return tuple of (name,desc,levels,author,date,version)
"""
return ("FineControl",
"Tight patterns of plates",
6, #levels
"Jim Wallace",
datetime.date(2015,6,19),
'0.1')
GameInfo = staticmethod(GameInfo)
# patterns
_clockwise = (1,2,5,4)
_anticlockwise = _clockwise[::-1] #reverse
_diagonal1 = (1,5)
_diagonal2 = (2,4)
_wclockwise = (1,3,9,7)
_wanticlockwise = _wclockwise[::-1] #reverse
_wdiagonal1 = (1,9)
_wdiagonal2 = (3,7)
def __init__(self):
super(FineControl,self).__init__()
self._timeout_sec = 10
self._interval_sec = 0
self._pattern = None
self._pattern_index = -1
self.LOOP_CNT = 0
def initialize(self,hardware,user,level):
"""
Initialize
"""
super(FineControl,self).initialize(hardware,user,level)
if self.level == 1:
self._pattern = FineControl._clockwise*5
elif self.level == 2:
self._pattern = FineControl._anticlockwise*5
elif self.level == 3:
repeat = 4
self._pattern = FineControl._clockwise*repeat+FineControl._anticlockwise*repeat+FineControl._diagonal1*repeat+FineControl._diagonal2*repeat
elif self.level == 4:
self._pattern = FineControl._wclockwise*5
elif self.level == 5:
self._pattern = FineControl._wanticlockwise*5
else:
repeat = 4
self._pattern = FineControl._wclockwise*repeat+FineControl._wanticlockwise*repeat+FineControl._wdiagonal1*repeat+FineControl._wdiagonal2*repeat
# index for next plate
self._pattern_index = -1
self.LOOP_CNT = len(self._pattern)
def get_next_plate(self):
"""
override to change number of plates, etc.
"""
self._pattern_index += 1
return self._pattern[self._pattern_index]
| mit | 47,598,030,569,357,740 | 32.048193 | 155 | 0.574918 | false |
achawkins/Forsteri | doc/conf.py | 1 | 9317 | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# Forsteri documentation build configuration file, created by
# sphinx-quickstart on Fri Apr 24 16:09:15 2015.
#
# This file is execfile()d with the current directory set to its
# containing dir.
#
# Note that not all possible configuration values are present in this
# autogenerated file.
#
# All configuration values have a default; values that are commented out
# serve to show the default.
import sys
import os
import shlex
import sphinx_rtd_theme
# If extensions (or modules to document with autodoc) are in another directory,
# add these directories to sys.path here. If the directory is relative to the
# documentation root, use os.path.abspath to make it absolute, like shown here.
#sys.path.insert(0, os.path.abspath('.'))
# -- General configuration ------------------------------------------------
# If your documentation needs a minimal Sphinx version, state it here.
#needs_sphinx = '1.0'
# Add any Sphinx extension module names here, as strings. They can be
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
# ones.
extensions = []
# Add any paths that contain templates here, relative to this directory.
templates_path = ['_templates']
# The suffix(es) of source filenames.
# You can specify multiple suffix as a list of string:
# source_suffix = ['.rst', '.md']
source_suffix = '.rst'
# The encoding of source files.
#source_encoding = 'utf-8-sig'
# The master toctree document.
master_doc = 'index'
# General information about the project.
project = 'Forsteri'
copyright = '2015, Andrew C. Hawkins'
author = 'Andrew C. Hawkins'
# The version info for the project you're documenting, acts as replacement for
# |version| and |release|, also used in various other places throughout the
# built documents.
#
# The short X.Y version.
version = '0.0.1'
# The full version, including alpha/beta/rc tags.
release = '0.0.1'
# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
#
# This is also used if you do content translation via gettext catalogs.
# Usually you set "language" from the command line for these cases.
language = None
# There are two options for replacing |today|: either, you set today to some
# non-false value, then it is used:
#today = ''
# Else, today_fmt is used as the format for a strftime call.
#today_fmt = '%B %d, %Y'
# List of patterns, relative to source directory, that match files and
# directories to ignore when looking for source files.
exclude_patterns = ['_build']
# The reST default role (used for this markup: `text`) to use for all
# documents.
#default_role = None
# If true, '()' will be appended to :func: etc. cross-reference text.
#add_function_parentheses = True
# If true, the current module name will be prepended to all description
# unit titles (such as .. function::).
#add_module_names = True
# If true, sectionauthor and moduleauthor directives will be shown in the
# output. They are ignored by default.
#show_authors = False
# The name of the Pygments (syntax highlighting) style to use.
pygments_style = 'sphinx'
# A list of ignored prefixes for module index sorting.
#modindex_common_prefix = []
# If true, keep warnings as "system message" paragraphs in the built documents.
#keep_warnings = False
# If true, `todo` and `todoList` produce output, else they produce nothing.
todo_include_todos = False
# -- Options for HTML output ----------------------------------------------
# The theme to use for HTML and HTML Help pages. See the documentation for
# a list of builtin themes.
#html_theme = 'alabaster'
html_theme = "sphinx_rtd_theme"
# Theme options are theme-specific and customize the look and feel of a theme
# further. For a list of options available for each theme, see the
# documentation.
#html_theme_options = {}
# Add any paths that contain custom themes here, relative to this directory.
#html_theme_path = []
html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]
# The name for this set of Sphinx documents. If None, it defaults to
# "<project> v<release> documentation".
#html_title = None
# A shorter title for the navigation bar. Default is the same as html_title.
#html_short_title = None
# The name of an image file (relative to this directory) to place at the top
# of the sidebar.
#html_logo = None
# The name of an image file (within the static path) to use as favicon of the
# docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32
# pixels large.
#html_favicon = None
# Add any paths that contain custom static files (such as style sheets) here,
# relative to this directory. They are copied after the builtin static files,
# so a file named "default.css" will overwrite the builtin "default.css".
html_static_path = ['_static']
# Add any extra paths that contain custom files (such as robots.txt or
# .htaccess) here, relative to this directory. These files are copied
# directly to the root of the documentation.
#html_extra_path = []
# If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
# using the given strftime format.
#html_last_updated_fmt = '%b %d, %Y'
# If true, SmartyPants will be used to convert quotes and dashes to
# typographically correct entities.
#html_use_smartypants = True
# Custom sidebar templates, maps document names to template names.
#html_sidebars = {}
# Additional templates that should be rendered to pages, maps page names to
# template names.
#html_additional_pages = {}
# If false, no module index is generated.
#html_domain_indices = True
# If false, no index is generated.
#html_use_index = True
# If true, the index is split into individual pages for each letter.
#html_split_index = False
# If true, links to the reST sources are added to the pages.
html_show_sourcelink = False
# If true, "Created using Sphinx" is shown in the HTML footer. Default is True.
html_show_sphinx = False
# If true, "(C) Copyright ..." is shown in the HTML footer. Default is True.
#html_show_copyright = True
# If true, an OpenSearch description file will be output, and all pages will
# contain a <link> tag referring to it. The value of this option must be the
# base URL from which the finished HTML is served.
#html_use_opensearch = ''
# This is the file name suffix for HTML files (e.g. ".xhtml").
#html_file_suffix = None
# Language to be used for generating the HTML full-text search index.
# Sphinx supports the following languages:
# 'da', 'de', 'en', 'es', 'fi', 'fr', 'h', 'it', 'ja'
# 'nl', 'no', 'pt', 'ro', 'r', 'sv', 'tr'
#html_search_language = 'en'
# A dictionary with options for the search language support, empty by default.
# Now only 'ja' uses this config value
#html_search_options = {'type': 'default'}
# The name of a javascript file (relative to the configuration directory) that
# implements a search results scorer. If empty, the default will be used.
#html_search_scorer = 'scorer.js'
# Output file base name for HTML help builder.
htmlhelp_basename = 'Forsteridoc'
# -- Options for LaTeX output ---------------------------------------------
latex_elements = {
# The paper size ('letterpaper' or 'a4paper').
#'papersize': 'letterpaper',
# The font size ('10pt', '11pt' or '12pt').
#'pointsize': '10pt',
# Additional stuff for the LaTeX preamble.
#'preamble': '',
# Latex figure (float) alignment
#'figure_align': 'htbp',
}
# Grouping the document tree into LaTeX files. List of tuples
# (source start file, target name, title,
# author, documentclass [howto, manual, or own class]).
latex_documents = [
(master_doc, 'Forsteri.tex', 'Forsteri Documentation',
'Andrew Hawkins', 'manual'),
]
# The name of an image file (relative to this directory) to place at the top of
# the title page.
#latex_logo = None
# For "manual" documents, if this is true, then toplevel headings are parts,
# not chapters.
#latex_use_parts = False
# If true, show page references after internal links.
#latex_show_pagerefs = False
# If true, show URL addresses after external links.
#latex_show_urls = False
# Documents to append as an appendix to all manuals.
#latex_appendices = []
# If false, no module index is generated.
#latex_domain_indices = True
# -- Options for manual page output ---------------------------------------
# One entry per manual page. List of tuples
# (source start file, name, description, authors, manual section).
man_pages = [
(master_doc, 'forsteri', 'Forsteri Documentation',
[author], 1)
]
# If true, show URL addresses after external links.
#man_show_urls = False
# -- Options for Texinfo output -------------------------------------------
# Grouping the document tree into Texinfo files. List of tuples
# (source start file, target name, title, author,
# dir menu entry, description, category)
texinfo_documents = [
(master_doc, 'Forsteri', 'Forsteri Documentation',
author, 'Forsteri', 'One line description of project.',
'Miscellaneous'),
]
# Documents to append as an appendix to all manuals.
#texinfo_appendices = []
# If false, no module index is generated.
#texinfo_domain_indices = True
# How to display URL addresses: 'footnote', 'no', or 'inline'.
#texinfo_show_urls = 'footnote'
# If true, do not generate a @detailmenu in the "Top" node's menu.
#texinfo_no_detailmenu = False
| mit | 6,882,828,192,437,842,000 | 31.350694 | 79 | 0.707739 | false |
DIRACGrid/COMDIRAC | Interfaces/scripts/dgetenv.py | 1 | 1529 | #! /usr/bin/env python
"""
print DCommands session environment variables
"""
import DIRAC
from COMDIRAC.Interfaces import critical
from COMDIRAC.Interfaces import DSession
if __name__ == "__main__":
from COMDIRAC.Interfaces import ConfigCache
from DIRAC.Core.Base import Script
Script.setUsageMessage( '\n'.join( [ __doc__.split( '\n' )[1],
'Usage:',
' %s [[section.]option]' % Script.scriptName,
'Arguments:',
' section: display all options in section',
'++ OR ++',
' section.option: display section specific option',] )
)
configCache = ConfigCache()
Script.parseCommandLine( ignoreErrors = True )
configCache.cacheConfig()
args = Script.getPositionalArgs()
session = DSession( )
if not args:
retVal = session.listEnv( )
if not retVal[ "OK" ]:
print "Error:", retVal[ "Message" ]
DIRAC.exit( -1 )
for o, v in retVal[ "Value" ]:
print o + "=" + v
DIRAC.exit( 0 )
arg = args[ 0 ]
section = None
option = None
if "." in arg:
section, option = arg.split( "." )
else:
option = arg
ret = None
if section:
ret = session.get( section, option )
else:
ret = session.getEnv( option )
if not ret[ "OK" ]:
print critical( ret[ "Message" ] )
print ret[ "Value" ]
| gpl-3.0 | 3,005,090,108,459,228,000 | 22.890625 | 97 | 0.517332 | false |
nistats/nistats | examples/03_second_level_models/plot_oasis.py | 1 | 6030 | """Voxel-Based Morphometry on Oasis dataset
========================================
This example uses Voxel-Based Morphometry (VBM) to study the relationship
between aging, sex and gray matter density.
The data come from the `OASIS <http://www.oasis-brains.org/>`_ project.
If you use it, you need to agree with the data usage agreement available
on the website.
It has been run through a standard VBM pipeline (using SPM8 and
NewSegment) to create VBM maps, which we study here.
VBM analysis of aging
---------------------
We run a standard GLM analysis to study the association between age
and gray matter density from the VBM data. We use only 100 subjects
from the OASIS dataset to limit the memory usage.
Note that more power would be obtained from using a larger sample of subjects.
"""
# Authors: Bertrand Thirion, <[email protected]>, July 2018
# Elvis Dhomatob, <[email protected]>, Apr. 2014
# Virgile Fritsch, <[email protected]>, Apr 2014
# Gael Varoquaux, Apr 2014
n_subjects = 100 # more subjects requires more memory
############################################################################
# Load Oasis dataset
# ------------------
from nilearn import datasets
oasis_dataset = datasets.fetch_oasis_vbm(n_subjects=n_subjects)
gray_matter_map_filenames = oasis_dataset.gray_matter_maps
age = oasis_dataset.ext_vars['age'].astype(float)
###############################################################################
# Sex is encoded as 'M' or 'F'. Hence, we make it a binary variable.
sex = oasis_dataset.ext_vars['mf'] == b'F'
###############################################################################
# Print basic information on the dataset.
print('First gray-matter anatomy image (3D) is located at: %s' %
oasis_dataset.gray_matter_maps[0]) # 3D data
print('First white-matter anatomy image (3D) is located at: %s' %
oasis_dataset.white_matter_maps[0]) # 3D data
###############################################################################
# Get a mask image: A mask of the cortex of the ICBM template.
gm_mask = datasets.fetch_icbm152_brain_gm_mask()
###############################################################################
# Resample the images, since this mask has a different resolution.
from nilearn.image import resample_to_img
mask_img = resample_to_img(
gm_mask, gray_matter_map_filenames[0], interpolation='nearest')
#############################################################################
# Analyse data
# ------------
#
# First, we create an adequate design matrix with three columns: 'age',
# 'sex', 'intercept'.
import pandas as pd
import numpy as np
intercept = np.ones(n_subjects)
design_matrix = pd.DataFrame(np.vstack((age, sex, intercept)).T,
columns=['age', 'sex', 'intercept'])
#############################################################################
# Let's plot the design matrix.
from nistats.reporting import plot_design_matrix
ax = plot_design_matrix(design_matrix)
ax.set_title('Second level design matrix', fontsize=12)
ax.set_ylabel('maps')
##########################################################################
# Next, we specify and fit the second-level model when loading the data and also
# smooth a little bit to improve statistical behavior.
from nistats.second_level_model import SecondLevelModel
second_level_model = SecondLevelModel(smoothing_fwhm=2.0, mask_img=mask_img)
second_level_model.fit(gray_matter_map_filenames,
design_matrix=design_matrix)
##########################################################################
# Estimating the contrast is very simple. We can just provide the column
# name of the design matrix.
z_map = second_level_model.compute_contrast(second_level_contrast=[1, 0, 0],
output_type='z_score')
###########################################################################
# We threshold the second level contrast at uncorrected p < 0.001 and plot it.
from nistats.thresholding import map_threshold
from nilearn import plotting
_, threshold = map_threshold(
z_map, alpha=.05, height_control='fdr')
print('The FDR=.05-corrected threshold is: %.3g' % threshold)
display = plotting.plot_stat_map(
z_map, threshold=threshold, colorbar=True, display_mode='z',
cut_coords=[-4, 26],
title='age effect on grey matter density (FDR = .05)')
plotting.show()
###########################################################################
# We can also study the effect of sex by computing the contrast, thresholding it
# and plot the resulting map.
z_map = second_level_model.compute_contrast(second_level_contrast='sex',
output_type='z_score')
_, threshold = map_threshold(
z_map, alpha=.05, height_control='fdr')
plotting.plot_stat_map(
z_map, threshold=threshold, colorbar=True,
title='sex effect on grey matter density (FDR = .05)')
###########################################################################
# Note that there does not seem to be any significant effect of sex on
# grey matter density on that dataset.
###########################################################################
# Generating a report
# -------------------
# It can be useful to quickly generate a
# portable, ready-to-view report with most of the pertinent information.
# This is easy to do if you have a fitted model and the list of contrasts,
# which we do here.
from nistats.reporting import make_glm_report
icbm152_2009 = datasets.fetch_icbm152_2009()
report = make_glm_report(model=second_level_model,
contrasts=['age', 'sex'],
bg_img=icbm152_2009['t1'],
)
#########################################################################
# We have several ways to access the report:
# report # This report can be viewed in a notebook
# report.save_as_html('report.html')
# report.open_in_browser()
| bsd-3-clause | 720,793,520,006,853,800 | 39.743243 | 80 | 0.566335 | false |
RPGOne/Skynet | pytorch-master/torch/nn/modules/upsampling.py | 1 | 3469 | from numbers import Integral
from .module import Module
from .. import functional as F
from .utils import _pair
class _UpsamplingBase(Module):
def __init__(self, size=None, scale_factor=None):
super(_UpsamplingBase, self).__init__()
if size is None and scale_factor is None:
raise ValueError('either size or scale_factor should be defined')
if scale_factor is not None and not isinstance(scale_factor, Integral):
raise ValueError('scale_factor must be of integer type')
self.size = _pair(size)
self.scale_factor = scale_factor
def __repr__(self):
if self.scale_factor is not None:
info = 'scale_factor=' + str(self.scale_factor)
else:
info = 'size=' + str(self.size)
return self.__class__.__name__ + '(' + info + ')'
class UpsamplingNearest2d(_UpsamplingBase):
"""
Applies a 2D nearest neighbor upsampling to an input signal composed of several input
channels.
To specify the scale, it takes either the :attr:`size` or the :attr:`scale_factor`
as it's constructor argument.
When `size` is given, it is the output size of the image (h, w).
Args:
size (tuple, optional): a tuple of ints (H_out, W_out) output sizes
scale_factor (int, optional): the multiplier for the image height / width
Shape:
- Input: :math:`(N, C, H_{in}, W_{in})`
- Output: :math:`(N, C, H_{out}, W_{out})` where
:math:`H_{out} = floor(H_{in} * scale\_factor)`
:math:`W_{out} = floor(W_{in} * scale\_factor)`
Examples::
>>> inp
Variable containing:
(0 ,0 ,.,.) =
1 2
3 4
[torch.FloatTensor of size 1x1x2x2]
>>> m = nn.UpsamplingNearest2d(scale_factor=2)
>>> m(inp)
Variable containing:
(0 ,0 ,.,.) =
1 1 2 2
1 1 2 2
3 3 4 4
3 3 4 4
[torch.FloatTensor of size 1x1x4x4]
"""
def forward(self, input):
return F.upsample_nearest(input, self.size, self.scale_factor)
class UpsamplingBilinear2d(_UpsamplingBase):
"""
Applies a 2D bilinear upsampling to an input signal composed of several input
channels.
To specify the scale, it takes either the :attr:`size` or the :attr:`scale_factor`
as it's constructor argument.
When `size` is given, it is the output size of the image (h, w).
Args:
size (tuple, optional): a tuple of ints (H_out, W_out) output sizes
scale_factor (int, optional): the multiplier for the image height / width
Shape:
- Input: :math:`(N, C, H_{in}, W_{in})`
- Output: :math:`(N, C, H_{out}, W_{out})` where
:math:`H_{out} = floor(H_{in} * scale\_factor)`
:math:`W_{out} = floor(W_{in} * scale\_factor)`
Examples::
>>> inp
Variable containing:
(0 ,0 ,.,.) =
1 2
3 4
[torch.FloatTensor of size 1x1x2x2]
>>> m = nn.UpsamplingBilinear2d(scale_factor=2)
>>> m(inp)
Variable containing:
(0 ,0 ,.,.) =
1.0000 1.3333 1.6667 2.0000
1.6667 2.0000 2.3333 2.6667
2.3333 2.6667 3.0000 3.3333
3.0000 3.3333 3.6667 4.0000
[torch.FloatTensor of size 1x1x4x4]
"""
def forward(self, input):
return F.upsample_bilinear(input, self.size, self.scale_factor)
| bsd-3-clause | -1,060,963,812,535,801,200 | 29.429825 | 89 | 0.566734 | false |
iliavolyova/evo-clustering | src/stats.py | 1 | 5952 | from __future__ import division
import os
from functools import partial
import log as logger
import core
import gui_graphs
from PyQt4.QtGui import *
defaultParams = {
'Dataset' : 'Iris',
'Number of generations' : 100,
'Population size': 20,
'Max clusters' : 5,
'Fitness method': 'db',
'q' : 2,
't' : 2,
'Distance measure': 'Minkowski_2',
'Feature significance': True
}
class Stats():
def __init__(self, window):
self.window = window
self.plots = {}
self.setup_ui()
def setup_ui(self):
self.setup_table()
self.populate_combo()
def populate_combo(self):
self.resfolder = os.path.join('..', 'res')
self.run_groups = []
for dirname, dirnames, filenames in os.walk(self.resfolder):
for subdirname in dirnames:
self.run_groups.append(subdirname)
for r in self.run_groups:
self.window.datasetComboBox.addItem(r)
self.window.datasetComboBox.activated.connect(self.run_group_changed)
def run_group_changed(self, rg_index):
run_paths = []
self.runs = []
if rg_index != 0:
basepath = os.path.join(self.resfolder, self.run_groups[rg_index-1])
for dirname, dirnames, filenames in os.walk(basepath):
for f in filenames:
run_paths.append(os.path.join(basepath, f))
else:
self.table.clearContents()
self.clearLabels()
return
log = logger.Log()
for path in run_paths:
run = {}
log.load(path)
run['params'] = log.head_as_array
run['colormaps'] = log.colormaps
run['measures'] = log.measures
dirs, filename = os.path.split(path)
run['dataset'] = filename.split('_')[2]
run['name'] = filename
self.runs.append(run)
params = self.get_params(self.runs[0])
params['Feature significance'] = False if params['Distance measure'] is not 'Minkowski2' else params['Feature significance']
self.window.label_dataset.setText(params['Dataset'])
opt_config = core.Config(params)
self.window.label_classes.setText(str(opt_config.dataset.params['Classes']))
distribution = []
for k, v in opt_config.dataset.params['Clusters'].iteritems():
distribution.append(v)
self.window.label_distribution.setText(str(distribution))
self.populate_table()
def populate_table(self):
self.table.clearContents()
self.table.setRowCount(len(self.runs)+1)
cls_sum=0
dist_sum=[]
dist_cnt=[]
runs_by_name = sorted(self.runs, key=lambda run: run['name'])
for row, run in enumerate(runs_by_name):
colormap = run['colormaps'][-1]
l_counts = [colormap.count(x) for x in set(colormap)]
l_counts.sort(reverse=True)
for index, val in enumerate(l_counts):
if index >= len(dist_sum):
dist_sum.append(val)
dist_cnt.append(1)
else:
dist_sum[index] += val
dist_cnt[index] += 1
cls_sum += len(l_counts)
params = self.get_params(run)
conf = core.Config(params)
for col in range(6):
item = QTableWidgetItem('')
if col == 0:
item = QTableWidgetItem(run['name'][14:])
elif col == 1:
item = QTableWidgetItem(str(len(l_counts)))
elif col == 2:
item = QTableWidgetItem(str(l_counts))
elif col == 3:
item = QTableWidgetItem('%.4f' % (1 / conf.dataset.getOptimalFitness(conf)))
elif col == 4:
item = QTableWidgetItem('%.4f' % (1 / run['measures'][-1][5]))
elif col == 5:
btn = QPushButton(self.table)
btn.setText('Show')
btn.clicked.connect(partial(self.show_details, row - 1))
self.table.setCellWidget(row+1, col, btn)
if col != 5:
self.table.setItem(row+1, col, item)
avg_clsnum = '%.3f' % (cls_sum / len(self.runs))
avg_dist = []
for index, val in enumerate(dist_sum):
avg_dist.append(dist_sum[index] / dist_cnt[index])
avg_dist_str = ["%.1f" % t for t in avg_dist]
for index, val in enumerate(['Average', avg_clsnum, '[' + ", ".join(avg_dist_str) + ']']):
item = QTableWidgetItem(val)
self.table.setItem(0, index, item)
def show_details(self, row):
self.plots[row] = gui_graphs.DetailsPlot(self.runs[row])
def get_params(self, run):
defaultParams['Dataset'] = run['dataset']
defaultParams['Number of generations'] = int(run['params'][2])
defaultParams['Population size'] = int(run['params'][1])
defaultParams['Max clusters'] = int(run['params'][0])
defaultParams['Fitness method'] = run['params'][3]
defaultParams['Distance measure'] = run['params'][4]
defaultParams['q'] = int(run['params'][5])
defaultParams['t'] = int(run['params'][6])
return defaultParams
def setup_table(self):
self.table = self.window.table_results
self.table.setColumnWidth(0, 235)
self.table.setColumnWidth(1, 50)
self.table.setColumnWidth(2, 180)
self.table.setColumnWidth(3, 65)
self.table.setColumnWidth(4, 65)
self.table.setColumnWidth(5, 60)
def clearLabels(self):
self.window.label_classes.setText('')
self.window.label_dataset.setText('')
self.window.label_distribution.setText('') | mit | 8,746,288,657,055,795,000 | 34.434524 | 132 | 0.541835 | false |
ool2016-seclab/quarantineSystem | api.py | 1 | 3438 | import json
import logging
import ryutest
from webob import Response
from ryu.controller import ofp_event
from ryu.controller.handler import CONFIG_DISPATCHER
from ryu.controller.handler import set_ev_cls
from ryu.app.wsgi import ControllerBase, WSGIApplication, route
from ryu.lib import dpid as dpid_lib
simple_switch_instance_name = 'simple_switch_api_app'
url = '/simpleswitch/mactable/{dpid}'
class SimpleSwitchRest13(ryutest.SimpleSwitch13):
_CONTEXTS = { 'wsgi': WSGIApplication }
def __init__(self, *args, **kwargs):
super(SimpleSwitchRest13, self).__init__(*args, **kwargs)
self.switches = {}
wsgi = kwargs['wsgi']
wsgi.register(SimpleSwitchController, {simple_switch_instance_name : self})
@set_ev_cls(ofp_event.EventOFPSwitchFeatures, CONFIG_DISPATCHER)
def switch_features_handler(self, ev):
super(SimpleSwitchRest13, self).switch_features_handler(ev)
datapath = ev.msg.datapath
self.switches[datapath.id] = datapath
self.mac_to_port.setdefault(datapath.id, {})
def set_mac_to_port(self, dpid, entry):
mac_table = self.mac_to_port.setdefault(dpid, {})
datapath = self.switches.get(dpid)
entry_port = entry['port']
entry_mac = entry['mac']
if datapath is not None:
parser = datapath.ofproto_parser
if entry_port not in mac_table.values():
for mac, port in mac_table.items():
# from known device to new device
actions = [parser.OFPActionOutput(entry_port)]
match = parser.OFPMatch(in_port=port, eth_dst=entry_mac)
self.add_flow(datapath, 1, match, actions)
# from new device to known device
actions = [parser.OFPActionOutput(port)]
match = parser.OFPMatch(in_port=entry_port, eth_dst=mac)
self.add_flow(datapath, 1, match, actions)
mac_table.update({entry_mac : entry_port})
return mac_table
class SimpleSwitchController(ControllerBase):
def __init__(self, req, link, data, **config):
super(SimpleSwitchController, self).__init__(req, link, data, **config)
self.simpl_switch_spp = data[simple_switch_instance_name]
@route('simpleswitch', url, methods=['GET'], requirements={'dpid': dpid_lib.DPID_PATTERN})
def list_mac_table(self, req, **kwargs):
simple_switch = self.simpl_switch_spp
dpid = dpid_lib.str_to_dpid(kwargs['dpid'])
if dpid not in simple_switch.mac_to_port:
return Response(status=404)
mac_table = simple_switch.mac_to_port.get(dpid, {})
body = json.dumps(mac_table)
return Response(content_type='application/json', body=body)
@route('simpleswitch', url, methods=['PUT'], requirements={'dpid': dpid_lib.DPID_PATTERN})
def put_mac_table(self, req, **kwargs):
simple_switch = self.simpl_switch_spp
dpid = dpid_lib.str_to_dpid(kwargs['dpid'])
new_entry = eval(req.body)
if dpid not in simple_switch.mac_to_port:
return Response(status=404)
try:
mac_table = simple_switch.set_mac_to_port(dpid, new_entry)
body = json.dumps(mac_table)
return Response(content_type='application/json', body=body)
except Exception as e:
return Response(status=500) | mit | 627,949,269,274,732,800 | 36.380435 | 94 | 0.630308 | false |
anti-social/elasticmagic | tests_integ/conftest.py | 1 | 1312 | import uuid
import pytest
from elasticmagic import Document, Field
from elasticmagic.types import Text
def pytest_addoption(parser):
parser.addoption("--es-url", action="store", default="localhost:9200")
def pytest_generate_tests(metafunc):
# This is called for every test. Only get/set command line arguments
# if the argument is specified in the list of test "fixturenames".
option_value = metafunc.config.option.es_url
if 'es_url' in metafunc.fixturenames:
metafunc.parametrize("es_url", [option_value])
class Car(Document):
__doc_type__ = 'car'
name = Field(Text())
@pytest.fixture
def index_name():
return 'test-{}'.format(str(uuid.uuid4()).split('-')[0])
@pytest.fixture
def car_docs():
yield [
Car(_id=1, name='Lightning McQueen'),
Car(_id=2, name='Sally Carerra'),
]
@pytest.fixture
def all_car_docs():
yield [
Car(_id=1, name='Lightning McQueen'),
Car(_id=2, name='Sally Carerra'),
Car(_id=3, name='Doc Hudson'),
Car(_id=4, name='Ramone'),
Car(_id=5, name='Luigi'),
Car(_id=6, name='Guido'),
Car(_id=7, name='Flo'),
Car(_id=8, name='Sarge'),
Car(_id=9, name='Sheriff'),
Car(_id=10, name='Fillmore'),
Car(_id=11, name='Mack'),
]
| apache-2.0 | 6,375,367,001,294,006,000 | 23.296296 | 74 | 0.605945 | false |
melvinw/pktgen | controller/job_pb2.py | 1 | 9157 | # Generated by the protocol buffer compiler. DO NOT EDIT!
# source: job.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf import reflection as _reflection
from google.protobuf import symbol_database as _symbol_database
from google.protobuf import descriptor_pb2
# @@protoc_insertion_point(imports)
_sym_db = _symbol_database.Default()
DESCRIPTOR = _descriptor.FileDescriptor(
name='job.proto',
package='',
serialized_pb=_b('\n\tjob.proto\"\xc5\x02\n\x03Job\x12\x0f\n\x07tx_rate\x18\x01 \x01(\x05\x12\x10\n\x08\x64uration\x18\x02 \x01(\x05\x12\x0e\n\x06warmup\x18\x03 \x01(\x05\x12\x11\n\tnum_flows\x18\x04 \x01(\x05\x12\x10\n\x08port_min\x18\x05 \x01(\x05\x12\x10\n\x08port_max\x18\x06 \x01(\x05\x12\x10\n\x08size_min\x18\x07 \x01(\x05\x12\x10\n\x08size_max\x18\x08 \x01(\x05\x12\x10\n\x08life_min\x18\t \x01(\x02\x12\x10\n\x08life_max\x18\n \x01(\x02\x12\x11\n\trandomize\x18\x0b \x01(\x08\x12\x0f\n\x07latency\x18\x0c \x01(\x08\x12\x0e\n\x06online\x18\r \x01(\x08\x12\x0c\n\x04stop\x18\x0e \x01(\x08\x12\r\n\x05print\x18\x0f \x01(\x08\x12\x0b\n\x03tcp\x18\x10 \x01(\x08\x12\x0f\n\x07src_mac\x18\x11 \x01(\t\x12\x0f\n\x07\x64st_mac\x18\x12 \x01(\t\x12\x0c\n\x04port\x18\x13 \x01(\t\"\x1d\n\x07Request\x12\x12\n\x04jobs\x18\x01 \x03(\x0b\x32\x04.Job')
)
_sym_db.RegisterFileDescriptor(DESCRIPTOR)
_JOB = _descriptor.Descriptor(
name='Job',
full_name='Job',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='tx_rate', full_name='Job.tx_rate', index=0,
number=1, type=5, cpp_type=1, label=1,
has_default_value=False, default_value=0,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='duration', full_name='Job.duration', index=1,
number=2, type=5, cpp_type=1, label=1,
has_default_value=False, default_value=0,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='warmup', full_name='Job.warmup', index=2,
number=3, type=5, cpp_type=1, label=1,
has_default_value=False, default_value=0,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='num_flows', full_name='Job.num_flows', index=3,
number=4, type=5, cpp_type=1, label=1,
has_default_value=False, default_value=0,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='port_min', full_name='Job.port_min', index=4,
number=5, type=5, cpp_type=1, label=1,
has_default_value=False, default_value=0,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='port_max', full_name='Job.port_max', index=5,
number=6, type=5, cpp_type=1, label=1,
has_default_value=False, default_value=0,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='size_min', full_name='Job.size_min', index=6,
number=7, type=5, cpp_type=1, label=1,
has_default_value=False, default_value=0,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='size_max', full_name='Job.size_max', index=7,
number=8, type=5, cpp_type=1, label=1,
has_default_value=False, default_value=0,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='life_min', full_name='Job.life_min', index=8,
number=9, type=2, cpp_type=6, label=1,
has_default_value=False, default_value=0,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='life_max', full_name='Job.life_max', index=9,
number=10, type=2, cpp_type=6, label=1,
has_default_value=False, default_value=0,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='randomize', full_name='Job.randomize', index=10,
number=11, type=8, cpp_type=7, label=1,
has_default_value=False, default_value=False,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='latency', full_name='Job.latency', index=11,
number=12, type=8, cpp_type=7, label=1,
has_default_value=False, default_value=False,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='online', full_name='Job.online', index=12,
number=13, type=8, cpp_type=7, label=1,
has_default_value=False, default_value=False,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='stop', full_name='Job.stop', index=13,
number=14, type=8, cpp_type=7, label=1,
has_default_value=False, default_value=False,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='print', full_name='Job.print', index=14,
number=15, type=8, cpp_type=7, label=1,
has_default_value=False, default_value=False,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='tcp', full_name='Job.tcp', index=15,
number=16, type=8, cpp_type=7, label=1,
has_default_value=False, default_value=False,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='src_mac', full_name='Job.src_mac', index=16,
number=17, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=_b("").decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='dst_mac', full_name='Job.dst_mac', index=17,
number=18, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=_b("").decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='port', full_name='Job.port', index=18,
number=19, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=_b("").decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
],
extensions=[
],
nested_types=[],
enum_types=[
],
options=None,
is_extendable=False,
extension_ranges=[],
oneofs=[
],
serialized_start=14,
serialized_end=339,
)
_REQUEST = _descriptor.Descriptor(
name='Request',
full_name='Request',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='jobs', full_name='Request.jobs', index=0,
number=1, type=11, cpp_type=10, label=3,
has_default_value=False, default_value=[],
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
],
extensions=[
],
nested_types=[],
enum_types=[
],
options=None,
is_extendable=False,
extension_ranges=[],
oneofs=[
],
serialized_start=341,
serialized_end=370,
)
_REQUEST.fields_by_name['jobs'].message_type = _JOB
DESCRIPTOR.message_types_by_name['Job'] = _JOB
DESCRIPTOR.message_types_by_name['Request'] = _REQUEST
Job = _reflection.GeneratedProtocolMessageType('Job', (_message.Message,), dict(
DESCRIPTOR = _JOB,
__module__ = 'job_pb2'
# @@protoc_insertion_point(class_scope:Job)
))
_sym_db.RegisterMessage(Job)
Request = _reflection.GeneratedProtocolMessageType('Request', (_message.Message,), dict(
DESCRIPTOR = _REQUEST,
__module__ = 'job_pb2'
# @@protoc_insertion_point(class_scope:Request)
))
_sym_db.RegisterMessage(Request)
# @@protoc_insertion_point(module_scope)
| bsd-3-clause | 2,792,861,687,643,069,400 | 38.469828 | 847 | 0.675767 | false |
lerker/cupydle | cupydle/dnn/viejo/Neurons.py | 1 | 3537 | import numpy as np
__author__ = "Nelson Ponzoni"
__copyright__ = "Copyright 2015-2016, Proyecto Final de Carrera"
__credits__ = ["Nelson Ponzoni"]
__license__ = "GPL"
__version__ = "20160101"
__maintainer__ = "Nelson Ponzoni"
__email__ = "[email protected]"
__status__ = "Production"
"""
Neurons class, this is abstraction of various neurons, a pack of neurons, that compose a neural layer
"""
class Neurons(object):
def __init__(self, mat, shape):
if len(shape) == 1:
shape += (1,)
if isinstance(mat, list):
mat = np.array(mat)
# la matriz debe tener la forma deseada
self.matrix = mat.reshape(shape)
self.rows = shape[0]
self.cols = shape[1]
# propiedades intrisecas de las neuronas
@property
def shape(self):
return self.rows, self.cols
@property
def count(self):
rows, cols = self.shape
return rows * cols
def __str__(self):
return str(self.matrix)
def __mul__(self, other):
if isinstance(other, Neurons):
other = other.matrix
return Neurons(self.matrix * other, self.shape)
def __div__(self, other):
if isinstance(other, Neurons):
other = other.matrix
return Neurons(self.matrix / other, self.shape)
def __sub__(self, other):
if isinstance(other, Neurons):
other = other.matrix
return Neurons(self.matrix - other, self.shape)
def __add__(self, other):
if isinstance(other, Neurons):
other = other.matrix
return Neurons(self.matrix + other, self.shape)
def __pow__(self, power):
return Neurons(self.matrix ** power, self.shape)
# opraciones basicas
def mul_elemwise(self, array):
if isinstance(array, Neurons):
array = array.matrix
return Neurons(np.multiply(self.matrix, array), self.shape)
def mul_array(self, array):
if isinstance(array, Neurons):
array = array.matrix
arrshape = array.shape
if len(arrshape) == 1:
arrshape += (1,) # Le agrego la dimension que le falta
shape = self.rows, arrshape[1]
return Neurons(self.matrix.dot(array), shape)
def sum_array(self, array):
if isinstance(array, Neurons):
array = array.matrix
return Neurons(self.matrix + array, self.shape)
def dot(self, vec):
return self.matrix.dot(vec)
def outer(self, array):
if isinstance(array, Neurons):
array = array.matrix
res = np.outer(self.matrix, array)
shape = res.shape
return Neurons(res, shape)
def transpose(self):
return Neurons(self.matrix.transpose(), self.shape[::-1])
def loss(self, fun, y):
return fun(self.matrix, y)
def loss_d(self, fun, y):
return Neurons(fun(self.matrix, y), self.shape)
def activation(self, fun):
# el map no anda mas en python3 como iterador,
# ver: http://stackoverflow.com/questions/28524378/convert-map-object-to-numpy-array-in-python-3
return Neurons(list(map(lambda x: fun(x), self.matrix)), self.shape)
def softmax(self):
# Uso de tip de implementacion (http://ufldl.stanford.edu/wiki/index.php/Exercise:Softmax_Regression)
x = self.matrix
# instead: first shift the values of f so that the highest number is 0:
x = x - max(x)
softmat = np.exp(x) / (sum(np.exp(x)))
return Neurons(softmat, self.shape)
| apache-2.0 | -3,702,147,777,341,866,000 | 30.026316 | 109 | 0.599943 | false |
byohay/Remarkable | remarkable/AboutRemarkableDialog.py | 1 | 1798 | # -*- Mode: Python; coding: utf-8; indent-tabs-mode: nil; tab-width: 4 -*-
### BEGIN LICENSE
# Copyright (C) 2016 <Jamie McGowan> <[email protected]>
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in
# all copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
# THE SOFTWARE.
### END LICENSE
from locale import gettext as _
import logging
logger = logging.getLogger('remarkable')
from remarkable_lib.AboutDialog import AboutDialog
# See remarkable_lib.AboutDialog.py for more details about how this class works.
class AboutRemarkableDialog(AboutDialog):
__gtype_name__ = "AboutRemarkableDialog"
def finish_initializing(self, builder): # pylint: disable=E1002
"""Set up the about dialog"""
super(AboutRemarkableDialog, self).finish_initializing(builder)
# Code for other initialization actions should be added here.
| mit | -6,943,829,119,684,817,000 | 45.102564 | 80 | 0.758621 | false |
hesseltuinhof/mxnet | python/mxnet/gluon/model_zoo/vision/__init__.py | 1 | 3746 | # coding: utf-8
# pylint: disable=wildcard-import, arguments-differ
r"""Module for pre-defined neural network models.
This module contains definitions for the following model architectures:
- `AlexNet`_
- `DenseNet`_
- `Inception V3`_
- `ResNet V1`_
- `ResNet V2`_
- `SqueezeNet`_
- `VGG`_
You can construct a model with random weights by calling its constructor:
.. code:: python
import mxnet.gluon.models as models
resnet18 = models.resnet18_v1()
alexnet = models.alexnet()
squeezenet = models.squeezenet1_0()
densenet = models.densenet_161()
We provide pre-trained models for all the models except ResNet V2.
These can constructed by passing
``pretrained=True``:
.. code:: python
import mxnet.gluon.models as models
resnet18 = models.resnet18_v1(pretrained=True)
alexnet = models.alexnet(pretrained=True)
Pretrained model is converted from torchvision.
All pre-trained models expect input images normalized in the same way,
i.e. mini-batches of 3-channel RGB images of shape (N x 3 x H x W),
where N is the batch size, and H and W are expected to be at least 224.
The images have to be loaded in to a range of [0, 1] and then normalized
using ``mean = [0.485, 0.456, 0.406]`` and ``std = [0.229, 0.224, 0.225]``.
The transformation should preferrably happen at preprocessing. You can use
``mx.image.color_normalize`` for such transformation::
image = image/255
normalized = mx.image.color_normalize(image,
mean=mx.nd.array([0.485, 0.456, 0.406]),
std=mx.nd.array([0.229, 0.224, 0.225]))
.. _AlexNet: https://arxiv.org/abs/1404.5997
.. _DenseNet: https://arxiv.org/abs/1608.06993
.. _Inception V3: http://arxiv.org/abs/1512.00567
.. _ResNet V1: https://arxiv.org/abs/1512.03385
.. _ResNet V2: https://arxiv.org/abs/1512.03385
.. _SqueezeNet: https://arxiv.org/abs/1602.07360
.. _VGG: https://arxiv.org/abs/1409.1556
"""
from .alexnet import *
from .densenet import *
from .inception import *
from .resnet import *
from .squeezenet import *
from .vgg import *
def get_model(name, **kwargs):
"""Returns a pre-defined model by name
Parameters
----------
name : str
Name of the model.
pretrained : bool
Whether to load the pretrained weights for model.
classes : int
Number of classes for the output layer.
Returns
-------
HybridBlock
The model.
"""
models = {'resnet18_v1': resnet18_v1,
'resnet34_v1': resnet34_v1,
'resnet50_v1': resnet50_v1,
'resnet101_v1': resnet101_v1,
'resnet152_v1': resnet152_v1,
'resnet18_v2': resnet18_v2,
'resnet34_v2': resnet34_v2,
'resnet50_v2': resnet50_v2,
'resnet101_v2': resnet101_v2,
'resnet152_v2': resnet152_v2,
'vgg11': vgg11,
'vgg13': vgg13,
'vgg16': vgg16,
'vgg19': vgg19,
'vgg11_bn': vgg11_bn,
'vgg13_bn': vgg13_bn,
'vgg16_bn': vgg16_bn,
'vgg19_bn': vgg19_bn,
'alexnet': alexnet,
'densenet121': densenet121,
'densenet161': densenet161,
'densenet169': densenet169,
'densenet201': densenet201,
'squeezenet1.0': squeezenet1_0,
'squeezenet1.1': squeezenet1_1,
'inceptionv3': inception_v3,
}
name = name.lower()
if name not in models:
raise ValueError(
'Model %s is not supported. Available options are\n\t%s'%(
name, '\n\t'.join(sorted(models.keys()))))
return models[name](**kwargs)
| apache-2.0 | -176,548,373,229,067,420 | 33.366972 | 82 | 0.60331 | false |
AtomLaw/clamwin-0.1 | py/throb/throbImages.py | 1 | 261647 | #----------------------------------------------------------------------
# This file was generated by L:\Projects\ClamWin\py\throb\ENCODE~1.PY
#
from wxPython.wx import wxImageFromStream, wxBitmapFromImage
import cStringIO
catalog = {}
index = []
class ImageClass: pass
def getscanprogress01Data():
return \
'\x89PNG\r\n\x1a\n\x00\x00\x00\rIHDR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831\xfd\
\xf79\xd7%\xd8\x08\t\x9e\tz\xe3\x92\xd8T\x061\x82\xe1\x8d\xe7{R2K\xab\xcd\
\x83a\x02i\xa0o\x86\xc8{\xfa\xc3@=\x10\xbd\xee\x92\x14B\x0c<\xb4~\x17\xed0_\
\x06\xb9\x99\xcb2\x9163\xac\xc0\xab\x07\x1c\x1c\xc7\xe9\x0b\xaa\xd8C\xebw\
\xd1\xe1\'i\x81\xdc8\x95\xac\xfbY\xbb\x1d\xcct\x84\x836\x01^|\xff4\xe0\xba*\
\xdaE\xdc\x9dF:\x180\x1bv\x07i\xfc\xc5,\xe4\x06E}\xf2\xf7Z\x9bHw5\xa4\xfe\
\xd7g\n~\xf0\xdcH\xb9\xefv\xdd\x81\xfa\x07\x08\x8a\x81o\x12$h\x06$i.\xf1y\
\xce\x86\xefI\x87/s{\xa8\xf5\xcf\x8a\xd1\t{\xc4\xf0+,\x8d\xb7$\x12\xf1\xd5\
\x84\r|k(\xab\xb8\xd6\xdf\x1f\xa9xh51_\xd5\xc3;&\xe2\xad\x15_\x13F\xd7\xce\
\xef\x005\xc6\xd0n\xfb\x08y7\x98\xd7\xa2\xfa\x87(\xc4\x84\xcc\xfcOVkC\xab\
\xb7\x9b~\xb83\x0e\xae\x06mm\x9a5\xc6`:\xa6\xfd\xaez\x17/\xbc\xaf\x8bZ\xea8\
\xfd\xb2\x87\x19\x0c\xb7\xe5\xa20f\xa2\xb7\x01)\x059\xd7\x19\xab\xb3u?\xdd\
\xdf\x87o]\r\xb8\x1eN\'+\xa5\xc0U\x17A\xacE!\xe7~0\xb6\xf5\xfb\xab\x91\xa4\
\x89\xde\x02\xa4\x14\x89:l|\xda0\xc0\xfa:\\L\x19\x9c\xa5\x94D\xc8u\x84\x10\
\x91Y\x7f\x8aK|\xf8\xd1Zw\xbe\xa4\x9d\x06\xba7;M\x17\xcd\xea\n\xef\x8d\xc3\
\x0eV\xb6\x95K@\xea\xa5U\xd6r\xe3\x8fl!\x04\x934\x99I\xab\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xab\x04\
\x17\x99\xbcqV,E\x17=\x12\xc9\x1b\x17\x89U&o\\\x99\xe1wY\xc9\x1bO,\xdb\xc7\
\x1dK\t\xce\x9a\x96\xbcq\x91\xc1YK\x112\xabL\xde\xb8\xb0.j!\xada\x0fi\x96_\
\xe3`\xd7\xbbt\xf4\x937\xce\x87#\x9f\xbcq^\x1c\xe9\xe4\x8d\xb6pd\x937\xda\
\xc4\x91L\xdeh\x1bG2y\xe3[\x11\x0b\t\xce\xea&\xcci5\xb6\xe6\xb6\xaai\x1du\
\xf7\xac\xf9\xd4\xba\xb0\x1e\x9c%%\x14\xbc\xf9\xfdz]H\t^N\xa0\x1cCc()\xd0J\
\xbcK\xdd@\xaa.\xd2$\xccq\xc6d\x0f\x8a\x97\xe38\x82\x9ckh\'\x0c\xe9\xa5y\x97\
\x94\xd3\x8f\xdf\xcd\x920gRw\xf3r}7\xb6\xab\xc4\xc8\x14\xb4T\xef\x92\xef\xf7\
\xfb\x90\xad\x849\xf1\xd0V!\x06u\xdc\xa5{\x97fM\x9835S\xbaS\xc2\xf3"}n\xaf\
\xb6\x97)\x17\xcdI\xc2\x1c\x1b8I\x98\xb3@\xbc\xe55\x99\x13\x826p\x920g\x81X\
\x18\xc1\xb8\x9a\xb5\xca\x849k\x97/_>t\x96$\xd1\x96\x8d0\x0c\xa3\x16\x0c\xb3\
l\xb6>f\xf8\x7f\r_\n\xf3VN{\xbf\x00\x00\x00\x00IEND\xaeB`\x82'
def getscanprogress01Bitmap():
return wxBitmapFromImage(getscanprogress01Image())
def getscanprogress01Image():
stream = cStringIO.StringIO(getscanprogress01Data())
return wxImageFromStream(stream)
index.append('scanprogress01')
catalog['scanprogress01'] = ImageClass()
catalog['scanprogress01'].getData = getscanprogress01Data
catalog['scanprogress01'].getImage = getscanprogress01Image
catalog['scanprogress01'].getBitmap = getscanprogress01Bitmap
#----------------------------------------------------------------------
def getscanprogress02Data():
return \
'\x89PNG\r\n\x1a\n\x00\x00\x00\rIHDR\x00\x00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\x0e:.{\x82\x87\
\xdb\n\xb2 \xbe\xad\x801\xa0\xf1\xb1\x06\xe4\xab\x05\xf8q\x86Sw\xd8\xd8\x00A\
l\xdd\n\xa2K\xb8\xdd,\xa2V\x7f;\xbc\xef~\x07\x86a\x80\x88\xa0\xd43 \xba\x94g\
\x93\xf2%\xc8\xd8Qp~\x1c\xc6\x9d\x06\xe8\x05\x86\xc6\xdf\x9e\x06\xf0r(\xb5\
\x03\xda\x03\xf4\xee.\x88\x00b\xbb z\t\x00 \xef\xba\x15\xae\xba\x02\xe2\xc4\
\xf5\x10\xd2\x00\xe7\x0c\x82_\x01z\xfe\x12\xfc\x1fx\x0b\x93\xce\x85\xa0a\x18\
\x90\xf2.(}\tJ\xef\xc0y\x8c\xa0\xf5y0\xb6\t\xa2s`l\x13\x00@\xd8\r\x1e\xe8\
\x93\xa3\x17\x83\r$xn\x0f\xfe\x85\xa7\x83\xf8=B\x14\xac/\xb8\x80i\x99\xb8\
\x99\x03O\xfa>\\7\xbd\x0e\x1abn\x82\xc79\xc7\xad\xd2\x00\x17\xb7\xc0W\xe7\
\xd1u\xce\x06\r\xebOk!\xa9Z\xf5\xad\xa9\xcb\xdc\xfeh\x17\xb8\xaa\xff\xc7\x0b\
\x04\xa55:\xdd`\xee\xe3/g\xb0\xcc\x02\xc4\xb5\xc07\xbf\xe9\xe0\xd9$\xe3L\x02\
2\x13\x14B@J\t\x82\x80\xd2\x04\xcf\xfda\xf0\xa53\xa0\x1a\xd3\xfa\xe7A\xfd\
\xf7\x87\xed7\x8c1T\xfay\xa1\xe8g\x84\xae\xe3\x01`\xb0L\x0bo\xb0\x8e\xe2a\
\xe7+3\x89\xa6&\xc8\xd8Q\x18\xc6\xed\x00\x13\xf05@;\xe7A\xbb\xc1\x90\xdb^\
\x90\xd844k%\x10\x11\xaa\xb5\x0eX\x7f\xec:\xae\x0f\xc7\x05,\xf3u\xb0\xed\x93\
\xf8B\xf7\x0b\x13\xdf\xd3T\x04\x85\x10\x90\xb7\x99P?\x05H\x03\xb4\xb3\x83\
\xca\xbb_\x9f\x1f\x8b\x14h\xd4\x06\xeb\xccJ-XG:\xee\xd3p\xdd\xa7a\xbf\xe9\
\xd7\xc17\x92\xb5\xa2\x99\x04\xad7\xda`\xc7\xb6\xe0\xfb\xe7A\xb4\x83ri\xb5\
\xc4\x92\xd0\xec\x93\xad\xd4\xda \x00\xdd\x87<\x08~\x04\xadV\x1b\xe5\xf2p\
\x96\xa1\x89\x9a\xccq\xce\xf1\xf6b\t\xfag\x1c\xeecgAX=\xb9z\xfd#S?o\xd6J\x08\
%\x9b\xd2\xbbp<\xa0\xfbe\x07\x965H\x88\x95H\xf08\xe7\xb8\xf7^\x0b\xdf\xf65\
\xf4\x05B\xe5\xdd\xafG\xb9\xb8\xfa\x9e\x93\xf2f\x00\xc0\x03\x0flO\xbc\xa7U/\
\xa1U/\x03\x00\x9e#B\xfb\x8b>*\xd5\xc1\xbe\xc51\x82\xa5R\t\xbfV(B=\x17\xbc\
\xd0\xe5\x8c9u\xf3\x00\x11\x81\x88 \xa5\x04\x00|\xeb[\xc9\xf3\x1f\x8b\xf9\
\x05\x9e}\xc6\xc75,\xe8\xcd\xf8\x9aq\x88\xa0a\x18(\x95\xabp]\x05\xda%\x94\n\
\xab\'\x07\x04\r\xdf!\x02\xe7\x1c\x9c\xf3D\x9fC\x9c\\\xad\xfeQ\xdc~3\x03]\
\xf2\xc1\x18\x1br\xd0D\x04m\xdbF\xab\xf5O\x00\x18\xd8\t\xb66r!Nr\x8e\x13\x9c\
\xc3q\x9c(\xeb9\x11\xa1\xd3\xe9\xc04\x07m\xab7\x9a\x00\x8e\x81\xb1\x17!o\xb8\
\n\xf4\xcc\x7f#N1\x92\xa2\x95J\x15\x9e\x7f\t\x8c\x01\xc55\x93\x0bq\x92s\xfc\
\xf5_5P\xadV\xe1\xba.\xba\xdd\xee\xd0\x8a\xa1\xd1l\x81\x88\xc0\xd8\x1e\x88\
\x8e\x01\x00\xe4u\x80\xff\xc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\x97\xdc\
\xde\xd8}Sz\x8f\x10\x0cC\xc6\x04\x8e\x1c\xb9&\xd8\xdbq\xf5&\x94\xd2hw\xbe\
\x04\xf7\xbf\x1c0h\x14\xdfV\x00\x80\xa1X\xee\x10\x13{\xd0\xb4NC\xf4SdV\xeb\
\x9f\x82y\xfb\xaba\x18\xd7\xc3\x90\x12\xfa\x8d\xc0\x17z\x0ezW\x9f\x80\xfd\
\x86;!\xae\xe3\xc1\x966\x06\xec\x11\x01;}\x013mmI{c\x9f\x19\x91\xbf\xf0(\x00\
\x80_{\x1c\'\x8e3l \xc8\x06\xa4\x1e\xf7\xa1\x95\x0f\xa5\x14\xb6\xb7\xab\xd8\
\xde\xde\x060G^5!\x04\x84\xb8\r\x9c1\xa8\xf0X\xf5+\xaeA\xa9\xdc@\xa1`\xa1\\\
\xb4@\xb6\x81n\xef\x11\xb8\x0f\xff\x0b\x80\xe3`\xfc\x950\xcd_\x80\x14\x1clS\
\xc0\xb2\x04v\x88pVi\xec\x1d\xe9\'\x7f\xa3\x17\x01\x00\x1b\x1b\x04\xb0\xcd~4\
!\xc7MR\xe2\x8a#{\xd8\xbcr\x13\xec\xeaMh\xda\x89\x84\xd9\xe3\xfe\x05\xd0E\
\x0f\xd7_\xf3\x04\x0c\xfe#t]\x82\xd6\x83\xf5\xe4\xac$\x03\x89\x04\x8d\xbb\
\xcc>\xd1\x80`\xad\xfa\x9bh}\xaa\x070\x82i\x08p\xce\xe0z\n\xa4\xce\xf4\xf7\
\xce^\xc2v\xa5\x82\x8f\x7f\xac\x04v\xefo@\xed\x9c\x04\xe1\xe5\xe0G9\xc4q\x86\
\x0b\xbb\x0c\x9c1\xe0dP>\x03\x83\xe4\x14\x9c\x02\xc2\x00\xd2\xbb \xda\x83\
\xfa\xc9\x05(\xa5\xa0i\x07\xa4\x7f\x8c\x97\xe8)<O\xcf\xc36/\xe1\xe4\xe6\xb8\
\xa8\x9d+\xafZ\xb1X\x04\xbfN\x00`A\xf4\xbc&\x18\x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4}\xc81\xed&\x11\xa1\xde\xe8\xa2\xf7\xf0\xb8\x00\x9a\x85\x88\xa0\
\xde\xd9A\xebS\x0e\xc4+\xae\x82\xfc9\t\xf71\x17\xce7\x1c\xd4\xff\xe4\xfd\x81\
\x08\x7f\x86\xa0\xce\xbap\x9c\xc9\x82%D\xa3\xd9C\xab\xed\xc02\x03\xa9\xbbH\
\x12\xd5 ;\xa57wtpD\xf0\xd3\x9f\xf9<v_ \xf0c\xbc\x9f\xd7\xe5\x06\xdct\xd3K\
\xb0\xccSP\x9a\x00E\xa8}\xb0\x96\xba`\xad\t\xdd\x9e\x07 \xfb\xb7\x9e\'"\x82\
\xbb\x14\xec\x16S\x175\x884\xd81\x81G\x95\x86\xeb)0\x06\xfc\xfbg\xda\x89s\
\xd4$\x08\xc1a[2\x87\x13C4:\xdd\xecydB\x0c\xe6\xc1\x17\xc2\x05\x1c\xa0\xb5\
\x02\xb4\x02;&\xf0@\xad\x89\xfb~Q\xe2\xef\xff\xf1\xefS\x17:\x9apqQlW\x0b\xa8\
\xd6\xda\x993S\x02\xb1y\x90^\x18\xfe\x80\xbd\x8c\x81\x1dc\xd8d\x0c_\xfcr\x0f\
Z\x9dM\xdd\x98<\xc9\x01\xc1hh5\xcaC\xfe\xc4\xb4\x88i2\xc3/\xf1\x91c\x02\x0c\
\x0cD\x1an\xaf\x9d\xba!qr\xbd\x9e\xb7\xd0\xf0\x92\x92\xa3\\\xb2\xfa\xf6U\x86\
Z\xb5\x80R\xc6s_\x12\x95m\xc686\xfb\xa2\xef\x89\xef\xf4R\x17V,\x0c\xd6c\xae\
\xeb\xa3\\\xcd\xd6\x98$8\x8e\x8fv\xab\x02\x00\xb0\xac \xa9U\x16\x89\x9a\xb8\
\xe0=\xc2\x02\xc1\xa0\xb5\xc2SO\xa4\xef\x81[b*\xd5"=\x17\x87\xe3\xfa\xf0c\'p\
e\xdd\xf4<F0\xec=}Q\xc3}(\xdd\xd0\x0cq$f=\xcasW\xcb"\xb6\xd5\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adL\xcfG\xd3\xc4\xe5\x08\xa5T0DU\x9e\xe9{\xf6\x19\
\xfe\x0fMT\xde\xdbF\xa3F\xc4\x00\x00\x00\x00IEND\xaeB`\x82'
def getscanprogress02Bitmap():
return wxBitmapFromImage(getscanprogress02Image())
def getscanprogress02Image():
stream = cStringIO.StringIO(getscanprogress02Data())
return wxImageFromStream(stream)
index.append('scanprogress02')
catalog['scanprogress02'] = ImageClass()
catalog['scanprogress02'].getData = getscanprogress02Data
catalog['scanprogress02'].getImage = getscanprogress02Image
catalog['scanprogress02'].getBitmap = getscanprogress02Bitmap
#----------------------------------------------------------------------
def getscanprogress03Data():
return \
'\x89PNG\r\n\x1a\n\x00\x00\x00\rIHDR\x00\x00\x008\x00\x00\x01,\x08\x06\x00\
\x00\x00\x96\xb6p\'\x00\x00\x00\x04sBIT\x08\x08\x08\x08|\x08d\x88\x00\x00\
\x19\xa9IDATx\x9c\xed\x9dm\xac+\xc7y\xdf\x7fG\x96u\xe6\xde+\xdf;\xd7V\xa4=~\
\xd3Z\xa9\xe2\x95l\xc4\x94\x8a:\xb4nP\xb3\xf9\xd0\xd0\x08R3_b&\x08"~\n\xe8\
\x16\x05(\xf4\xc5\')\x8a0E\x81\x9c\x06)|\x80~\x08\x0b\x140\x13\xd4(\xdd\x0f\
\x15\xed\x165m\xd7\xcd\nh\x14\xba\x08\xe0EbX\xab\xc4\x8e\xf7:\xae\xee(q|\xe7\
\xca\xd6=s\xac\x97\xd3\x0f\xcb\x97%\xb9$w\xc9]\x92G\xbe\x7f\xe0\x80<\xe4\xee\
\xcc\xfe93\xcf<\xf3<\xcf<\xb3w\xed\xda\xb53\xde\xc0\xb8\x1b\xc0\xb2\xacm?G.P\
J\x85\x04\x01\xba\xdd\xee\xe8\x8bf\xb3\x99\xba\xb0f\xb3\x89\xdbmb\xdb\x02\
\x80\xc6a\x87n\xcf\x03 \xf0\x8ef\xae\xefv=\x1a\xcdN\xa2\xfa\xcaE\xb0\xac\xb0\
\xdc\x9ek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xcar\xd3\xfb\x8e\xe1\
\xff\x03\x8a;\x05YOu>\x1e\x00\x00\x00\x00IEND\xaeB`\x82'
def getscanprogress03Bitmap():
return wxBitmapFromImage(getscanprogress03Image())
def getscanprogress03Image():
stream = cStringIO.StringIO(getscanprogress03Data())
return wxImageFromStream(stream)
index.append('scanprogress03')
catalog['scanprogress03'] = ImageClass()
catalog['scanprogress03'].getData = getscanprogress03Data
catalog['scanprogress03'].getImage = getscanprogress03Image
catalog['scanprogress03'].getBitmap = getscanprogress03Bitmap
#----------------------------------------------------------------------
def getscanprogress04Data():
return \
'\x89PNG\r\n\x1a\n\x00\x00\x00\rIHDR\x00\x00\x008\x00\x00\x01,\x08\x06\x00\
\x00\x00\x96\xb6p\'\x00\x00\x00\x04sBIT\x08\x08\x08\x08|\x08d\x88\x00\x00\
\x1aaIDATx\x9c\xed\x9dm\x8c+\xd7y\xdf\x7f+\xc7\xde\xb3z\xb9\xf7\\\xc7\xb6\
\xe6\xaaN4r*k\xae\xec\xdas\x9d&\xa0\xad\xa0\xa6\xf3\xa1\xa6\xd06\xa2\xda\xc2\
\xa2\x8b"b?\xb4\xa0[\xb4\xa0\xd1\x17m\xd2\x02\xe5\x87\xa2]\x17(\xbai>\x94\
\x01\n\x98\tj\x94\xee\x97\xd0F\xd10N\xd3\xd0@#Ph\x01\x8f\x13\xc3\x1a5J5\xd7P\
u\x8fT\xc5\xf7\\Y\xd2\x9e\x8dem?\x0c\xc9\x1d\x92Cr\x86<$w\x85\xfd\x03\xd2\
\xe5\xce\xcb9\xf3\x9fs\xe6\x9c\xe7<\xcfy\x9eg\xe7\x91G\x1e9\xe1\x1d\x8c\x1f\
\x03p\x1cg\xdb\xcf\xb1\x16(\xa5b\x82\x00\x9dNgt\xa2\xd1h\xe4.\xac\xd1h\x8c\
\xdd\xd7l\x1e\xf2x\xf91v\xb9\xb1\xf0\xdeb\xb18\xf3\x9c\xd6\x10\xa9\xc5\xf55\
\x1a\r<\xcf#\x0cC\x00\xca\xe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xbb\xae\x9bzM\x9c\xb0q\xfcX\xb1X\x9c\x19\xe4\xeaL9g\xc1\
\x85\xb0=\x05c@\xe5\x94\xee\xce\x84\xb0]\xaf\xd7\x17\xdf\xc0r\x9a\xb83!l\xaf\
\xd3I\xe4\\u\xd1epA0\x0f\xf2\x0c\x00\xe7R\xd8V\x1a\xda\x9d#\x10qh\xb0\xc3\
\xc3\xc3\xd9\xd7\x9eWa\xdb\xb0\x13\xa7k\x16d\xce\x18r.\x827&\xa5\x88\xfdz\
\x89j\xb5\xb8\xd6\xe0\x8d[s\xce*x\xe3Q\x95m`\x18\xbc\xb1\xd3\x1b\xcf{\xb6q\
\xeb\x92\x10\xe3\xe4\xd6\x19\xbc1\x89\x8dY\x97\x92be\x9e\x8c!\xcb\x06o\x84\
\xc5]\xd5\xea4q#:m-[\x19C\xe6\x05o\xdc\xb8ui\xd9\x8c!YB\xff\x15\n\xcb\x85\
\xfe\xdb\x88,\xba\xcd\x8c!\xa3\xd4`\xefD\x8cR\x83\xa9\xbc\x8b\xacs\x84\xff\
\x0f\xe1\x8bw\xd3\xb8\xf4uJ\x00\x00\x00\x00IEND\xaeB`\x82'
def getscanprogress04Bitmap():
return wxBitmapFromImage(getscanprogress04Image())
def getscanprogress04Image():
stream = cStringIO.StringIO(getscanprogress04Data())
return wxImageFromStream(stream)
index.append('scanprogress04')
catalog['scanprogress04'] = ImageClass()
catalog['scanprogress04'].getData = getscanprogress04Data
catalog['scanprogress04'].getImage = getscanprogress04Image
catalog['scanprogress04'].getBitmap = getscanprogress04Bitmap
#----------------------------------------------------------------------
def getscanprogress05Data():
return \
'\x89PNG\r\n\x1a\n\x00\x00\x00\rIHDR\x00\x00\x008\x00\x00\x01,\x08\x06\x00\
\x00\x00\x96\xb6p\'\x00\x00\x00\x04sBIT\x08\x08\x08\x08|\x08d\x88\x00\x00\
\x18\xfbIDATx\x9c\xed]m\xac#Wy~\xee\xee\x92{6\xdc\xec\x9eMBr6\x84d\x02\t\x9d\
|(\x1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xddK\xd3(\xec\x92\tJ)\x08!\xa8U\
\n(\x95wr\x95\xa1\x94`\xb1\xd0\x17\xb9</\x88$\x95Y\xe0\xba\x01\x9a;e\x00\x80\
i\xea\xa0\x94@\x88\xec\xcb\x91\xd2.z\x8b\xd6\xefB\xb3\xb4\\\x1c\xae\x17 \x08\
x\xf4^\xd3\xf2uS\xa5\x047\xd1\xdf\xbb\xe5y\xca\x93\xc0\xb9\x98\xfa\xb7\x0b\
\x11\xb6k\xd5\x02\xf4\x81\'_o8p\xbd`\xeeu/\x84\xa0]\xb2\x86>{\x88\x8b\xe5\
\x11\x9cZea\xf4_\x17\x8b\xc5\xb1\xe30\xde\x9d\'\xd5\xa7i\xfd\xd7e\xdb\xc6\
\xa8\x1e\x9bV\xce\xd2\xb6K\x8b\xc2\x81\'\xb8\x901\xf8\xb5oy\xb8\xfdv\xad\xff\
\x81\x94h;j\x96\x91IX\x08\xc1G\x1em.\xa2\x9aT\xcc\xad\x8b\xd2\xec\xea\xd1\
\x89 d\xfa\xc2\x94\x12\x8c\xcfn\xbaN@\x15\xb0dl\x034\xb6\xe3\xca+?(\xed\xa2\
\x01\x07\xcc\xeekB\x80v\xb3\x82V\xdb\x9b\xa8\xca\x18\xa55$\x04\xd0\xb5\xcd\
\xe8\xbd\x10IUG\x16(\xdf\xd1{\xbe\x8c\xd4\xf7\x83\xbb\x8bY\xe1\xfa\x9d\xdc\
\xbfQ>\x06=?$\xa9\x1a\xae\'\xc1y~C\x98R\xd5}\x1c\x94\x12\x98\x86\x06Mc\x984G\
\x8c\xd3\x88\x0b\xb9\x01\xce\xf7\x87\xba\xe6RT\xf7\x83\xaa\xf4\x80\x03\xed\
\x0c\xbaR\xca\xac1\xdf\x8en\xb5,\xaa\xfb\xb9,\x13\xe3T\xe9\x8b\xaeOi\x0bR\
\x02\x98\x86\x84\xedm\x8f\xbdN\x08\x81\xca\'Zp\xbe;\xf9\x01P\nX\x06\x01!\xe1\
\x12\xe1\xb82\x97\xd2Xi\x0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u|\xb2\xd4\x1et\x8d\xa1\xba\xdd\x9ax\xdd`\xc8l\xb5\xd6D\xb3\x95}\xf7\
\xabt\x92\xc9\x13F`Y\xd9\x16\xf7B\xc1H\xbc\xcfk\xf3_\x9a,\xca\x18\x85\xd3\
\xaa\x8c\r~\xd446\xb3\x13\xc3R\x85mMc\xb9CV\xf3b\xad\x16z!d\xee\xa0\xca\xa5\
\xb5`\xcfI!O\xac\xef4\xb1\xbcK#\xe8y\x81\x12\'\x85IX\xab.:\r\xd4Z\x97\xb2\
\xcd\xfc\xca\xea\xcbR\xce\xdc\x8c/\x93\xe0Lq\xf0\xc64P:\x06\xb9\x00\x9a\xad=\
\x80\x84\xb9\x93\xea\xf5\xd1\x9a\xedY\x82\xff\xf3@\xbdm\x02\x1b\x91\xdedQ$\
\xc6A9AM\xdb\x00\xed\xa6\xfe\xaa\x94\xad\xd4k\xf2\n\xdb=Y@J\x8c\xb4\xee\x8e\
\x82R\x82\xba\x06\x98F\xdf\xd5j\x9c\x02*\xab\xb0m\xe8H\x1c\x80\xe5x\x1d\x04A\
v\xeb\xb1\xda\\\xd89\xac\xb9Y\x85\xedx\x88+\x80\xa8wd\xc5J\x08\xdbq\'\x838(\
\x9d\x9c g\x12\x0e\x85\xedU\x82\x94\xf9\xd6Z`\x89\xc1Yqa\xbbR\x19\x1d:\x9e\
\xfcM\xb2\xbe,X\x9au).lO\xabB\xccb]Z\xab.:\n\x07\xcb\xba4\x80I]u\xe3\xcc\x99\
3\xfblA\xce\xa9\x8b\x06\xe7<\x1c\x83<\xef\xd4\xb4F\xf8\x7f\x9e\x95[o\xbapu\
\xac\x00\x00\x00\x00IEND\xaeB`\x82'
def getscanprogress05Bitmap():
return wxBitmapFromImage(getscanprogress05Image())
def getscanprogress05Image():
stream = cStringIO.StringIO(getscanprogress05Data())
return wxImageFromStream(stream)
index.append('scanprogress05')
catalog['scanprogress05'] = ImageClass()
catalog['scanprogress05'].getData = getscanprogress05Data
catalog['scanprogress05'].getImage = getscanprogress05Image
catalog['scanprogress05'].getBitmap = getscanprogress05Bitmap
#----------------------------------------------------------------------
def getscanprogress06Data():
return \
'\x89PNG\r\n\x1a\n\x00\x00\x00\rIHDR\x00\x00\x008\x00\x00\x01,\x08\x06\x00\
\x00\x00\x96\xb6p\'\x00\x00\x00\x04sBIT\x08\x08\x08\x08|\x08d\x88\x00\x00\
\x1a\xc0IDATx\x9c\xed\x9dm\x8cc\xd7y\xdf\x7f\xb3+\xed\x9c\xd9\xdd\xec\x9e\
\x95\x1d\xed]\xf9E\xd7Id]9Mt-\xa0\t\xeb5j&\x05\x12:m#*H"\xc6\r\x1a\xa2\x9fh\
\x07\xa9i E\xa6I\xd10A\x81L\xd2\xd6\x1d;\x1f2\x1f\x02\x84_\xdc\xd2(\x90\xb0\
\xfe\xd00}\x81)\xa0\xb0\x996\xad\xae\rE\xbaN$\xeb\xae\xb1\x96\xce*\x96\xf6\
\xcczw\xe7\xccj\xb5\x93\x0f\x97\xbcs\xc9\xe1\xcb\xbd\xe4%9\xb3\x9d?\xb0;\x1c\
\xf2\xf0\x9e\xf3\x9f\xf3\xf6\x9c\xe7\xe5<+\x97/_\xde\xe3>\xc6\x03\x00\x96e-\
\xbb\x1ds\x81R*$\x08\xd0l6\xa3\x0fj\xb5\xdaT\x0ftl\xc8\xb9\x02\x00c W\xa8\
\xa1\xb5\x99\xf8\xbdq\xf5Y\xd6\n\x85\xdcj\xf4{\xa3e0#\x1e\x19\x7fN\xb1X\x04\
\xd8\'\x98\x05\x02\x05\xb9\xeek!\xa0\xd5\xa8\xd2ly\x98Q-\xea\xc2u\x86\xbf/\
\x048\xf6>9\xad\x19In\x142%h\x0cx\xbe\xc1u\xc2^\xb4,I\xa5\x9c\xcf\xec\xf9\
\x1d\x7f7\xf5wNdV{\x17\x9e\x1f\x92\xcc\x1a\x1d\xcf\xa0T\xfa\xf50\xb3\x1e\x1c\
\x9cGR\nr\xae\x8dm[\x081\xfe\xbb\xf9|~\xe4g\xda\xac\xa0\x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ae\xadaY\x02\xdb\x12H\xb9\xc3\xde\xado\xb2\xfb\xdd\xbf\
\x8e\x9e\xdflz\xcb\xf1\xf8-\x97\xcb\xe4\xf3\x05\x0c\x17\xf14\xb4[\n\xadw\x10\
b\rc\xc2\x9f\x00\x86\xee\xed\x92]r\xe6\x9dnL\xfc\xad=\x82\xedk\xe1\xd6\xe9\
\x11\x1d#-)q\xdd\x02\xae\r;o\xfc\x05\x9b\xf5v\xea\xb6MEP\x08\x81eY<\xfdt\x91\
\x8f?SFiC\x10h\x10\xbb\xa0{e\xd6\xa2\xf2\x86]\xc4\xbd\xbbp\xe2\x81\xf0\xe7\
\xa9\xee\x07wN\xc4\xca\x88\x90\xd7\x83\xdd7\xee\x1a\x94\xd64[\x9a& \xbf\xe7\
\xddll\xb5x+\xe8\xf0\xf9\xcdM\x82 \x98\x0fA\xd7u)\x14\x8a\xb8?\xfaQ\xf4\xeeY\
<_a\x08W\xcd\xde\xf01f\x07q\xea\x1e\xb7n\xfdM\xf8\xfb\x9b\x06\xce\xc0\xad[\
\xc0\x99\xfdg\xdd\xba\x05\'O\xde\xe2\x9dw\xce\xf0\xce\xdb\xb7\xb9}\xef\x047n\
\xc2\xeai\xc1\x03\x0f\x08\xce\x08\x19\xad\xc6\xe6m\xd3\xddZ,\xd67\x1aH\x14\
\xb5\xda\xfa\xc4 \xcc\xc4\x04\xa5\x94\x14\x7f\xa6D\xe1\x1f\xff,z\xf7,J\xef`v\
\xc3\xee\x12\x00wo\x81\xf9N4$\xcd\x8d\x1d\xcet{\xf1\xcc\xbb\xc2\x9f\x83G\x9d\
\xf0\xf7^O\xc7z\xdc\xec`\xcc\x9b\xe8\x1b\xdf\xe6\xe6\xb5\x93\xac\x9d\xb78)d\
\xaf\x8f#\xfbD\xb5\xf6\x07H\xb6\xa9T\xca\xe8\x11\xd7\x94$"\x98\xcb\xe5(W\xaa\
\x08i\xa3\r\x98\x9d\x9d\xb0\x81\xab\xab\xe8k\x7f\x15+y\x13!\xce\xf2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xef D7\xb1M\xca0\xd7L\t\x96K9j\xeb#n\xd8\x1a\x80c[\x89\xce\x8c\
\x83!\xb3\xeb\xb5\x06\x8df\xf2\xa0\x92l\xadK)\xc4\xc6|\xde\x81\x8d\xc9\xf5\
\x95\n\xfd\xba\x8fR\xa9\x88\xe3\x0e\xff#.\xcd\xba4\x0c\x96%i7\xab(\xa5\xfb\
\xcccqH)f\xd6\xed,UT\xb3m+u\xc8jZ\x1c\xa9\x8d\xde\x98~\xddk\x12,\xad\x07{N\n\
Z\x1b\xaa\xd5\xc1|\xf2\xa3\xbe\x93\xbe\x9e\xa5\x11\xf4\xbc rR\x98\xa7Ts\xa4\
\x86\xe848&\x98\x06i\x16\x80\xf6\x14\x17oL\x83l\xaf<\xd2\xd0h\xeeD\xb6\xc1\
\xcd\xcd\xcd\xd1egp\xf1J\x83\xb9\x05g\xcd\x1bK\xb3.\xd9\xf6\nR\xec\xd1n\xb7\
\xb1-\x8b`\xc8\xb8M+l\xf7d\x01c\xfa\xa3L\x93X\x97V._\xbe\xbcg-\xc8ge\xd1PJ\
\x85=\xa8\xd2\x8a\x07G\x08\x7f\x0b=b^\x89\x1b\x0f\xb9\x8d\x00\x00\x00\x00IEN\
D\xaeB`\x82'
def getscanprogress06Bitmap():
return wxBitmapFromImage(getscanprogress06Image())
def getscanprogress06Image():
stream = cStringIO.StringIO(getscanprogress06Data())
return wxImageFromStream(stream)
index.append('scanprogress06')
catalog['scanprogress06'] = ImageClass()
catalog['scanprogress06'].getData = getscanprogress06Data
catalog['scanprogress06'].getImage = getscanprogress06Image
catalog['scanprogress06'].getBitmap = getscanprogress06Bitmap
#----------------------------------------------------------------------
def getscanprogress07Data():
return \
'\x89PNG\r\n\x1a\n\x00\x00\x00\rIHDR\x00\x00\x008\x00\x00\x01,\x08\x06\x00\
\x00\x00\x96\xb6p\'\x00\x00\x00\x04sBIT\x08\x08\x08\x08|\x08d\x88\x00\x00\
\x1a\x9aIDATx\x9c\xed\x9d}\x8c#\xe7}\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df\xe1&t!\x9a\xed-|?\xd9\xf1\x9a0E\xf3\xd98d\
\xb3\xc9\xe6\x94\xd0\xf8\x19B&<;4\xc4\xdc&z\xcb\x924\xeb%\x94\xd2\xd8\xf6\
\xe0{\xd28\x9e/\n+\xb8\x1b\x11\x85\x15\xf4\x9f9}7\xe1\xff\x03=Q\x82\x9c\xbc:\
\xc2/\x00\x00\x00\x00IEND\xaeB`\x82'
def getscanprogress07Bitmap():
return wxBitmapFromImage(getscanprogress07Image())
def getscanprogress07Image():
stream = cStringIO.StringIO(getscanprogress07Data())
return wxImageFromStream(stream)
index.append('scanprogress07')
catalog['scanprogress07'] = ImageClass()
catalog['scanprogress07'].getData = getscanprogress07Data
catalog['scanprogress07'].getImage = getscanprogress07Image
catalog['scanprogress07'].getBitmap = getscanprogress07Bitmap
#----------------------------------------------------------------------
def getscanprogress08Data():
return \
'\x89PNG\r\n\x1a\n\x00\x00\x00\rIHDR\x00\x00\x008\x00\x00\x01,\x08\x06\x00\
\x00\x00\x96\xb6p\'\x00\x00\x00\x04sBIT\x08\x08\x08\x08|\x08d\x88\x00\x00\
\x19MIDATx\x9c\xed\x9dm\xac#Wy\xc7\x7fw\xf3r\xcf\xdd\xbdd\'\t$\xb3\x01\xb2\
\x13^\'P\x88A\x82\x1d\x12D\xdd~\xa0FU\x15S!0\xa5-nU\xb57T\x95\x8cD\xcbmUU\
\x16\xaa\xd4\x1bT\xd1\x0b\xfd\x80?P\xd5\xfd@k\xaaV\x18*\x8ay\x13\xae\n\xc5\
\x14\x95L(a\x87@\xc2l\x92f\xcfFI\xf6l\xb2\xbb\xf7\xdc%\xd9\xdb\x0fc\x8f\xc7\
\xbe~\x99\xb1\xc7\xf6\xbd\x9b\xfb\x97\xae\xae\xed\x999\xe7\xfc\xe7\xbc=\xe7y\
\xce\xf3\x9c\xa5\xbb\xee\xbak\x87+\x18W\x03\x98\xa6\xb9\xe8r\xcc\x04R\xca\
\x80 @\xbd^\x0f/\x94\xcb\xe5\x89\x13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\
\xb7,\x13\xc32p=?h\xa2a\x9e\x01\x89\x0eI\xcd*7\x99\xab\\\xa7\xb7\x90O\xfb\
\x88\x1b\xac\x1e\xe1=\xac\xc1l6K\xb5\xfa\xcfA\x12G\x05\xe8\x0bH\xdfE\xa9S\
\x11B#\xc8\x89\xf6H\xd9\xae\xd5\x95N-wj\xba\xff\xf6e\xd1m\xdea\'\xed&\xeeK\
\x89R\x8a\xac\x93A\xac\x88\xde|D\xf7Evk\xf3y\xac[\xaeA?\xf1\x00"2`\x855\xb8\
\xb6V\xc2\xf3/\x86y(\xf5h\xfb\xc1#\xed\xa6"v\x13\x13\xbb>L\x85v\xdd\x84\xdf}\
)\xe1j\x81\xf5\xb2\xf6\xaa\x7f\'rU\x08\x84\xd6m!c\x07\xadW\x01\xb0n\x02\xff\
\x89\x87\xc24\xc2\x1a\x14\x86\x85a\x04\xc3\xf5C\xbe\x17\x19$\x827\x1b\x1d(\
\xfa\xc9\xed\xba6!\xb9\xce\x7f\x11\xf9\xd5\x7f\xcc\xe7b\xa7\xcd-\t\xcc[\xac\
\xee="R\xff\x1de\x94X\xc5\xba\xb5ke\x0e\tv\xe67%\x9f\xe4\xaa\xce{\x1c4\x80tS\
\x0f\x13\x1f\x84\x9d1\x94\xa3\x13\xfc0t^\xf0!\x14\xec\x04$\xcd\x9b\x0c\xde\
\xead\xba\xcdT\xd0\xad\x00\xb1\x83`\x07X\r\xd3\xe8\x0e2\xdb\x1a_vk\x0e1\xa0\
\xf0}\xb5\x16\x17\xae\xeb\xf7\xf4\xc3%4\xa7\xc7\xd8\x05\xfb\xd3\x17+]Y\xf7\
\xb0\x108N\x06\xd7\xf3PR\x05=\xae\xd3d\x05\x88Ht\xda.\xc1\x9d\xf31\xc8%#\xd6\
A`\xe4\x9c\xde\xda"\x84F\xebn\t2\xb6\x8d\xbf*\xf1\x7f\xea\x87$\xd1\xba\xe7\
\xed\x84MT\x9ey\xac\xa7\xbfuSe"r\xc6\xd1t\x06\x1e\x04\xa1\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\xb5{Aj\x9a\xc6\xae\xd14\x89\x85h\x18\
\xf6\x8c\xf9\xacQ+\xed\xd2roV\x1alV\x9a\xb1\xf2\xdb\xf3\xe6\xb3A*|k\xc4I<i\
\xe2@\xd8\xde\xef\x98\x0b\xc1A\xc6\x17\xa5\xe7\x1c\xbcq\x96(\x14+\xbb\xbc\
\xc6\x9a\xad\xf9h\xbcg\xba\x9d\xb2\x03\xd7\x93\xb8\xdebN\xe1J\xb5\x89F\x9b\
\xdd\x9b2V*i\n!\xc8D\xd3J\xb8RN\x95`\xd4\x89\xf8}y\x87\xd2Zv*\xcb\x92i\x1a\
\xfc\xcd_\xe5{\x8eCIz\xc4C\xaaM\xb4\xd1\xf4\xf0\xbc\xd3\xd8\xf61 \xb0\x11\
\xa6i\'\xac\xd7\xdd\xc4\xaa\x8e\xd4G\xd1\xb5\x8f\xfe\xc3L\xc2\xdb\xfa\xbe\
\xa4\xbc\x99\xdc\xc2\x9b:A\xff\x94"_\xacP\xad}7\x95\x13C\xa4TTkMr\x85\xcaD\
\xb6\xfe\x99\x8c\xa2R*\xca\x1b\x9f\x9fE\xd2\x89q \xc9\xecw\xa4\xba\\\xea\x0f\
\x1c7\x0c\xfd\x16\xdeQ\xf9%\t\x1c7\xf3\xd0\x7f\x07\x81\xe3"8\x08\x1c\x97\x12\
\xf6\xdf s\x108\xae\x17W\xbc\x85w\xe9\xae\xbb\xee\xda\x19u\x14\xf3~\x86\x942\
\xa8A)\x17\xb3\x18\x9d\x07\xfe\x1f\x90\xfc\xba_\xbc\xd8\x85\xe6\x00\x00\x00\
\x00IEND\xaeB`\x82'
def getscanprogress08Bitmap():
return wxBitmapFromImage(getscanprogress08Image())
def getscanprogress08Image():
stream = cStringIO.StringIO(getscanprogress08Data())
return wxImageFromStream(stream)
index.append('scanprogress08')
catalog['scanprogress08'] = ImageClass()
catalog['scanprogress08'].getData = getscanprogress08Data
catalog['scanprogress08'].getImage = getscanprogress08Image
catalog['scanprogress08'].getBitmap = getscanprogress08Bitmap
#----------------------------------------------------------------------
def getscanprogress09Data():
return \
'\x89PNG\r\n\x1a\n\x00\x00\x00\rIHDR\x00\x00\x008\x00\x00\x01,\x08\x06\x00\
\x00\x00\x96\xb6p\'\x00\x00\x00\x04sBIT\x08\x08\x08\x08|\x08d\x88\x00\x00\
\x18\x8cIDATx\x9c\xed\x9d]\x8c$Wu\xc7\x7f\xb3\xf6\xee\xdc\xd9\x1d\xef\xde5\
\xc6[klo\xd9\x18(\x03A\xedH\xc4\x8d\xd7\x82&\x0f\xd0(Jh"\x04MH\xa0\x15E\xa4!\
J\xd4\x96\x882$R\xd2\x8a\xf20!\x08\r\xe1\x81ID\x94~q\xd2<D\x19\x1e\x10M \xd0\
$(i\x91\x04W\x0cf\x0b\x7f\x96\xbfvk7\xb6\xf7\xcezw\xe7\xce\xda\xde\xc9CuW\
\x7fwWuWw\xef\x0c\xfd\x97f\xa6\xa7\xba\xea\xde\xfb\xaf\xfbu\xee9\xe7\xde\xb3\
p\xf2\xe4\xc9\x1d\xf60\xae\x070\x0cc\xd6\xe5\x98\x08<\xcf\xf3\t\x02lll\x8c\
\x9d\xe0Z1K&\x93\x00\xa0\xb0Rf\xa3b\x03P\\Ic\x99\xed/qm\xbdJ\xcdvC\xa5[^\xcf\
\x91LZ\x00dr\xeb\xd8!\x9e\xcbd2\x00M\x82\x93D.\x9b\xea\xba\xf6!O\x85&8\x0ez\
\x12,\x16\x8b#%\x96H4?g2\x99\xa0\x06{a\x11\x11:?\xd3l~\xce\xe7rx\xaa\xf7}\
\xbd\xd2\xd970\xe5=\x80=Op*}\xf0\x9b\xdf\xb3\xb9\xfbn\xb3yAk*\xd5\xfe\xcd7NL\
\x85\xe0\xa7\x1f(O#\x9b\x9e\x98X\x13\x95b\xf8=a!\xc4\xe8\x89\xc5J\xb0ut\xb3,\
\x81\x8c\x81\xa5a, e\xf3\x7f\xa5\xa3=\x1fk\x13u=H\xd6?\x0b\x01\x95r\x81\x8d\
\x8a\x8d\xd6\x83K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4RV\x0c\xdb\n<J\xe5\x1a\xa5\xf2hg\
\xbe\xc5>MX\x96Ay=\xd7\x16\xdci\x1c\x98\xa6Aq%C*e\x91\x8b\xe8\x90\x0e\x93X\
\xd1\xaff\xdb\xc8\r:/f\x18\x0c\xd9\x8c\xda\x93JZ\x14\xf2\xa9\xc8\x01\x00b%\
\x98N55`\x8d\x93\xef\xc6=\x1c\xee/\x8b\x19>\x9a\xf1W\x1e\xb9l22\xc1X\xa7\x89\
D\xc2\x0c>\x977j\xb1\x9c|\xf7g\xab\x1b\x81VNJ\x89e\x1e\x8f\xf4|\xac\x04\x8d\
\x96\xa6i\xdb\xf1\x1c\xeb\xa7\xb5o\x0eo`\xec\x88!\x93\x80a\xc8\xae\xd1\xd4\
\x9e\x82m\x10\xa6Dp\x96\x11C\xa6\xb2\x1e\x1c\x161d\x92\xd8}\x0b\xde\x88\x98\
\x13\x8c\x03\xd7D\xc4\x90I\xe2\x9a\x88\x18\x127Z\xf5\xa3\xb3\x8c\x18\x12k\
\x13mmv\xf7\xb4H5\xe3@\x08\xd1&!E])\xc7\xba\\jm\x85\x1f\xcd$9\xe3)\xd6K\xd5\
\xa1e\xea\x97\x9f\x10\x90L\\\x87\x10\xfb\x83k\x99l\x9e~\xe1\x1c\'n]\xda5\x11\
C\xc6\xc1\xae\x88\x182\x0e\xb4\x86\x8d\xaa\xae\xfba\xab\x89E\x0c\t\x8b\x85\
\x93\'O\xee\x18S\x12\x9b\xa6\r\xcf\xf3\xfc\x1a\xf4\xbc\xd9\x0c\xe1\xd3\xc0\
\xff\x03n\xdf\xb3\xebt\x8f~\xda\x00\x00\x00\x00IEND\xaeB`\x82'
def getscanprogress09Bitmap():
return wxBitmapFromImage(getscanprogress09Image())
def getscanprogress09Image():
stream = cStringIO.StringIO(getscanprogress09Data())
return wxImageFromStream(stream)
index.append('scanprogress09')
catalog['scanprogress09'] = ImageClass()
catalog['scanprogress09'].getData = getscanprogress09Data
catalog['scanprogress09'].getImage = getscanprogress09Image
catalog['scanprogress09'].getBitmap = getscanprogress09Bitmap
#----------------------------------------------------------------------
def getscanprogress10Data():
return \
'\x89PNG\r\n\x1a\n\x00\x00\x00\rIHDR\x00\x00\x008\x00\x00\x01,\x08\x06\x00\
\x00\x00\x96\xb6p\'\x00\x00\x00\x04sBIT\x08\x08\x08\x08|\x08d\x88\x00\x00\
\x1arIDATx\x9c\xed\x9dm\x8c$\xc7y\xdf\x7f{Grk\xf7V\xb7u$E\xd61\xd2]S\xa1\xc8\
&\xa4H#\x05VF\xa6`M\x12 \x19\xc3\x084\x02\x0ci\x1c;\xf1 \x08\xe0\x15\x83$\
\xa3\xc0\x867N\x80\x0c\x82|\xd88A\xb0F>d\x83(\xc8\xe4\x83\x9dab\xd8\xeb \x82\
\xc6\x89m\x8d\x10%\x1a\xcb\xb4\xd8V\xc2pH\xf1\xa5O"\x8f}\x8c\x98\xab#\xefnk\
\x8fw\xb7\xf9\xd03==\xef\xdd35\xb3{\xa7\xfd\x13\xc7\x9d\xe9\xe9\xae\xae\x7fW\
u\xd5S\xcfK=KO=\xf5\xd4\x01w1\xee\x01PJ\x1dv=\xe6\x82 \x08B\x82\x00\xbb\xbb\
\xbb3\x17(\x04l\x96\xf3H!\xc7\x9e\xb7\x8f\xe1_\xfd\xbb\x06\xfe\x05=\xf3=G\
\xa1P(\x00t\t\xda\x801P\xd9\xaa\xdb,rfX%\x18\x87R\x92\\\xd6A\xa9\xf1\xad9\t\
\xbe\xaf\xd9\xad{S_?\x17\x82\x9b\xe5<\x1b\xa5\x9c\xd5\xf2\xca\x95\x1a\xcd\
\xa6\x9f\xfa\xda\xa1\x04+\x95\xca\xd4\x95\xc9\xba\xe0\xbab\xea\xeb\x87A)Img\
\x83\xdd\x86A\x8fym\x87\xd5\xdbj\x0b\n\xd1K\xae\xd1h%\xea^\x9d\x01\xa1\x1fR\
\x82\xeb\x08D\xbb\xc8\xac\x0b\xf5f\xba:Y%\xe8\xc4f\x9b@C\xa9\\Mt]&;\x9c \x01\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4\xb2\xf3\xdd?\xda\xda\x8d\xa6\x1f)%\
\xae\x93n\x07h\xab\x04\xe3\xc9i<\xcf\xce\xb6~\xc6\xf4&\xdf\x10ry\xf4\xc9C\
\xb0\x10Y\xf4\x88d\x0c\x99\x1f\x0e3c\xc8B\xacK\x932\x86\xcc\xd3\xbat\xd7\x0b\
\xdb\x91\xbf\xe8\xdd\x88\xc8_4\xb0\x99$\xe9\x88\xe1\xff\x032\xf0D(\x08\xb8#\
\x97\x00\x00\x00\x00IEND\xaeB`\x82'
def getscanprogress10Bitmap():
return wxBitmapFromImage(getscanprogress10Image())
def getscanprogress10Image():
stream = cStringIO.StringIO(getscanprogress10Data())
return wxImageFromStream(stream)
index.append('scanprogress10')
catalog['scanprogress10'] = ImageClass()
catalog['scanprogress10'].getData = getscanprogress10Data
catalog['scanprogress10'].getImage = getscanprogress10Image
catalog['scanprogress10'].getBitmap = getscanprogress10Bitmap
#----------------------------------------------------------------------
def getscanprogress11Data():
return \
'\x89PNG\r\n\x1a\n\x00\x00\x00\rIHDR\x00\x00\x008\x00\x00\x01,\x08\x06\x00\
\x00\x00\x96\xb6p\'\x00\x00\x00\x04sBIT\x08\x08\x08\x08|\x08d\x88\x00\x00\
\x1b\x13IDATx\x9c\xed\x9d{\x8c$\xc7}\xdf?{w\xbc\xad\xbd[\xdd\xd5\x1d%^\x1d-\
\x91MK\x14\x9b\x8a \x8d\x0cH\x1c\xeb\x04i\x92?\xec1\xfc\x87VH \x8d\x9d\x87\
\x16A\x00\xaf\x12$X\x02q\xbcN\x80`\x10\x04\xc8\xcar\xe2E\xfc\x876\x80\x03O\
\x800\x1e\x05\x01\xbc\xfe\xc3\xd0X\x96\xe1Q\x1c[c96\xc7\xb2\xe9k\x92\xa2\xd8\
\x94\xc8\xbb:\x86\xe4\xd6\xdekkOw\xb7\xf9\xa3\xa7{z\xde\xdd3=\xfb8\xec\x17\
\xb8\x9b\x9d\xee\x9e\xaa\xfav\xbd~\xf5{T\xcd\\\xbati\x97\x07\x18\'\x00\x94R\
\xfb]\x8e\xa9@k\x1d\x10\x04\xd8\xd8\xd8\x988A\xd7\xb9He\xfd\x8b(%\x87>g\x8ca\
\xf9_oP\xff\x13od\x9a9W\xb1Z\xfe\x02B\xcea\xb4ai\xa5\x8a\xd6f\xe4\xef\x16\
\x16\x16\x008\x96\xac\xe8\xc9P,>5\x92\x1c\x80\x94\x92\xa5\x7f\x94O\x94\xe6\
\xf2r\x11\xd7\xbd\x88\xa3$\xb9\x9cCi!\x97\xaaL\'F?2\x1d\xe4\xf3.\x0b\xc5\x1c\
\xfe\x90\xdap\x1dI!\xefN\x94\xcf\xbe\x11\x04X[-M=\x8fL\x9b\xe8^\xc0\xdat\xcf\
\xefk\r\xd6\xeb\x1e\xc6$/\xb1\xe7k*\xd5z\xaa<\xf6\x8d\xa0\xe7]eq\xb92\xf5|\
\xfa\x12,\x97\xcbc%\x96K1\x1e\x18\xb35q~\xdd\xe8\x97\xce\xa1\xeb\x83i\x91)\
\xc14\x03@\xda\xc1b\\d\xda\x07=\x1f\xa4\xb0\x08\x11|o6\xfbK*;X\xbe\xfa\x9b\
\xf5,\xb3\x1e\x88\xcc\x07\x99F\x8cS\xb9\\\xcd:\xf9\xd4\x98\xda(*\x04\x94\x16\
r\x89D\xb7a\x83\x931\xe0\xeb\xf1\xcb1\x15\x829\x17r\xae\xa0T\xccFR\xb1\x16\
\xea\rK\x02\x19\xbb\x07\x99\x8f\xa2\xf9\x16\xb9,!\x04\x14\x0b\x029\xba1\xf4 \
\xd3\x1a\x14\x02\xdc\x18\xb9z\xddc\xa3\xd6\x1c\xf9\xbbpi\xd3\r)\xc1uD4h\xe5]\
\xa85\xd2\x95)S\x82Nl\xdd\xac\r\x89%\x95\\\xbe?A4hm)\x16\x02\x86J\t\x04\xdbX\
f\x12\x97)3\x82\xe5r\x99/\x97\x17\xc8\xe7\x82u\xde\xfa\xfa\xe4\x0bh\x08^\x94\
1D\xcdS\xca\x19\xb4I.\xfddZ\x83\xcf\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x1c\xe47}\
\xd8q\x02@\xa7\xdd\x8d\xed\x10\xe1\xff\x03\xac\x06\x8fmy\xb1\x05\xb4\x00\x00\
\x00\x00IEND\xaeB`\x82'
def getscanprogress11Bitmap():
return wxBitmapFromImage(getscanprogress11Image())
def getscanprogress11Image():
stream = cStringIO.StringIO(getscanprogress11Data())
return wxImageFromStream(stream)
index.append('scanprogress11')
catalog['scanprogress11'] = ImageClass()
catalog['scanprogress11'].getData = getscanprogress11Data
catalog['scanprogress11'].getImage = getscanprogress11Image
catalog['scanprogress11'].getBitmap = getscanprogress11Bitmap
#----------------------------------------------------------------------
def getscanprogress12Data():
return \
'\x89PNG\r\n\x1a\n\x00\x00\x00\rIHDR\x00\x00\x008\x00\x00\x01,\x08\x06\x00\
\x00\x00\x96\xb6p\'\x00\x00\x00\x04sBIT\x08\x08\x08\x08|\x08d\x88\x00\x00\
\x1c!IDATx\x9c\xed\x9dm\x8c$\xc7y\xdf\x7f{/\xdc\xda\xbd\xd5]\x9dH\xf1\xfa(\
\xe5\xd8\xb4%\xaa\xa9\xd0R\x8bq\x88\x11O\x08\'A`\x8f\x90 \x1a\x19\x864Q\x12{\
a\x04\xc9*\x89\x81Q"C\x17\x07\x08GA\x80\xacm\xc1^\xc1\x1f\xb4\x1f\x1chbD\xc9\
*0\x921,[cI6GH"\x8f\x99Dl\xc9b\xae\x8f"y}\xd2\x1dY\xc7\x17m\xed\xf1\xee\xb6\
\x96\xe4\xdd\xe6C\xcfK\xcf{\xf7L\xcf\xec\xdde\xff\xc0\xe1f\xbb\xab\xab\xea_\
\xafO=O=Us\xa7O\x9f\xde\xe5\x0e\xc6!\x00\xcb\xb2\xf6:\x1fS\x81R*$\x08P\xa9T&\
\x8e\xb0\xb8\x92\xa5\xb8\x92\x9b8\x9eaX[\xaf\xb2\xb6^\x1b\x19.\x9f\xcf\x03p`\
\xaa\xb9I\x19Z\x1b\xea^\x90\xe8\x9bC\xa3\x83L\x07\xc6\x18\xf2\xcb\xebhmb\x7f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a\x83T\xc6\xa1\xe7T\xa0QH\x95`t\xd1\xae4\xb1\x95Nnf\xc0\x8d\x06\n\x942\
\xe4\xb2\xedS\x81\x04\xdb\x18F_\xd3\xd7D\xaaM4\xda\x84\x82 \x1d\x9d\x8c\xd2\
\xe1@\xd3N#>9H\xdb\xbd.\xf2;M\xeb\xd1$\xd7M\xef+\x9d\xe2\xa2T*\xb1V*`\xdb\
\xa1p\x1c\xf5\xc3\x98\x86\xd2iO\xccg\xdd\x9b\t\x86\x99\xcf\xd2P:\xed\xads\
\x96\x98\x9b\xaam0\x8a\xbdq\xce2\x93\xc9\x90q1\xd3\xa3\xff<\xcfo\xf5\xc1(\
\xa6\xa5t\xda\x93\xa3\xff\xfaa\x94\xd2iTz\xce\xfarx\x01\x0e\xb0^.\':\xb2l_\
\xe9\x94\x04\xfbJ\xa7\x84\xd8W:\xc5\xc0\xff\x9fJ\xa7I\xb1\xb6^\xa3\xbcQ\'\
\xe3\xda\xb1\x94N\xc3\xa0\x94\xa6\x9a\xd0\xc7)\x8a\xa9\t\xdbZ\x9b\xd8J\xa7ib\
\xdf|\x96\x04\xfb>\xbc\r\xec\xfb\xf06\x90\x86\x0fo\xeb\xa0\x80;\x11\xad\x83\
\x02T\xd2CZn#\xfc?.P\xa9\xa6\xb8\x88\x1d\xa2\x00\x00\x00\x00IEND\xaeB`\x82'
def getscanprogress12Bitmap():
return wxBitmapFromImage(getscanprogress12Image())
def getscanprogress12Image():
stream = cStringIO.StringIO(getscanprogress12Data())
return wxImageFromStream(stream)
index.append('scanprogress12')
catalog['scanprogress12'] = ImageClass()
catalog['scanprogress12'].getData = getscanprogress12Data
catalog['scanprogress12'].getImage = getscanprogress12Image
catalog['scanprogress12'].getBitmap = getscanprogress12Bitmap
#----------------------------------------------------------------------
def getupdate01Data():
return \
'\x89PNG\r\n\x1a\n\x00\x00\x00\rIHDR\x00\x00\x00.\x00\x00\x01,\x08\x06\x00\
\x00\x00\xbc\x06\x81\x88\x00\x00\x00\x04sB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xf3l\xc5\xff\x07\x1c8\xab\xde\x1b\
\x0e\xd5\x8c\x00\x00\x00\x00IEND\xaeB`\x82'
def getupdate01Bitmap():
return wxBitmapFromImage(getupdate01Image())
def getupdate01Image():
stream = cStringIO.StringIO(getupdate01Data())
return wxImageFromStream(stream)
index.append('update01')
catalog['update01'] = ImageClass()
catalog['update01'].getData = getupdate01Data
catalog['update01'].getImage = getupdate01Image
catalog['update01'].getBitmap = getupdate01Bitmap
#----------------------------------------------------------------------
def getupdate02Data():
return \
'\x89PNG\r\n\x1a\n\x00\x00\x00\rIHDR\x00\x00\x00.\x00\x00\x01,\x08\x06\x00\
\x00\x00\xbc\x06\x81\x88\x00\x00\x00\x04sBIT\x08\x08\x08\x08|\x08d\x88\x00\
\x00\x08\x9bIDATx\x9c\xed\x9a\xb1n\xe4F\x12@\x1f\x17\x0e6\x18\xe0f\xc3\x99t\
\x00\xeb\x03J\xb9\xfc\x01+e\xf6\xfeA\xf3\x0f\x9c\x1e\xfc\x01\x17^\xc0\xfe\
\x00\x03\xdePr\xe6K\xf6\x9c\xaa\xe0\xd8\x06\x94\xce\\tK\xc0\n\x14\x99\x174\
\x9b\xe4pF\xd2\xeepT\xbb\xda\xab\x07\x0c4C6\xc9\xd7\xc5\xea\xea&w\x8b\xf9|\
\xces\xe4\xc5\xa7\x168\x14\x17\xb7\xc6\xc5\xadqqk\\\xdc\x1a\x17\x7f\x88\xd5\
\xaan\xf2\xa7\xae\xd3g\xb5\xfa\xae\xfd[7u\xfb\xf9\x98s~\xf5T\xb2\x00\xab\xd5\
w\x8djD\t\x80\xa4\x8d\xa2\xed\xde\x08\x12H\xbf\xd2\xbe\xba.\x1b\x91\xc0\xcd\
\xcd\xdb\xe2\xb1s\x17O\xb1\xc8Z\xad\xeaF\x15\x90\xf0@+\xd9\xbfY\x15\x88\x88\
\xc0\xcd\xcd\xfc\xde\x0e\x1c]\xbc\xae\xebfW\xf8\x1e\xc9\xc7\xd0\x92\xf9|\xbf\
\xfc\xd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O\x8b\xadTY\xaf\xaf\xba7\xb7\x13\xc5\
\x9f&\xe29U\xae\xaf\xab\xb6$&\x96\xcb\xf3\xf6\x98\xcf \xe2\xfb\xde?\xe6G\xc2\
\xf5z\xb1\xf3&7\xf3e\xd6\xf1\xc7\x89\xed\x0b\xca\xd0E.\xbdiMO2}\xc4\xfa\xa7\
\x9a\xbc\xffv\xfe\x8e\x10\x04\xea\xb3\xeeu\xc4\xed\xfc\xa4\xad"\xe9\xf7\xc5E\
z\x89\xdf\xbfL\x0c\xc0\xcf\x00\x14\xf3\xf9\xfc\xa3u\xeb\xban\xce\xcf\xa7=(\
\x7f(\xf9\x9fS2\x8b\xc5\x82\xb7o\xdf\x16\x07\x8b\x8f\x9e\xaav\x19\xef\x1f.\
\xad?\x94{\xae1\x9f\xcf\x0f\x13\xff\x1cx\xb6\x83\xd3\xc5\xadqqk\x9e\xad\xf8\
\xff\x00.6\xa4\xac;\xb4\x08\x88\x00\x00\x00\x00IEND\xaeB`\x82'
def getupdate02Bitmap():
return wxBitmapFromImage(getupdate02Image())
def getupdate02Image():
stream = cStringIO.StringIO(getupdate02Data())
return wxImageFromStream(stream)
index.append('update02')
catalog['update02'] = ImageClass()
catalog['update02'].getData = getupdate02Data
catalog['update02'].getImage = getupdate02Image
catalog['update02'].getBitmap = getupdate02Bitmap
| gpl-2.0 | -6,522,507,984,800,969,000 | 72.228939 | 77 | 0.714061 | false |
MPIBGC-TEE/CompartmentalSystems | notebooks/ELM_dask.py | 1 | 1730 | #from dask.distributed import Client
import xarray as xr
import numpy as np
import pandas as pd
import importlib
import ELMlib
importlib.reload(ELMlib)
#client = Client(n_workers=2, threads_per_worker=2, memory_limit='1GB')
#client
#ds = xr.open_dataset('../Data/14C_spinup_holger_fire.2x2_small.nc')
from netCDF4 import Dataset
ds = Dataset('../Data/14C_spinup_holger_fire.2x2_small.nc')
#lat, lon = ds.coords['lat'], ds.coords['lon']
lat, lon = ds['lat'][:], ds['lon'][:]
lat_indices, lon_indices = np.meshgrid(
range(len(lat)),
range(len(lon)),
indexing='ij'
)
lats, lons = np.meshgrid(lat, lon, indexing='ij')
df_pd = pd.DataFrame(
{
'cell_nr': range(len(lat)*len(lon)),
'lat_index': lat_indices.flatten(),
'lon_index': lon_indices.flatten(),
'lat': lats.flatten(),
'lon': lons.flatten()
}
)
import dask.array as da
import dask.dataframe as dask_df
df_dask = dask_df.from_pandas(df_pd, npartitions=4)
df_dask
parameter_set = ELMlib.load_parameter_set(
ds_filename = '../Data/14C_spinup_holger_fire.2x2_small.nc',
time_shift = -198*365,
nstep = 10
)
def func(line):
location_dict = {
'cell_nr': int(line.cell_nr),
'lat_index': int(line.lat_index),
'lon_index': int(line.lon_index)
}
cell_nr, log, xs_12C_data, us_12C_data, rs_12C_data= ELMlib.load_model_12C_data(parameter_set, location_dict)
return cell_nr, log, xs_12C_data, us_12C_data, rs_12C_data
df_dask_2 = df_dask.apply(func, axis=1, meta=('A', 'object'))
df_dask_2.compute()
type(df_dask_2)
df_dask_2
list(df_dask_2)
pd.DataFrame(list(df_dask_2), columns=('cell_nr', 'log', 'xs_12C_data', 'us_12C_data', 'rs_12C_data'))
| mit | 2,440,978,287,868,239,400 | 23.366197 | 113 | 0.636416 | false |
gusgollings/scbdo | scbdo/tod.py | 1 | 16340 |
# SCBdo : DISC Track Racing Management Software
# Copyright (C) 2010 Nathan Fraser
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
"""Time of Day (ToD) functions and abstract class.
This module defines the tod class and some utility functions.
ToD records are used to establish net times
Time of Day quantities are stored as a positive decimal number of
seconds in the range [0, 86400). The overflow value '24:00:00'
(equivalent to 86400 seconds) is forbidden and its presence
flags a programming error or an error in the attached timing device.
All time of day and net time values must be less than 24hrs.
'rounding' is by truncation toward zero. If a negative value is
specified by manually setting the timeval attribute, the resulting
timestring may not be what is expected. Arithmetic will still be
exact, however a negative result may not display as expected.
A time of day object includes:
- timeval : decimal tod in seconds (eg 1.2345, 4506.9023, etc)
- index : 4 character identifier string (eg '1' to '9999')
- chan : 3 character channel string from source (eg 'C0', 'C2M', etc)
- refid : string reference id, used for RFID tag events (eg '75ae7f')
Supported ToD String Patterns:
[[HH:]MM:]SS[.dcmz] Canonical
[[HH-]MM-]SS[.dcmz] Keypad
[[HHh]MM:]SS[.dcmz] Result
Arithmetic operations on ToD types:
The only supported arithmetic operations on ToD objects are
subtraction and addition. Subtraction obtains a net time from
two time of day values, while addition obtains a time of day
from a time of day and a net time. These conventions are assumed
and have the following peculiarities:
Given two tod objects a and b, the statement:
c = a - b
Creates a "net time" c such that:
c.timeval == (a.timeval - b.timeval) if a.timeval >= b.timeval
OR
c.timeval == (86400 - b.timeval + a.timeval) if a.timeval < b.timeval
'c' is a new tod object, whose timeval is the exact number of
seconds between tod 'b' and tod 'a'. 'b' is always
assumed to have happened before 'a', and so if the value of
'a.timeval' is less than the value of 'b.timeval', overflow
is assumed.
Given a tod object a and a "net time" b, the statement:
c = a + b
Creates a new tod c such that:
c.timeval == (a.timeval + b.timeval) % 86400
'c' is a new tod object, whose timeval is exactly the number of
seconds in net time 'b' after tod 'a'.
In both cases, the index chan and refid are set on 'c' as follows:
index = ''
chan = 'NET'
refid = ''
Normalised tod strings are printed as on the Timy receipt:
'NNNN CCC HH:MM:SS.dcmz REFID'
Where 'NNNN' is the index, 'CCC' is the chan and the time is
printed, space padded, according to the requested precision.
"""
import decimal # ToD internal representation
import re # used to scan ToD string: HH:MM:SS.dcmz
import time
QUANT_5PLACES = decimal.Decimal('0.00001') # does not work with Timy printer
QUANT_4PLACES = decimal.Decimal('0.0001')
QUANT_3PLACES = decimal.Decimal('0.001')
QUANT_2PLACES = decimal.Decimal('0.01')
QUANT_1PLACE = decimal.Decimal('0.1')
QUANT_0PLACES = decimal.Decimal('1')
QUANT = [QUANT_0PLACES, QUANT_1PLACE, QUANT_2PLACES,
QUANT_3PLACES, QUANT_4PLACES, QUANT_5PLACES]
QUANT_FW = [2, 4, 5, 6, 7, 8]
QUANT_TWID = [8, 10, 11, 12, 13, 14]
QUANT_PAD = [' ', ' ', ' ', ' ', '', '']
TOD_RE=re.compile(r'^(?:(?:(\d{1,2})[h:-])?(\d{1,2})[:-])?(\d{1,2}(?:\.\d+)?)$')
def str2tod(timeval=''):
"""Return tod for given string without fail."""
ret = None
if timeval is not None and timeval != '':
try:
ret = tod(timeval)
except:
pass
return ret
def dec2str(dectod=None, places=4, zeros=False):
"""Return formatted string for given tod decimal value.
Convert the decimal number dectod to a time string with the
supplied number of decimal places.
Note: negative timevals match case one or three depending on
value of zeros flag, and are truncated toward zero.
Oversized timevals will grow in width
optional argument 'zeros' will use leading zero chars. eg:
'00h00:01.2345' zeros=True
'1.2345' zeros=False
"""
strtod = None
assert places >= 0 and places <= 5, 'places not in range [0, 5]'
if dectod is not None: # conditional here?
if zeros or dectod >= 3600: # NOTE: equal compares fine w/decimal
fmt = '{0}h{1:02}:{2:0{3}}' # 'HHhMM:SS.dcmz'
if zeros:
fmt = '{0:02}:{1:02}:{2:0{3}}' # '00h00:0S.dcmz'
strtod = fmt.format(int(dectod)//3600,
(int(dectod)%3600)//60,
dectod.quantize(QUANT[places],
rounding=decimal.ROUND_FLOOR)%60,
QUANT_FW[places])
elif dectod >= 60: # MM:SS.dcmz
strtod = '{0}:{1:0{2}}'.format(int(dectod)//60,
dectod.quantize(QUANT[places],
rounding=decimal.ROUND_FLOOR)%60,
QUANT_FW[places])
else: # SS.dcmz or -SSSSS.dcmz
strtod = '{0}'.format(dectod.quantize(QUANT[places],
rounding=decimal.ROUND_FLOOR))
return strtod
def str2dec(timestr=''):
"""Return decimal for given string.
Convert the time of day value represented by the string supplied
to a decimal number of seconds.
Attempts to match against the common patterns:
HHhMM:SS.dcmz Result style
HH:MM:SS.dcmz Canonical
HH-MM-SS.dcmz Keypad
In optional groups as follows:
[[HH:]MM:]SS[.dcmz]
NOTE: Now truncates all incoming times to 4 places to avoid
inconsistencies.
"""
dectod=None
timestr=timestr.strip()
if timestr == 'now':
ltoft = time.localtime().tm_isdst * 3600 # DST Hack
dectod = decimal.Decimal(str(
(time.time() - (time.timezone - ltoft)) % 86400))
# !!ERROR!! 2038, UTC etc -> check def Unix time
else:
m = TOD_RE.match(timestr)
if m is not None:
dectod = decimal.Decimal(m.group(3))
dectod += decimal.Decimal(m.group(2) or 0) * 60
dectod += decimal.Decimal(m.group(1) or 0) * 3600
else:
# last attempt - try and handle as other decimal constructor
dectod = decimal.Decimal(timestr)
return dectod.quantize(QUANT[4], rounding=decimal.ROUND_FLOOR)
class tod(object):
"""A class for representing time of day and RFID events."""
def __init__(self, timeval=0, index='', chan='', refid=''):
"""Construct tod object.
Keyword arguments:
timeval -- time value to be represented (string/int/decimal/tod)
index -- tod index identifier string
chan -- channel string
refed -- a reference identifier string
"""
self.index = str(index)[0:4]
self.chan = str(chan)[0:3]
self.refid = refid
if type(timeval) is str:
self.timeval = str2dec(timeval)
elif type(timeval) is tod:
self.timeval = timeval.timeval
else:
self.timeval = decimal.Decimal(timeval)
assert self.timeval >= 0 and self.timeval < 86400, 'timeval not in range [0, 86400)'
def __str__(self):
"""Return a normalised tod string."""
return self.refstr()
def __repr__(self):
"""Return object representation string."""
return "tod('{0}', '{1}', '{2}', '{3}')".format(str(self.timeval),
str(self.index), str(self.chan), str(self.refid))
def refstr(self, places=4):
"""Return 'normalised' string form.
'NNNN CCC HHhMM:SS.dcmz REFID'
to the specified number of decimal places in the set
[0, 1, 2, 3, 4, 5]
"""
return '{0: >4} {1: <3} {2} {3}'.format(self.index, self.chan,
self.timestr(places), self.refid)
def truncate(self, places=4):
"""Return a new ToD object with a truncated time value."""
return tod(timeval=self.timeval.quantize(QUANT[places],
rounding=decimal.ROUND_FLOOR), index='', chan='ToD', refid='')
def as_hours(self, places=0):
"""Return the tod value in hours, truncated to the desired places."""
return (self.timeval / 3600).quantize(QUANT[places],
rounding=decimal.ROUND_FLOOR)
def as_seconds(self, places=0):
"""Return the tod value in seconds, truncated to the desired places."""
return self.timeval.quantize(QUANT[places],
rounding=decimal.ROUND_FLOOR)
def as_minutes(self, places=0):
"""Return the tod value in minutes, truncated to the desired places."""
return (self.timeval / 60).quantize(QUANT[places],
rounding=decimal.ROUND_FLOOR)
def timestr(self, places=4, zeros=False):
"""Return time string component of the tod, whitespace padded."""
return '{0: >{1}}{2}'.format(dec2str(self.timeval, places, zeros),
QUANT_TWID[places], QUANT_PAD[places])
def rawtime(self, places=4, zeros=False):
"""Return time string component of the tod, without padding."""
return dec2str(self.timeval, places, zeros)
def speedstr(self, dist=200):
"""Return an average speed estimate for the provided distance."""
if self.timeval == 0:
return '---.--- km/h'
return '{0:7.3f} km/h'.format(3.6 * float(dist) / float(self.timeval))
def copy(self):
"""Return a copy of the supplied tod."""
return tod(self.timeval, self.index, self.chan, self.refid)
def __lt__(self, other):
if type(other) is tod:
return self.timeval < other.timeval
else:
return self.timeval < other
def __le__(self, other):
if type(other) is tod:
return self.timeval <= other.timeval
else:
return self.timeval <= other
def __eq__(self, other):
if type(other) is tod:
return self.timeval == other.timeval
else:
return self.timeval == other
def __ne__(self, other):
if type(other) is tod:
return self.timeval != other.timeval
else:
return self.timeval != other
def __gt__(self, other):
if type(other) is tod:
return self.timeval > other.timeval
else:
return self.timeval > other
def __ge__(self, other):
if type(other) is tod:
return self.timeval >= other.timeval
else:
return self.timeval >= other
def __sub__(self, other):
"""Compute time of day subtraction and return a NET tod object.
NOTE: 'other' always happens _before_ self, so a smaller value
for self implies rollover of the clock. This mods all net
times by 24Hrs.
"""
if type(other) is tod:
oft = None
if self.timeval >= other.timeval:
oft = self.timeval - other.timeval
else:
oft = 86400 - other.timeval + self.timeval
return tod(timeval=oft, index='', chan='NET', refid='')
else:
raise TypeError('Cannot subtract {0} from tod.'.format(
str(type(other).__name__)))
def __add__(self, other):
"""Compute time of day addition and return a new tod object.
NOTE: 'other' is assumed to be a NET time interval. The returned
tod will have a timeval mod 86400.
"""
if type(other) is tod:
oft = (self.timeval + other.timeval) % 86400
return tod(timeval=oft, index='', chan='ToD', refid='')
else:
raise TypeError('Cannot add {0} to tod.'.format(
str(type(other).__name__)))
# ToD 'constants'
ZERO = tod()
MAX = tod('23h59:59.9999')
# Fake times for special cases
FAKETIMES = {
'catch':ZERO,
'max':MAX.copy(),
'caught':MAX.copy(),
'abort':MAX.copy(),
'dsq':MAX.copy(),
'dnf':MAX.copy(),
'dns':MAX.copy()}
extra = decimal.Decimal('0.00001')
cof = decimal.Decimal('0.00001')
for c in ['caught', 'abort', 'dsq', 'dnf', 'dns']:
FAKETIMES[c].timeval += cof
cof += extra
class todlist():
"""ToD list helper class for managing splits and ranks."""
def __init__(self, lbl=''):
self.__label = lbl
self.__store = []
def __iter__(self):
return self.__store.__iter__()
def __len__(self):
return len(self.__store)
def __getitem__(self, key):
return self.__store[key]
def rank(self, bib, series=''):
"""Return current 0-based rank for given bib."""
ret = None
i = 0
last = None
for lt in self.__store:
if last is not None:
if lt != last:
i += 1
if lt.refid == bib and lt.index == series:
ret = i
break
last = lt
return ret
def clear(self):
self.__store = []
def remove(self, bib, series=''):
i = 0
while i < len(self.__store):
if self.__store[i].refid == bib and self.__store[i].index == series:
del self.__store[i]
else:
i += 1
def insert(self, t, bib=None, series=''):
"""Insert t into ordered list."""
ret = None
if t in FAKETIMES: # re-assign a coded 'finish'
t = FAKETIMES[t]
if type(t) is tod:
if bib is None:
bib = t.index
rt = tod(timeval=t.timeval, chan=self.__label,
refid=bib, index=series)
last = None
i = 0
found = False
for lt in self.__store:
if rt < lt:
self.__store.insert(i, rt)
found = True
break
i += 1
if not found:
self.__store.append(rt)
if __name__ == "__main__":
srcs = ['1:23:45.6789', '1:23-45.6789', '1-23-45.6789',
'1:23:45', '1:23-45', '1-23-45',
'3:45.6789', '3-45.6789',
'3:45', '3-45',
'45.6789', '5.6',
'45',
1.4, float('1.4'), decimal.Decimal('1.4'), '1.4',
10123, float('10123'), decimal.Decimal('10123'), '10123',
10123.456, float('10123.456'),
decimal.Decimal('10123.456'), '10123.456',
'-10234', '87012', '0', '86400', '86399.9999',
'inf', 'nan', 'zero', 'now', '-inf',
tod(0, 'ZERO'), tod('now', 'NOW') ]
print ('1: Check Source Formats')
for src in srcs:
try:
print ('\t' + repr(src) + ' =>\t' + str(tod(src)) + '/' + str(str2tod(src)))
except Exception as e:
print ('\t' + repr(src) + ' =>\t' + str(e) + '/' + str(str2tod(src)))
print ('2: ToD Subtraction')
a = tod(0, '1', 'C0')
print ('\t a: '+ str(a))
b = tod('12.1234', '2', 'C1')
print ('\t b: '+ str(b))
print ('\t [b-a]: '+ str(b-a))
print ('\t [b+a]: '+ str(b+a))
print ('\t1/100s: '+ (b-a).refstr(2))
print ('\t1/100s: '+ (b+a).refstr(2))
print ('\t NET: '+ (b-a).timestr(2))
print ('\t ToD: '+ (b+a).timestr(2))
print ('\t [a-b]: '+ str(a-b))
print ('\t [a+b]: '+ str(a+b))
print ('\t1/100s: '+ (a-b).refstr(2))
print ('\t1/100s: '+ (a+b).refstr(2))
print ('3: Copy & Speedstr')
c = b.copy()
print ('\t c: '+ str(c))
print ('\t avg: '+ (b-a).speedstr())
| gpl-3.0 | 5,077,695,465,656,237,000 | 32.970894 | 92 | 0.567993 | false |
piotroxp/scibibscan | scib/lib/python3.5/site-packages/astropy/coordinates/baseframe.py | 1 | 45786 | # -*- coding: utf-8 -*-
# Licensed under a 3-clause BSD style license - see LICENSE.rst
"""
Framework and base classes for coordinate frames/"low-level" coordinate
classes.
"""
from __future__ import (absolute_import, unicode_literals, division,
print_function)
# Standard library
import inspect
import warnings
from copy import deepcopy
from collections import namedtuple
# Dependencies
import numpy as np
# Project
from ..utils.compat.misc import override__dir__
from ..extern import six
from ..utils.exceptions import AstropyDeprecationWarning, AstropyWarning
from .. import units as u
from ..utils import OrderedDict
from .transformations import TransformGraph
from .representation import (BaseRepresentation, CartesianRepresentation,
SphericalRepresentation,
UnitSphericalRepresentation,
REPRESENTATION_CLASSES)
__all__ = ['BaseCoordinateFrame', 'frame_transform_graph', 'GenericFrame',
'FrameAttribute', 'TimeFrameAttribute', 'QuantityFrameAttribute',
'EarthLocationAttribute', 'RepresentationMapping']
# the graph used for all transformations between frames
frame_transform_graph = TransformGraph()
def _get_repr_cls(value):
"""
Return a valid representation class from ``value`` or raise exception.
"""
if value in REPRESENTATION_CLASSES:
value = REPRESENTATION_CLASSES[value]
try:
# value might not be a class, so use try
assert issubclass(value, BaseRepresentation)
except (TypeError, AssertionError):
raise ValueError(
'Representation is {0!r} but must be a BaseRepresentation class '
'or one of the string aliases {1}'.format(
value, list(REPRESENTATION_CLASSES)))
return value
class FrameMeta(type):
def __new__(mcls, name, bases, members):
if 'default_representation' in members:
default_repr = members.pop('default_representation')
found_default_repr = True
else:
default_repr = None
found_default_repr = False
if 'frame_specific_representation_info' in members:
repr_info = members.pop('frame_specific_representation_info')
found_repr_info = True
else:
repr_info = None
found_repr_info = False
# somewhat hacky, but this is the best way to get the MRO according to
# https://mail.python.org/pipermail/python-list/2002-December/167861.html
tmp_cls = super(FrameMeta, mcls).__new__(mcls, name, bases, members)
# now look through the whole MRO for the class attributes, raw for
# frame_attr_names, and leading underscore for others
for m in (c.__dict__ for c in tmp_cls.__mro__):
if not found_default_repr and '_default_representation' in m:
default_repr = m['_default_representation']
found_default_repr = True
if (not found_repr_info and
'_frame_specific_representation_info' in m):
repr_info = m['_frame_specific_representation_info']
found_repr_info = True
if found_default_repr and found_repr_info:
break
else:
raise ValueError(
'Could not find all expected BaseCoordinateFrame class '
'attributes. Are you mis-using FrameMeta?')
# Make read-only properties for the frame class attributes that should
# be read-only to make them immutable after creation.
# We copy attributes instead of linking to make sure there's no
# accidental cross-talk between classes
mcls.readonly_prop_factory(members, 'default_representation',
default_repr)
mcls.readonly_prop_factory(members,
'frame_specific_representation_info',
deepcopy(repr_info))
# now set the frame name as lower-case class name, if it isn't explicit
if 'name' not in members:
members['name'] = name.lower()
return super(FrameMeta, mcls).__new__(mcls, name, bases, members)
@staticmethod
def readonly_prop_factory(members, attr, value):
private_attr = '_' + attr
def getter(self):
return getattr(self, private_attr)
members[private_attr] = value
members[attr] = property(getter)
class FrameAttribute(object):
"""A non-mutable data descriptor to hold a frame attribute.
This class must be used to define frame attributes (e.g. ``equinox`` or
``obstime``) that are included in a frame class definition.
Examples
--------
The `~astropy.coordinates.FK4` class uses the following class attributes::
class FK4(BaseCoordinateFrame):
equinox = TimeFrameAttribute(default=_EQUINOX_B1950)
obstime = TimeFrameAttribute(default=None,
secondary_attribute='equinox')
This means that ``equinox`` and ``obstime`` are available to be set as
keyword arguments when creating an ``FK4`` class instance and are then
accessible as instance attributes. The instance value for the attribute
must be stored in ``'_' + <attribute_name>`` by the frame ``__init__``
method.
Note in this example that ``equinox`` and ``obstime`` are time attributes
and use the ``TimeAttributeFrame`` class. This subclass overrides the
``convert_input`` method to validate and convert inputs into a ``Time``
object.
Parameters
----------
default : object
Default value for the attribute if not provided
secondary_attribute : str
Name of a secondary instance attribute which supplies the value if
``default is None`` and no value was supplied during initialization.
"""
_nextid = 1
"""
Used to ascribe some ordering to FrameAttribute instances so that the
order they were assigned in a class body can be determined.
"""
def __init__(self, default=None, secondary_attribute=''):
self.default = default
self.secondary_attribute = secondary_attribute
# Use FrameAttribute._nextid explicitly so that subclasses of
# FrameAttribute use the same counter
self._order = FrameAttribute._nextid
FrameAttribute._nextid += 1
def convert_input(self, value):
"""
Validate the input ``value`` and convert to expected attribute class.
The base method here does nothing, but subclasses can implement this
as needed. The method should catch any internal exceptions and raise
ValueError with an informative message.
The method returns the validated input along with a boolean that
indicates whether the input value was actually converted. If the input
value was already the correct type then the ``converted`` return value
should be ``False``.
Parameters
----------
value : object
Input value to be converted.
Returns
-------
output_value
The ``value`` converted to the correct type (or just ``value`` if
``converted`` is False)
converted : bool
True if the conversion was actually performed, False otherwise.
Raises
------
ValueError
If the input is not valid for this attribute.
"""
return value, False
def __get__(self, instance, frame_cls=None):
if not hasattr(self, 'name'):
# Find attribute name of self by finding this object in the frame
# class which is requesting this attribute or any of its
# superclasses.
for mro_cls in frame_cls.__mro__:
for name, val in mro_cls.__dict__.items():
if val is self:
self.name = name
break
if hasattr(self, 'name'): # Can't nicely break out of two loops
break
else:
# Cannot think of a way to actually raise this exception. This
# instance containing this code must be in the class dict in
# order to get excecuted by attribute access. But leave this
# here just in case...
raise AttributeError(
'Unexpected inability to locate descriptor')
out = None
if instance is not None:
out = getattr(instance, '_' + self.name, None)
if out is None and self.default is None:
out = getattr(instance, self.secondary_attribute, None)
if out is None:
out = self.default
out, converted = self.convert_input(out)
if instance is not None and converted:
setattr(instance, '_' + self.name, out)
return out
def __set__(self, instance, val):
raise AttributeError('Cannot set frame attribute')
class TimeFrameAttribute(FrameAttribute):
"""
Frame attribute descriptor for quantities that are Time objects.
See the `~astropy.coordinates.FrameAttribute` API doc for further
information.
Parameters
----------
default : object
Default value for the attribute if not provided
secondary_attribute : str
Name of a secondary instance attribute which supplies the value if
``default is None`` and no value was supplied during initialization.
"""
def convert_input(self, value):
"""
Convert input value to a Time object and validate by running through
the Time constructor. Also check that the input was a scalar.
Parameters
----------
value : object
Input value to be converted.
Returns
-------
out, converted : correctly-typed object, boolean
Tuple consisting of the correctly-typed object and a boolean which
indicates if conversion was actually performed.
Raises
------
ValueError
If the input is not valid for this attribute.
"""
from ..time import Time
if value is None:
return None, False
if isinstance(value, Time):
out = value
converted = False
else:
try:
out = Time(value)
except Exception as err:
raise ValueError(
'Invalid time input {0}={1!r}\n{2}'.format(self.name,
value, err))
converted = True
return out, converted
class QuantityFrameAttribute(FrameAttribute):
"""
A frame attribute that is a quantity with specified units and shape
(optionally).
Parameters
----------
default : object
Default value for the attribute if not provided
secondary_attribute : str
Name of a secondary instance attribute which supplies the value if
``default is None`` and no value was supplied during initialization.
unit : unit object or None
Name of a unit that the input will be converted into. If None, no
unit-checking or conversion is performed
shape : tuple or None
If given, specifies the shape the attribute must be
"""
def __init__(self, default=None, secondary_attribute='', unit=None, shape=None):
super(QuantityFrameAttribute, self).__init__(default, secondary_attribute)
self.unit = unit
self.shape = shape
def convert_input(self, value):
"""
Checks that the input is a Quantity with the necessary units (or the
special value ``0``).
Parameters
----------
value : object
Input value to be converted.
Returns
-------
out, converted : correctly-typed object, boolean
Tuple consisting of the correctly-typed object and a boolean which
indicates if conversion was actually performed.
Raises
------
ValueError
If the input is not valid for this attribute.
"""
if np.all(value == 0) and self.unit is not None and self.unit is not None:
return u.Quantity(np.zeros(self.shape), self.unit), True
else:
converted = True
if not (hasattr(value, 'unit') ):
raise TypeError('Tried to set a QuantityFrameAttribute with '
'something that does not have a unit.')
oldvalue = value
value = u.Quantity(oldvalue, copy=False).to(self.unit)
if self.shape is not None and value.shape != self.shape:
raise ValueError('The provided value has shape "{0}", but '
'should have shape "{1}"'.format(value.shape,
self.shape))
if (oldvalue.unit == value.unit and hasattr(oldvalue, 'value') and
np.all(oldvalue.value == value.value)):
converted = False
return value, converted
class EarthLocationAttribute(FrameAttribute):
"""
A frame attribute that can act as a `~astropy.coordinates.EarthLocation`.
It can be created as anything that can be transformed to the
`~astropy.coordinates.ITRS` frame, but always presents as an `EarthLocation`
when accessed after creation.
Parameters
----------
default : object
Default value for the attribute if not provided
secondary_attribute : str
Name of a secondary instance attribute which supplies the value if
``default is None`` and no value was supplied during initialization.
"""
def convert_input(self, value):
"""
Checks that the input is a Quantity with the necessary units (or the
special value ``0``).
Parameters
----------
value : object
Input value to be converted.
Returns
-------
out, converted : correctly-typed object, boolean
Tuple consisting of the correctly-typed object and a boolean which
indicates if conversion was actually performed.
Raises
------
ValueError
If the input is not valid for this attribute.
"""
if value is None:
return None, False
elif isinstance(value, EarthLocation):
return value, False
else:
#we have to do the import here because of some tricky circular deps
from .builtin_frames import ITRS
if not hasattr(value, 'transform_to'):
raise ValueError('"{0}" was passed into an '
'EarthLocationAttribute, but it does not have '
'"transform_to" method'.format(value))
itrsobj = value.transform_to(ITRS)
return itrsobj.earth_location, True
_RepresentationMappingBase = \
namedtuple('RepresentationMapping',
('reprname', 'framename', 'defaultunit'))
class RepresentationMapping(_RepresentationMappingBase):
"""
This `~collections.namedtuple` is used with the
``frame_specific_representation_info`` attribute to tell frames what
attribute names (and default units) to use for a particular representation.
``reprname`` and ``framename`` should be strings, while ``defaultunit`` can
be either an astropy unit, the string ``'recommended'`` (to use whatever
the representation's ``recommended_units`` is), or None (to indicate that
no unit mapping should be done).
"""
def __new__(cls, reprname, framename, defaultunit='recommended'):
# this trick just provides some defaults
return super(RepresentationMapping, cls).__new__(cls, reprname,
framename,
defaultunit)
@six.add_metaclass(FrameMeta)
class BaseCoordinateFrame(object):
"""
The base class for coordinate frames.
This class is intended to be subclassed to create instances of specific
systems. Subclasses can implement the following attributes:
* `default_representation`
A subclass of `~astropy.coordinates.BaseRepresentation` that will be
treated as the default representation of this frame. This is the
representation assumed by default when the frame is created.
* `~astropy.coordinates.FrameAttribute` class attributes
Frame attributes such as ``FK4.equinox`` or ``FK4.obstime`` are defined
using a descriptor class. See the narrative documentation or
built-in classes code for details.
* `frame_specific_representation_info`
A dictionary mapping the name or class of a representation to a list of
`~astropy.coordinates.RepresentationMapping` objects that tell what
names and default units should be used on this frame for the components
of that representation.
"""
default_representation = None
# specifies special names/units for representation attributes
frame_specific_representation_info = {}
# This __new__ provides for backward-compatibility with pre-0.4 API.
# TODO: remove in 1.0
def __new__(cls, *args, **kwargs):
# Only do backward-compatibility if frame is previously defined one
frame_name = cls.__name__.lower()
if frame_name not in ['altaz', 'fk4', 'fk4noeterms', 'fk5',
'galactic', 'icrs']:
return super(BaseCoordinateFrame, cls).__new__(cls)
use_skycoord = False
if (len(args) > 1 or (len(args) == 1 and
not isinstance(args[0], BaseRepresentation))):
for arg in args:
if (not isinstance(arg, u.Quantity)
and not isinstance(arg, BaseRepresentation)):
msg = ('Initializing frame classes like "{0}" using string '
'or other non-Quantity arguments is deprecated, and '
'will be removed in the next version of Astropy. '
'Instead, you probably want to use the SkyCoord '
'class with the "frame={1}" keyword, or if you '
'really want to use the low-level frame classes, '
'create it with an Angle or Quantity.')
warnings.warn(msg.format(cls.__name__,
cls.__name__.lower()),
AstropyDeprecationWarning)
use_skycoord = True
break
if 'unit' in kwargs and not use_skycoord:
warnings.warn(
"Initializing frames using the ``unit`` argument is "
"now deprecated. Use SkyCoord or pass Quantity "
"instances to frames instead.", AstropyDeprecationWarning)
use_skycoord = True
if not use_skycoord:
representation = kwargs.get('representation',
cls._default_representation)
representation = _get_repr_cls(representation)
repr_info = cls._get_representation_info()
for key in repr_info[representation]['names']:
if key in kwargs:
if not isinstance(kwargs[key], u.Quantity):
warnings.warn(
"Initializing frames using non-Quantity arguments "
"is now deprecated. Use SkyCoord or pass Quantity "
"instances instead.", AstropyDeprecationWarning)
use_skycoord = True
break
if use_skycoord:
kwargs['frame'] = frame_name
from .sky_coordinate import SkyCoord
return SkyCoord(*args, **kwargs)
else:
return super(BaseCoordinateFrame, cls).__new__(cls)
def __init__(self, *args, **kwargs):
self._attr_names_with_defaults = []
if 'representation' in kwargs:
self.representation = kwargs.pop('representation')
# if not set below, this is a frame with no data
representation_data = None
for fnm, fdefault in self.get_frame_attr_names().items():
# Read-only frame attributes are defined as FrameAttribue
# descriptors which are not settable, so set 'real' attributes as
# the name prefaced with an underscore.
if fnm in kwargs:
value = kwargs.pop(fnm)
setattr(self, '_' + fnm, value)
else:
setattr(self, '_' + fnm, fdefault)
self._attr_names_with_defaults.append(fnm)
# Validate input by getting the attribute here.
getattr(self, fnm)
pref_rep = self.representation
args = list(args) # need to be able to pop them
if (len(args) > 0) and (isinstance(args[0], BaseRepresentation) or
args[0] is None):
representation_data = args.pop(0)
if len(args) > 0:
raise TypeError(
'Cannot create a frame with both a representation and '
'other positional arguments')
elif self.representation:
repr_kwargs = {}
for nmkw, nmrep in self.representation_component_names.items():
if len(args) > 0:
#first gather up positional args
repr_kwargs[nmrep] = args.pop(0)
elif nmkw in kwargs:
repr_kwargs[nmrep] = kwargs.pop(nmkw)
#special-case the Spherical->UnitSpherical if no `distance`
#TODO: possibly generalize this somehow?
if repr_kwargs:
if repr_kwargs.get('distance', True) is None:
del repr_kwargs['distance']
if (issubclass(self.representation, SphericalRepresentation) and
'distance' not in repr_kwargs):
representation_data = UnitSphericalRepresentation(**repr_kwargs)
else:
representation_data = self.representation(**repr_kwargs)
if len(args) > 0:
raise TypeError(
'{0}.__init__ had {1} remaining unhandled arguments'.format(
self.__class__.__name__, len(args)))
if kwargs:
raise TypeError(
'Coordinate frame got unexpected keywords: {0}'.format(
list(kwargs)))
self._data = representation_data
# We do ``is not None`` because self._data might evaluate to false for
# empty arrays or data == 0
if self._data is not None:
self._rep_cache = dict()
self._rep_cache[self._data.__class__.__name__, False] = self._data
@property
def data(self):
"""
The coordinate data for this object. If this frame has no data, an
`~.exceptions.ValueError` will be raised. Use `has_data` to
check if data is present on this frame object.
"""
if self._data is None:
raise ValueError('The frame object "{0}" does not have associated '
'data'.format(repr(self)))
return self._data
@property
def has_data(self):
"""
True if this frame has `data`, False otherwise.
"""
return self._data is not None
def __len__(self):
return len(self.data)
def __nonzero__(self): # Py 2.x
return self.isscalar or len(self) != 0
def __bool__(self): # Py 3.x
return self.isscalar or len(self) != 0
@property
def shape(self):
return self.data.shape
@property
def isscalar(self):
return self.data.isscalar
@classmethod
def get_frame_attr_names(cls):
seen = set()
attributes = []
for mro_cls in cls.__mro__:
for name, val in mro_cls.__dict__.items():
if isinstance(val, FrameAttribute) and name not in seen:
seen.add(name)
# Add the sort order, name, and actual value of the frame
# attribute in question
attributes.append((val._order, name,
getattr(mro_cls, name)))
# Sort by the frame attribute order
attributes.sort(key=lambda a: a[0])
return OrderedDict((a[1], a[2]) for a in attributes)
@property
def representation(self):
"""
The representation of the data in this frame, as a class that is
subclassed from `~astropy.coordinates.BaseRepresentation`. Can
also be *set* using the string name of the representation.
"""
if not hasattr(self, '_representation'):
self._representation = self.default_representation
return self._representation
@representation.setter
def representation(self, value):
self._representation = _get_repr_cls(value)
@classmethod
def _get_representation_info(cls):
# This exists as a class method only to support handling frame inputs
# without units, which are deprecated and will be removed. This can be
# moved into the representation_info property at that time.
repr_attrs = {}
for repr_cls in REPRESENTATION_CLASSES.values():
repr_attrs[repr_cls] = {'names': [], 'units': []}
for c in repr_cls.attr_classes.keys():
repr_attrs[repr_cls]['names'].append(c)
rec_unit = repr_cls.recommended_units.get(c, None)
repr_attrs[repr_cls]['units'].append(rec_unit)
for repr_cls, mappings in cls._frame_specific_representation_info.items():
# keys may be a class object or a name
repr_cls = _get_repr_cls(repr_cls)
# take the 'names' and 'units' tuples from repr_attrs,
# and then use the RepresentationMapping objects
# to update as needed for this frame.
nms = repr_attrs[repr_cls]['names']
uns = repr_attrs[repr_cls]['units']
comptomap = dict([(m.reprname, m) for m in mappings])
for i, c in enumerate(repr_cls.attr_classes.keys()):
if c in comptomap:
mapp = comptomap[c]
nms[i] = mapp.framename
# need the isinstance because otherwise if it's a unit it
# will try to compare to the unit string representation
if not (isinstance(mapp.defaultunit, six.string_types) and
mapp.defaultunit == 'recommended'):
uns[i] = mapp.defaultunit
# else we just leave it as recommended_units says above
# Convert to tuples so that this can't mess with frame internals
repr_attrs[repr_cls]['names'] = tuple(nms)
repr_attrs[repr_cls]['units'] = tuple(uns)
return repr_attrs
@property
def representation_info(self):
"""
A dictionary with the information of what attribute names for this frame
apply to particular representations.
"""
return self._get_representation_info()
@property
def representation_component_names(self):
out = OrderedDict()
if self.representation is None:
return out
data_names = self.representation.attr_classes.keys()
repr_names = self.representation_info[self.representation]['names']
for repr_name, data_name in zip(repr_names, data_names):
out[repr_name] = data_name
return out
@property
def representation_component_units(self):
out = OrderedDict()
if self.representation is None:
return out
repr_attrs = self.representation_info[self.representation]
repr_names = repr_attrs['names']
repr_units = repr_attrs['units']
for repr_name, repr_unit in zip(repr_names, repr_units):
if repr_unit:
out[repr_name] = repr_unit
return out
def realize_frame(self, representation):
"""
Generates a new frame *with new data* from another frame (which may or
may not have data).
Parameters
----------
representation : BaseRepresentation
The representation to use as the data for the new frame.
Returns
-------
frameobj : same as this frame
A new object with the same frame attributes as this one, but
with the ``representation`` as the data.
"""
frattrs = dict([(attr, getattr(self, attr))
for attr in self.get_frame_attr_names()
if attr not in self._attr_names_with_defaults])
return self.__class__(representation, **frattrs)
def represent_as(self, new_representation, in_frame_units=False):
"""
Generate and return a new representation of this frame's `data`
as a Representation object.
Note: In order to make an in-place change of the representation
of a Frame or SkyCoord object, set the ``representation``
attribute of that object to the desired new representation.
Parameters
----------
new_representation : subclass of BaseRepresentation or string
The type of representation to generate. May be a *class*
(not an instance), or the string name of the representation
class.
in_frame_units : bool
Force the representation units to match the specified units
particular to this frame
Returns
-------
newrep : BaseRepresentation-derived object
A new representation object of this frame's `data`.
Raises
------
AttributeError
If this object had no `data`
Examples
--------
>>> from astropy import units as u
>>> from astropy.coordinates import SkyCoord, CartesianRepresentation
>>> coord = SkyCoord(0*u.deg, 0*u.deg)
>>> coord.represent_as(CartesianRepresentation)
<CartesianRepresentation (x, y, z) [dimensionless]
(1.0, 0.0, 0.0)>
>>> coord.representation = CartesianRepresentation
>>> coord
<SkyCoord (ICRS): (x, y, z) [dimensionless]
(1.0, 0.0, 0.0)>
"""
new_representation = _get_repr_cls(new_representation)
cached_repr = self._rep_cache.get((new_representation.__name__,
in_frame_units))
if not cached_repr:
data = self.data.represent_as(new_representation)
# If the new representation is known to this frame and has a defined
# set of names and units, then use that.
new_attrs = self.representation_info.get(new_representation)
if new_attrs and in_frame_units:
datakwargs = dict((comp, getattr(data, comp))
for comp in data.components)
for comp, new_attr_unit in zip(data.components, new_attrs['units']):
if new_attr_unit:
datakwargs[comp] = datakwargs[comp].to(new_attr_unit)
data = data.__class__(**datakwargs)
self._rep_cache[new_representation.__name__, in_frame_units] = data
return self._rep_cache[new_representation.__name__, in_frame_units]
def transform_to(self, new_frame):
"""
Transform this object's coordinate data to a new frame.
Parameters
----------
new_frame : class or frame object or SkyCoord object
The frame to transform this coordinate frame into.
Returns
-------
transframe
A new object with the coordinate data represented in the
``newframe`` system.
Raises
------
ValueError
If there is no possible transformation route.
"""
from .errors import ConvertError
if self._data is None:
raise ValueError('Cannot transform a frame with no data')
if inspect.isclass(new_frame):
#means use the defaults for this class
new_frame = new_frame()
if hasattr(new_frame, '_sky_coord_frame'):
# Input new_frame is not a frame instance or class and is most
# likely a SkyCoord object.
new_frame = new_frame._sky_coord_frame
trans = frame_transform_graph.get_transform(self.__class__,
new_frame.__class__)
if trans is None:
if new_frame is self.__class__:
# no special transform needed, but should update frame info
return new_frame.realize_frame(self.data)
msg = 'Cannot transform from {0} to {1}'
raise ConvertError(msg.format(self.__class__, new_frame.__class__))
return trans(self, new_frame)
def is_transformable_to(self, new_frame):
"""
Determines if this coordinate frame can be transformed to another
given frame.
Parameters
----------
new_frame : class or frame object
The proposed frame to transform into.
Returns
-------
transformable : bool or str
`True` if this can be transformed to ``new_frame``, `False` if
not, or the string 'same' if ``new_frame`` is the same system as
this object but no transformation is defined.
Notes
-----
A return value of 'same' means the transformation will work, but it will
just give back a copy of this object. The intended usage is::
if coord.is_transformable_to(some_unknown_frame):
coord2 = coord.transform_to(some_unknown_frame)
This will work even if ``some_unknown_frame`` turns out to be the same
frame class as ``coord``. This is intended for cases where the frame
is the same regardless of the frame attributes (e.g. ICRS), but be
aware that it *might* also indicate that someone forgot to define the
transformation between two objects of the same frame class but with
different attributes.
"""
new_frame_cls = new_frame if inspect.isclass(new_frame) else new_frame.__class__
trans = frame_transform_graph.get_transform(self.__class__, new_frame_cls)
if trans is None:
if new_frame_cls is self.__class__:
return 'same'
else:
return False
else:
return True
def is_frame_attr_default(self, attrnm):
"""
Determine whether or not a frame attribute has its value because it's
the default value, or because this frame was created with that value
explicitly requested.
Parameters
----------
attrnm : str
The name of the attribute to check.
Returns
-------
isdefault : bool
True if the attribute ``attrnm`` has its value by default, False if
it was specified at creation of this frame.
"""
return attrnm in self._attr_names_with_defaults
def is_equivalent_frame(self, other):
"""
Checks if this object is the same frame as the ``other`` object.
To be the same frame, two objects must be the same frame class and have
the same frame attributes. Note that it does *not* matter what, if any,
data either object has.
Parameters
----------
other : BaseCoordinateFrame
the other frame to check
Returns
-------
isequiv : bool
True if the frames are the same, False if not.
Raises
------
TypeError
If ``other`` isn't a `BaseCoordinateFrame` or subclass.
"""
if self.__class__ == other.__class__:
for frame_attr_name in self.get_frame_attr_names():
if getattr(self, frame_attr_name) != getattr(other, frame_attr_name):
return False
return True
elif not isinstance(other, BaseCoordinateFrame):
raise TypeError("Tried to do is_equivalent_frame on something that "
"isn't a frame")
else:
return False
def __repr__(self):
frameattrs = self._frame_attrs_repr()
data_repr = self._data_repr()
if frameattrs:
frameattrs = ' ({0})'.format(frameattrs)
if data_repr:
return '<{0} Coordinate{1}: {2}>'.format(self.__class__.__name__,
frameattrs, data_repr)
else:
return '<{0} Frame{1}>'.format(self.__class__.__name__,
frameattrs)
def _data_repr(self):
"""Returns a string representation of the coordinate data."""
if not self.has_data:
return ''
if self.representation:
if (issubclass(self.representation, SphericalRepresentation) and
isinstance(self.data, UnitSphericalRepresentation)):
data = self.represent_as(self.data.__class__,
in_frame_units=True)
else:
data = self.represent_as(self.representation,
in_frame_units=True)
data_repr = repr(data)
for nmpref, nmrepr in self.representation_component_names.items():
data_repr = data_repr.replace(nmrepr, nmpref)
else:
data = self.data
data_repr = repr(self.data)
if data_repr.startswith('<' + data.__class__.__name__):
# remove both the leading "<" and the space after the name, as well
# as the trailing ">"
data_repr = data_repr[(len(data.__class__.__name__) + 2):-1]
else:
data_repr = 'Data:\n' + data_repr
return data_repr
def _frame_attrs_repr(self):
"""
Returns a string representation of the frame's attributes, if any.
"""
return ', '.join([attrnm + '=' + str(getattr(self, attrnm))
for attrnm in self.get_frame_attr_names()])
def __getitem__(self, view):
if self.has_data:
out = self.realize_frame(self.data[view])
out.representation = self.representation
return out
else:
raise ValueError('Cannot index a frame with no data')
@override__dir__
def __dir__(self):
"""
Override the builtin `dir` behavior to include representation
names.
TODO: dynamic representation transforms (i.e. include cylindrical et al.).
"""
dir_values = set(self.representation_component_names)
return dir_values
def __getattr__(self, attr):
"""
Allow access to attributes defined in
``self.representation_component_names``.
TODO: dynamic representation transforms (i.e. include cylindrical et
al.).
"""
# attr == '_representation' is likely from the hasattr() test in the
# representation property which is used for
# self.representation_component_names.
#
# Prevent infinite recursion here.
if (attr == '_representation' or
attr not in self.representation_component_names):
raise AttributeError("'{0}' object has no attribute '{1}'"
.format(self.__class__.__name__, attr))
rep = self.represent_as(self.representation, in_frame_units=True)
val = getattr(rep, self.representation_component_names[attr])
return val
def __setattr__(self, attr, value):
repr_attr_names = []
if hasattr(self, 'representation_info'):
for representation_attr in self.representation_info.values():
repr_attr_names.extend(representation_attr['names'])
if attr in repr_attr_names:
raise AttributeError(
'Cannot set any frame attribute {0}'.format(attr))
else:
super(BaseCoordinateFrame, self).__setattr__(attr, value)
def separation(self, other):
"""
Computes on-sky separation between this coordinate and another.
Parameters
----------
other : `~astropy.coordinates.BaseCoordinateFrame`
The coordinate to get the separation to.
Returns
-------
sep : `~astropy.coordinates.Angle`
The on-sky separation between this and the ``other`` coordinate.
Notes
-----
The separation is calculated using the Vincenty formula, which
is stable at all locations, including poles and antipodes [1]_.
.. [1] http://en.wikipedia.org/wiki/Great-circle_distance
"""
from .angle_utilities import angular_separation
from .angles import Angle
self_unit_sph = self.represent_as(UnitSphericalRepresentation)
other_transformed = other.transform_to(self)
other_unit_sph = other_transformed.represent_as(UnitSphericalRepresentation)
# Get the separation as a Quantity, convert to Angle in degrees
sep = angular_separation(self_unit_sph.lon, self_unit_sph.lat,
other_unit_sph.lon, other_unit_sph.lat)
return Angle(sep, unit=u.degree)
def separation_3d(self, other):
"""
Computes three dimensional separation between this coordinate
and another.
Parameters
----------
other : `~astropy.coordinates.BaseCoordinateFrame`
The coordinate system to get the distance to.
Returns
-------
sep : `~astropy.coordinates.Distance`
The real-space distance between these two coordinates.
Raises
------
ValueError
If this or the other coordinate do not have distances.
"""
from .distances import Distance
if self.data.__class__ == UnitSphericalRepresentation:
raise ValueError('This object does not have a distance; cannot '
'compute 3d separation.')
# do this first just in case the conversion somehow creates a distance
other_in_self_system = other.transform_to(self)
if other_in_self_system.__class__ == UnitSphericalRepresentation:
raise ValueError('The other object does not have a distance; '
'cannot compute 3d separation.')
dx = self.cartesian.x - other_in_self_system.cartesian.x
dy = self.cartesian.y - other_in_self_system.cartesian.y
dz = self.cartesian.z - other_in_self_system.cartesian.z
distval = (dx.value ** 2 + dy.value ** 2 + dz.value ** 2) ** 0.5
return Distance(distval, dx.unit)
@property
def cartesian(self):
"""
Shorthand for a cartesian representation of the coordinates in this
object.
"""
# TODO: if representations are updated to use a full transform graph,
# the representation aliases should not be hard-coded like this
return self.represent_as(CartesianRepresentation, in_frame_units=True)
@property
def spherical(self):
"""
Shorthand for a spherical representation of the coordinates in this object.
"""
# TODO: if representations are updated to use a full transform graph,
# the representation aliases should not be hard-coded like this
return self.represent_as(SphericalRepresentation, in_frame_units=True)
class GenericFrame(BaseCoordinateFrame):
"""
A frame object that can't store data but can hold any arbitrary frame
attributes. Mostly useful as a utility for the high-level class to store
intermediate frame attributes.
Parameters
----------
frame_attrs : dict
A dictionary of attributes to be used as the frame attributes for this
frame.
"""
name = None # it's not a "real" frame so it doesn't have a name
def __init__(self, frame_attrs):
super(GenericFrame, self).__setattr__('_frame_attr_names', frame_attrs)
super(GenericFrame, self).__init__(None)
for attrnm, attrval in frame_attrs.items():
setattr(self, '_' + attrnm, attrval)
def get_frame_attr_names(self):
return self._frame_attr_names
def __getattr__(self, name):
if '_' + name in self.__dict__:
return getattr(self, '_' + name)
else:
raise AttributeError('no {0}'.format(name))
def __setattr__(self, name, value):
if name in self._frame_attr_names:
raise AttributeError("can't set frame attribute '{0}'".format(name))
else:
super(GenericFrame, self).__setattr__(name, value)
# doing this import at the bottom prevents a circular import issue that is
# otherwise present due to EarthLocation needing to import ITRS
from .earth import EarthLocation
| mit | -3,056,814,761,154,917,000 | 36.591133 | 88 | 0.58151 | false |
atilag/qiskit-sdk-py | qiskit/_jobprocessor.py | 1 | 4559 | # -*- coding: utf-8 -*-
# Copyright 2017 IBM RESEARCH. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# =============================================================================
"""Processor for running Quantum Jobs in the different backends."""
import logging
import pprint
from concurrent import futures
from threading import Lock
from ._qiskiterror import QISKitError
from ._compiler import compile_circuit
from ._result import Result
logger = logging.getLogger(__name__)
def run_backend(q_job):
"""Run a program of compiled quantum circuits on a backend.
Args:
q_job (QuantumJob): job object
Returns:
Result: Result object.
Raises:
QISKitError: if the backend is malformed
"""
backend = q_job.backend
qobj = q_job.qobj
backend_name = qobj['config']['backend_name']
if not backend:
raise QISKitError("No backend instance to run on.")
if backend_name != backend.configuration['name']:
raise QISKitError('non-matching backends specified in Qobj '
'object and json')
if backend.configuration.get('local'): # remove condition when api gets qobj
for circuit in qobj['circuits']:
if circuit['compiled_circuit'] is None:
compiled_circuit = compile_circuit(circuit['circuit'], format='json')
circuit['compiled_circuit'] = compiled_circuit
return backend.run(q_job)
class JobProcessor:
"""
Process a series of jobs and collect the results
"""
def __init__(self, q_jobs, callback, max_workers=1):
"""
Args:
q_jobs (list(QuantumJob)): List of QuantumJob objects.
callback (fn(results)): The function that will be called when all
jobs finish. The signature of the function must be:
fn(results)
results: A list of Result objects.
max_workers (int): The maximum number of workers to use.
Raises:
QISKitError: if any of the job backends could not be found.
"""
self.q_jobs = q_jobs
self.max_workers = max_workers
# check whether any jobs are remote
self.online = any(not q_job.backend.configuration.get('local')
for q_job in q_jobs)
self.futures = {}
self.lock = Lock()
# Set a default dummy callback just in case the user doesn't want
# to pass any callback.
self.callback = (lambda rs: ()) if callback is None else callback
self.num_jobs = len(self.q_jobs)
self.jobs_results = []
if self.online:
# I/O intensive -> use ThreadedPoolExecutor
self.executor_class = futures.ThreadPoolExecutor
else:
# CPU intensive -> use ProcessPoolExecutor
self.executor_class = futures.ProcessPoolExecutor
def _job_done_callback(self, future):
try:
result = future.result()
except Exception as ex: # pylint: disable=broad-except
result = Result({'job_id': '0', 'status': 'ERROR',
'result': ex},
future.qobj)
with self.lock:
logger.debug("Have a Result: %s", pprint.pformat(result))
self.jobs_results.append(result)
if self.num_jobs != 0:
self.num_jobs -= 1
logger.debug("Jobs left count decreased: %d", self.num_jobs)
# Call the callback when all jobs have finished
if self.num_jobs == 0:
logger.debug("No more jobs in queue, returning results")
self.callback(self.jobs_results)
def submit(self):
"""Process/submit jobs"""
executor = self.executor_class(max_workers=self.max_workers)
for q_job in self.q_jobs:
future = executor.submit(run_backend, q_job)
future.qobj = q_job.qobj
self.futures[future] = q_job.qobj
future.add_done_callback(self._job_done_callback)
| apache-2.0 | 5,967,503,450,596,751,000 | 36.368852 | 85 | 0.606054 | false |
morta-code/YAX | setup.py | 1 | 1245 | from setuptools import setup, find_packages
# To use a consistent encoding
from codecs import open
from os import path
here = path.abspath(path.dirname(__file__))
# Get the long description from the README file
with open(path.join(here, 'README.rst'), encoding='utf-8') as f:
long_description = f.read()
setup(
name='YAX',
version='1.2.0',
packages=['yax'],
url='https://github.com/morta-code/YAX',
license='LGPLv3',
author='Móréh Tamás, MTA-PPKE-NLPG',
author_email='[email protected]',
description='Yet Another XML parser with the power of event-based memory-safe mechanism.',
long_description=long_description,
keywords="xml lxml parser event-based record-oriented",
classifiers=[
"Development Status :: 5 - Production/Stable",
"Environment :: Console",
"Intended Audience :: Information Technology",
"Intended Audience :: Science/Research",
"Intended Audience :: Developers",
"License :: OSI Approved :: GNU Lesser General Public License v3 (LGPLv3)",
"Programming Language :: Python :: 3",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Text Processing :: Markup :: XML"
]
)
| gpl-3.0 | 6,089,661,871,399,462,000 | 35.529412 | 94 | 0.662641 | false |
lutianming/leetcode | reorder_list.py | 1 | 1288 | # Definition for singly-linked list.
class ListNode:
def __init__(self, x):
self.val = x
self.next = None
class Solution:
# @param head, a ListNode
# @return nothing
def reorderList(self, head):
if not head or not head.next:
return head
fast = head
slow = head
while fast and fast.next:
fast = fast.next.next
slow = slow.next
lasthalf = slow.next
lasthalf = self.reverse(lasthalf)
slow.next = None
firsthalf = head
while lasthalf:
a = firsthalf.next
b = lasthalf.next
firsthalf.next = lasthalf
lasthalf.next = a
firsthalf = a
lasthalf = b
return head
def reverse(self, head):
if not head:
return head
next = head.next
head.next = None
while next:
tmp = next.next
next.next = head
head = next
next = tmp
return head
head = ListNode(1)
head.next = ListNode(2)
# node = head.next
# node.next = ListNode(3)
# node = node.next
# node.next = ListNode(4)
solution = Solution()
head = solution.reorderList(head)
while head:
print(head.val)
head = head.next
| mit | 3,573,646,055,956,980,700 | 21.596491 | 41 | 0.534938 | false |
magyarm/periphondemand-code | src/bin/code/intercon.py | 1 | 5000 | #! /usr/bin/python
# -*- coding: utf-8 -*-
#-----------------------------------------------------------------------------
# Name: Intercon.py
# Purpose:
# Author: Fabien Marteau <[email protected]>
# Created: 13/05/2008
#-----------------------------------------------------------------------------
# Copyright (2008) Armadeus Systems
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#
#-----------------------------------------------------------------------------
# Revision list :
#
# Date By Changes
#
#-----------------------------------------------------------------------------
__doc__ = ""
__version__ = "1.0.0"
__versionTime__ = "13/05/2008"
__author__ = "Fabien Marteau <[email protected]>"
import periphondemand.bin.define
from periphondemand.bin.define import *
from periphondemand.bin.utils.settings import Settings
from periphondemand.bin.utils.error import Error
from periphondemand.bin.utils import wrappersystem as sy
from periphondemand.bin.utils.display import Display
from periphondemand.bin.core.component import Component
from periphondemand.bin.core.port import Port
from periphondemand.bin.core.interface import Interface
from periphondemand.bin.core.hdl_file import Hdl_file
settings = Settings()
display = Display()
class Intercon(Component):
""" Generate Intercon component
"""
def __init__(self,masterinterface,project):
""" Init fonction
"""
masterinstancename = masterinterface.getParent().getInstanceName()
masterinterfacename = masterinterface.getName()
Component.__init__(self,project)
self.interfaceslist = []
self.addNode(nodename="component")
masterinstance = self.parent.getInstance(masterinstancename)
masterinterface = masterinstance.getInterface(masterinterfacename)
# Write xml description
self.generateXML(masterinterface)
# Write Code for component
masterinterface.getBus().generateIntercon(self)
display.msg("Intercon with name : "+self.getInstanceName()+" Done")
def generateXML(self,masterinterface):
""" Generate intercon code
"""
masterinstance = masterinterface.getParent()
# set name and description
self.setName(str(masterinstance.getInstanceName()) \
+ "_" \
+ str(masterinterface.getName()))
self.setInstanceName(str(masterinstance.getInstanceName())\
+ "_"\
+str(masterinterface.getName())\
+ "_intercon")
self.setDescription("Connect slaves to "\
+ masterinterface.getName()\
+ " from "\
+ masterinstance.getInstanceName())
# Save to make directories
self.saveInstance()
#####
# Create interface for each component connected on intercon
# for slaves and master:
slaveslist = masterinterface.getSlavesList()
interfaceslist = [slave.getInterface() for slave in slaveslist]
interfaceslist.append(masterinterface)
# For each slave and master interface, create interface in intercon
for interface in interfaceslist:
instance = interface.getParent()
#######
# bus (wishbone,...)
bus = Interface(self,
name=instance.getInstanceName()\
+"_"+interface.getName())
bus.setClass("intercon")
# Adding bus interface on intercon
self.addInterface(bus)
#Creating port with invert direction value
for port in interface.getPortsList():
newport = Port(bus,
name=instance.getInstanceName()\
+"_"+port.getName())
newport.setDir(self.invertDir(port.getDir()))
newport.setSize(port.getSize())
# adding port on bus interface
bus.addPort(newport)
#connect port new port on instance interface
port.connectAllPin(newport)
bus.setClass("intercon")
self.setNum("0")
| lgpl-2.1 | 8,862,320,480,658,115,000 | 35.764706 | 78 | 0.5792 | false |
zdrjson/DDKit | python/iMacFirstPythonPragrammer/FindSameNameImage.py | 1 | 1755 | import os, sys, re, shutil
if __name__ == '__main__':
used_map = {}
resPath = "./MagnetPF/Res/"
depDir = "Deprecated"
skipDir = ["message"]
for root, dirs, files in os.walk("./"):
for file in files:
if file.endswith(".m"):
filepath = os.path.join(root, file)
f = open(filepath, "r")
for line in f:
match = re.findall(".*?@\"(Res.*?.png)\".*?", line)
if match:
for image in match:
used_map[image] = 1
skipDir.append(depDir)
for root, dirs, files in os.walk(resPath):
for file in files:
orginfile = os.path.join(root, file)
match = re.findall(".*?(Res.*?.png).*?", orginfile)
if match:
matchfile = match[0].replace("@2x","").replace("@3x","")
print matchfile
if not used_map.has_key(matchfile):
filename = orginfile.split(os.path.sep)[-1]
relPath = orginfile.replace(resPath,"")
originDir = relPath.split(os.path.sep)[0]
tofile = resPath + depDir + "/" + relPath
topath = tofile.replace(filename,"")
if not originDir in skipDir:
if not os.path.exists(topath):
os.mkdir(topath)
print "from: " + orginfile
print " to:" + tofile
print ""
shutil.move(orginfile, tofile) | mit | -5,205,550,570,592,033,000 | 30.927273 | 76 | 0.406268 | false |
owlabs/incubator-airflow | airflow/contrib/operators/snowflake_operator.py | 1 | 3034 | # -*- coding: utf-8 -*-
#
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
from airflow.contrib.hooks.snowflake_hook import SnowflakeHook
from airflow.models import BaseOperator
from airflow.utils.decorators import apply_defaults
class SnowflakeOperator(BaseOperator):
"""
Executes sql code in a Snowflake database
:param snowflake_conn_id: reference to specific snowflake connection id
:type snowflake_conn_id: str
:param sql: the sql code to be executed. (templated)
:type sql: Can receive a str representing a sql statement,
a list of str (sql statements), or reference to a template file.
Template reference are recognized by str ending in '.sql'
:param warehouse: name of warehouse (will overwrite any warehouse
defined in the connection's extra JSON)
:type warehouse: str
:param database: name of database (will overwrite database defined
in connection)
:type database: str
:param schema: name of schema (will overwrite schema defined in
connection)
:type schema: str
:param role: name of role (will overwrite any role defined in
connection's extra JSON)
"""
template_fields = ('sql',)
template_ext = ('.sql',)
ui_color = '#ededed'
@apply_defaults
def __init__(
self, sql, snowflake_conn_id='snowflake_default', parameters=None,
autocommit=True, warehouse=None, database=None, role=None,
schema=None, *args, **kwargs):
super(SnowflakeOperator, self).__init__(*args, **kwargs)
self.snowflake_conn_id = snowflake_conn_id
self.sql = sql
self.autocommit = autocommit
self.parameters = parameters
self.warehouse = warehouse
self.database = database
self.role = role
self.schema = schema
def get_hook(self):
return SnowflakeHook(snowflake_conn_id=self.snowflake_conn_id,
warehouse=self.warehouse, database=self.database,
role=self.role, schema=self.schema)
def execute(self, context):
self.log.info('Executing: %s', self.sql)
hook = self.get_hook()
hook.run(
self.sql,
autocommit=self.autocommit,
parameters=self.parameters)
| apache-2.0 | -7,577,476,445,885,619,000 | 38.402597 | 78 | 0.677983 | false |
thefinn93/orgsms | orgsms/api.py | 1 | 3675 | from flask import Blueprint, abort, jsonify, request, current_app, Response
import datetime
from sqlalchemy import desc
from .provider import providers
from .socketio import socketio
from . import models, exceptions
app = Blueprint('api', __name__)
@app.route('/inbound/<provider>', methods=["POST"])
def inbound(provider):
if provider in providers:
message = providers[provider].receive()
models.db.session.add(message)
models.db.session.commit()
message.push()
return Response()
else:
return abort(404)
def send(local_number, remote_number, text, provider=None):
if provider is None:
local = models.PhoneNumber.query.get(local_number)
if local is not None:
provider = local.provider
if provider is None:
raise exceptions.CantDetermineProviderException()
if provider not in providers:
raise exceptions.UnknownProviderException("Provider {} unknown".format(provider))
message = models.Message(local_number=local_number, remote_number=remote_number,
inbound=False, mms=False, text=text)
models.db.session.add(message)
current_app.logger.debug("Sending %s to %s from %s", text, remote_number, local_number)
providers[provider].send(message)
models.db.session.commit()
broadcast_msg = message.json()
broadcast_msg['source_session'] = request.sid
socketio.emit('newmessage', broadcast_msg)
return message
@app.route('/outbound', methods=["POST"])
def outbound():
try:
message = send(request.form.get("from"), request.form.get("to"), request.form.get("text"))
return jsonify({"id": message.id})
except (exceptions.CantDetermineProviderException, exceptions.UnknownProviderException):
return abort(400)
@socketio.on('send')
def outbound_socket(json):
current_app.logger.debug("Received message from client %s: %s", request.sid, json)
try:
message = send(json.get("from"), json.get("to"), json.get("text"))
return {"success": True, "message": message.json()}
except (exceptions.CantDetermineProviderException, exceptions.UnknownProviderException):
current_app.logger.exception("Failed to send %s", str(json))
return {"success": False}
@app.route('/messages/<number>')
def get_messages(number):
results = []
query = models.Message.query.filter_by(remote_number=number)
if request.args.get('after') is not None:
after = datetime.datetime.fromtimestamp(float(request.args.get('after')))
query = query.filter(models.Message.timestamp > after)
if request.args.get('before') is not None:
before = datetime.datetime.fromtimestamp(float(request.args.get('before')))
query = query.filter(models.Message.timestamp < before)
query = query.order_by(desc(models.Message.timestamp)).limit(50)
for message in query.all():
results.append({
"mms": message.mms,
"inbound": message.inbound,
"text": message.text,
"attachment": message.attachment,
"timestamp": message.timestamp.timestamp()
})
return jsonify(results)
@app.route("/messages")
def get_conversations():
query = models.db.session.query(models.Message.remote_number.distinct().label("number"))
conversations = []
for conversation in query.all():
contact = models.Contact.query.filter_by(number=conversation.number).first()
conversations.append({
"number": conversation.number,
"name": contact.name if contact is not None else None
})
return jsonify(conversations)
| gpl-3.0 | 5,098,620,182,597,977,000 | 36.5 | 98 | 0.667483 | false |
tableau/TabPy | tests/integration/test_deploy_and_evaluate_model_auth_on.py | 1 | 1233 | from . import integ_test_base
class TestDeployAndEvaluateModelAuthOn(integ_test_base.IntegTestBase):
def _get_config_file_name(self) -> str:
return "./tests/integration/resources/deploy_and_evaluate_model_auth.conf"
def _get_port(self) -> str:
return "9009"
def test_deploy_and_evaluate_model(self):
# Uncomment the following line to preserve
# test case output and other files (config, state, ect.)
# in system temp folder.
# self.set_delete_temp_folder(False)
self.deploy_models(self._get_username(), self._get_password())
headers = {
"Content-Type": "application/json",
"Authorization": "Basic dXNlcjE6UEBzc3cwcmQ=",
"Host": "localhost:9009",
}
payload = """{
"data": { "_arg1": ["happy", "sad", "neutral"] },
"script":
"return tabpy.query('Sentiment Analysis',_arg1)['response']"
}"""
conn = self._get_connection()
conn.request("POST", "/evaluate", payload, headers)
SentimentAnalysis_eval = conn.getresponse()
self.assertEqual(200, SentimentAnalysis_eval.status)
SentimentAnalysis_eval.read()
| mit | 6,206,007,862,178,781,000 | 35.264706 | 82 | 0.595296 | false |
bolkedebruin/airflow | airflow/executors/executor_loader.py | 1 | 3573 | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
"""All executors."""
import importlib
from typing import Optional
from airflow.executors.base_executor import BaseExecutor
class ExecutorLoader:
"""
Keeps constants for all the currently available executors.
"""
LOCAL_EXECUTOR = "LocalExecutor"
SEQUENTIAL_EXECUTOR = "SequentialExecutor"
CELERY_EXECUTOR = "CeleryExecutor"
DASK_EXECUTOR = "DaskExecutor"
KUBERNETES_EXECUTOR = "KubernetesExecutor"
DEBUG_EXECUTOR = "DebugExecutor"
_default_executor: Optional[BaseExecutor] = None
executors = {
LOCAL_EXECUTOR: 'airflow.executors.local_executor',
SEQUENTIAL_EXECUTOR: 'airflow.executors.sequential_executor',
CELERY_EXECUTOR: 'airflow.executors.celery_executor',
DASK_EXECUTOR: 'airflow.executors.dask_executor',
KUBERNETES_EXECUTOR: 'airflow.executors.kubernetes_executor',
DEBUG_EXECUTOR: 'airflow.executors.debug_executor'
}
@classmethod
def get_default_executor(cls) -> BaseExecutor:
"""Creates a new instance of the configured executor if none exists and returns it"""
if cls._default_executor is not None:
return cls._default_executor
from airflow.configuration import conf
executor_name = conf.get('core', 'EXECUTOR')
cls._default_executor = ExecutorLoader._get_executor(executor_name)
from airflow import LoggingMixin
log = LoggingMixin().log
log.info("Using executor %s", executor_name)
return cls._default_executor
@classmethod
def _get_executor(cls, executor_name: str) -> BaseExecutor:
"""
Creates a new instance of the named executor.
In case the executor name is unknown in airflow,
look for it in the plugins
"""
if executor_name in cls.executors:
executor_module = importlib.import_module(cls.executors[executor_name])
executor = getattr(executor_module, executor_name)
return executor()
else:
# Load plugins here for executors as at that time the plugins might not have been initialized yet
# TODO: verify the above and remove two lines below in case plugins are always initialized first
from airflow import plugins_manager
plugins_manager.integrate_executor_plugins()
executor_path = executor_name.split('.')
if len(executor_path) != 2:
raise ValueError(f"Executor {executor_name} not supported: "
f"please specify in format plugin_module.executor")
if executor_path[0] not in globals():
raise ValueError(f"Executor {executor_name} not supported")
return globals()[executor_path[0]].__dict__[executor_path[1]]()
| apache-2.0 | -3,511,072,061,836,489,000 | 41.035294 | 109 | 0.683459 | false |
pdelsante/thug | thug/DOM/History.py | 1 | 3513 | #!/usr/bin/env python
#
# History.py
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston,
# MA 02111-1307 USA
import logging
from .JSClass import JSClass
from .Alexa import Alexa
log = logging.getLogger("Thug")
class History(JSClass):
def __init__(self, window):
self._window = window
self.urls = Alexa
self.pos = len(self.urls) - 1
self.__init_personality()
def __init_personality(self):
self._navigationMode = "automatic"
if log.ThugOpts.Personality.isIE():
self.__init_personality_IE()
return
if log.ThugOpts.Personality.isFirefox():
self.__init_personality_Firefox()
return
if log.ThugOpts.Personality.isChrome():
self.__init_personality_Chrome()
return
if log.ThugOpts.Personality.isSafari():
self.__init_personality_Safari()
return
def __init_personality_IE(self):
pass
def __init_personality_Firefox(self):
self.current = self._current
self.next = self._next
self.previous = self._previous
def __init_personality_Chrome(self):
pass
def __init_personality_Safari(self):
pass
@property
def window(self):
return self._window
@property
def length(self):
return len(self.urls)
@property
def _current(self):
return self.urls[self.pos] if self.length > self.pos and self.pos > 0 else None
@property
def _next(self):
return self.urls[self.pos + 1] if self.length > self.pos + 1 and self.pos > 0 else None
@property
def _previous(self):
return self.urls[self.pos - 1] if self.length > self.pos - 1 and self.pos > 0 else None
def _get_navigationMode(self):
return self._navigationMode
def _set_navigationMode(self, value):
if value in ("automatic", "compatible", "fast", ):
self._navigationMode = value
navigationMode = property(_get_navigationMode, _set_navigationMode)
def pushState(self, state, title, URL):
# self._window.url = URL
pass
def back(self):
"""Loads the previous URL in the history list"""
return self.go(-1)
def forward(self):
"""Loads the next URL in the history list"""
return self.go(1)
def go(self, num_or_url):
"""Loads a specific URL from the history list"""
try:
off = int(num_or_url)
self.pos += off
self.pos = min(max(0, self.pos), len(self.urls) - 1)
self._window.open(self.urls[self.pos])
except ValueError:
self._window.open(num_or_url)
def update(self, url, replace = False):
if replace:
self.urls[self.pos] = url
return
if self.urls[self.pos] != url:
self.urls.insert(self.pos, url)
self.pos += 1
| gpl-2.0 | 2,978,125,687,368,465,400 | 26.661417 | 95 | 0.609735 | false |
DLR-SC/DataFinder | src/datafinder/gui/user/common/widget/property/editors/list_editor.py | 1 | 14838 | #
# $Filename$
# $Authors$
# Last Changed: $Date$ $Committer$ $Revision-Id$
#
# Copyright (c) 2003-2011, German Aerospace Center (DLR)
# All rights reserved.
#
#
#Redistribution and use in source and binary forms, with or without
#modification, are permitted provided that the following conditions are
#met:
#
# * Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
#
# * Redistributions in binary form must reproduce the above copyright
# notice, this list of conditions and the following disclaimer in the
# documentation and/or other materials provided with the
# distribution.
#
# * Neither the name of the German Aerospace Center nor the names of
# its contributors may be used to endorse or promote products derived
# from this software without specific prior written permission.
#
#THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
#LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
#A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
#OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
#SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
#LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
#DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
#THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
#(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
#OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
"""
Dialog for editing list property values.
"""
from PyQt4 import QtGui, QtCore
from PyQt4.Qt import Qt
from datafinder.core.configuration.properties import constants
from datafinder.core.configuration.properties import property_type
from datafinder.gui.gen.user.list_property_dialog_ui import Ui_listPropertyDialog
from datafinder.gui.user.common.util import extractPyObject, determineDisplayRepresentation
__version__ = "$Revision-Id:$"
class ListEditor(QtGui.QLineEdit):
"""
This widget widget is a specialized line editor which allows
the manipulation of list data.
"""
_SUPPORTED_PROPERTY_TYPES = [
constants.STRING_TYPE, constants.DATETIME_TYPE, constants.NUMBER_TYPE, constants.BOOLEAN_TYPE]
def __init__(self, restrictions, editorFactory, initData=list(), parent=None):
"""
@param restrictions: List-specific restrictions.
see: L{<property_type.ListType>datafinder.core.configuration.properties.property_type.ListType}
@type restrictions: C{dict}
@param editorFactory: Factory for creation of value editors.
@type editorFactory: C{EditorFactory}
@param initData: Initial list data.
@type initData: C{list} of C{object}
@param parent: Parent widget of the dialog.
@type parent: L{QWidget<PyQt4.QtGui.QWidget}
"""
QtGui.QLineEdit.__init__(self, parent)
self._editorFactory = editorFactory
self.value = initData
self._allowedPropertyTypes = restrictions.get(constants.ALLOWED_SUB_TYPES, self._SUPPORTED_PROPERTY_TYPES)
self._removeUnsupportedPropertyTypes()
self._editButton = QtGui.QPushButton("...", self)
self._editButton.setMaximumSize(QtCore.QSize(20, 20))
self.setReadOnly(True)
self.setStyleSheet("QLineEdit { padding-right: 0px; } ")
self.setText(determineDisplayRepresentation(initData))
self._showEditorSlot()
self.connect(self._editButton, QtCore.SIGNAL("clicked()"), self._showEditorSlot)
def _removeUnsupportedPropertyTypes(self):
removes = list()
for propertyTypeName in self._allowedPropertyTypes:
if not propertyTypeName in self._SUPPORTED_PROPERTY_TYPES:
removes.append(propertyTypeName)
for propertyTypeName in removes:
self._allowedPropertyTypes.remove(propertyTypeName)
def resizeEvent(self, _):
""" Ensures that the edit button is in the right corner of the line editor. """
size = self._editButton.maximumSize()
self._editButton.move(self.rect().right() - size.width(),
(self.rect().bottom() + 1 - size.height()) / 2)
def _showEditorSlot(self):
""" Slot which shows the list editor. """
listPropertyEditor = _ListPropertyDialog(self._allowedPropertyTypes, self.value, self._editorFactory, self)
listPropertyEditor.exec_()
self.setText(determineDisplayRepresentation(self.value))
self.setFocus(Qt.OtherFocusReason)
def text(self):
""" Overwrites the text behavior. """
return self.value
class _ListPropertyDialog(QtGui.QDialog, Ui_listPropertyDialog):
"""
This dialog shows the content of a list property and supports the editing the property.
"""
def __init__(self, allowedPropertyTypes, propertyValues, editorFactory, parent=None):
"""
Constructor.
@param allowedPropertyTypes: Names of available property types.
@type allowedPropertyTypes: C{list} of C{unicode}
@param propertyValues: Initial list data.
@type propertyValues: C{list} of C{object}
@param editorFactory: Factory for creation of value editors.
@type editorFactory: L{EditorFactory<datafinder.gui.user.common.widget.property.editors.factory.Editorfactory>}
@param parent: Parent widget of the dialog.
@type parent: L{QWidget<PyQt4.QtGui.QWidget}
"""
QtGui.QDialog.__init__(self, parent)
Ui_listPropertyDialog.__init__(self)
self.setupUi(self)
self._initState = propertyValues
self._allowedPropertyTypes = allowedPropertyTypes
self._editorFactory = editorFactory
self._initializeSignalConnections()
self._initializeEditButtonsEnabledState()
self._initializeTable(propertyValues)
def _initializeSignalConnections(self):
self.connect(self.tableWidget, QtCore.SIGNAL("itemSelectionChanged()"), self.itemSelectionChangedSlot)
self.connect(self.addButton, QtCore.SIGNAL("clicked()"), self.addSlot)
self.connect(self.editButton, QtCore.SIGNAL("clicked()"), self.editSlot)
self.connect(self.deleteButton, QtCore.SIGNAL("clicked()"), self.deleteSlot)
self.connect(self.buttonBox, QtCore.SIGNAL("accepted()"), self.accepted)
self.connect(self.buttonBox, QtCore.SIGNAL("rejected()"), self.rejected)
def _initializeEditButtonsEnabledState(self):
if not self._allowedPropertyTypes:
self.addButton.setEnabled(False)
self._setEnableStateOfItemEditingButtons(False)
def _setEnableStateOfItemEditingButtons(self, isEnabled):
self.deleteButton.setEnabled(isEnabled)
self.editButton.setEnabled(isEnabled)
def _initializeTable(self, propertyValues):
"""
Adds the property values into the table model.
@param propertyValues: Property values which should be displayed in the editor.
@type propertyValues: C{list} of C{object}
"""
self.tableWidget.setItemDelegate(
_ListPropertyItemDelegate(self._allowedPropertyTypes, self._editorFactory, self))
self.tableWidget.setColumnWidth(1, 150)
for row, value in enumerate(propertyValues):
propertyType = property_type.determinePropertyTypeConstant(value)
isEditingSupported = self._isEditingSupported(propertyType)
self._addPropertyItem(row, value, propertyType, isEditingSupported)
self.emit(QtCore.SIGNAL("layoutChanged()"))
def _isEditingSupported(self, propertyType):
if propertyType in self._allowedPropertyTypes:
return True
else:
return False
def _addPropertyItem(self, row, value, propertyType, isEditingSupported):
self.tableWidget.insertRow(row)
self.tableWidget.setRowHeight(row, 20)
self.tableWidget.setItem(row, 0 , QtGui.QTableWidgetItem(propertyType))
self.tableWidget.setItem(row, 1, _TableWidgetItem(value, isEditingSupported))
def addSlot(self):
""" This slot is called when a new item should be inserted. """
self.tableWidget.insertRow(self.tableWidget.model().rowCount())
self.tableWidget.setRowHeight(self.tableWidget.model().rowCount() - 1, 20)
self.tableWidget.setItem(self.tableWidget.rowCount() - 1, 0, QtGui.QTableWidgetItem(""))
self.tableWidget.setItem(self.tableWidget.rowCount() - 1, 1, _TableWidgetItem())
self.tableWidget.setFocus()
self.tableWidget.editItem(self.tableWidget.item(self.tableWidget.rowCount() - 1, 0))
def editSlot(self):
""" This slot is called when the edit button is pressed. """
item = self.tableWidget.currentItem()
self.tableWidget.editItem(item)
def deleteSlot(self):
""" Slot is called when the delete button is pressed. """
index = self.tableWidget.selectionModel().currentIndex()
self.tableWidget.model().removeRow(index.row())
if self.tableWidget.rowCount() == 0:
self._setEnableStateOfItemEditingButtons(False)
def itemSelectionChangedSlot(self):
""" De-activates buttons for properties which cannot be properly edited. """
if self.tableWidget.selectedItems():
item = self.tableWidget.selectedItems()[0]
if item.column() == 0: # Only items of the value column contain the editing information
item = self.tableWidget.item(item.row(), 1)
if item.isEditingSupported:
self._setEnableStateOfItemEditingButtons(True)
else:
self._setEnableStateOfItemEditingButtons(False)
def accepted(self):
""" This slot is called when the user clicks OK. It returns the edited list. """
properties = list()
for i in range(self.tableWidget.model().rowCount()):
item = self.tableWidget.item(i, 1)
if not item.value is None:
properties.append(item.value)
self.parent().value = properties
QtGui.QDialog.accept(self)
def rejected(self):
"""
This slot is called when the user cancels the dialog. It returns the
list that was passed to dialog as initData.
"""
self.parent().value = self._initState
QtGui.QDialog.reject(self)
class _ListPropertyItemDelegate(QtGui.QItemDelegate):
"""
Delegate for the property modification.
"""
def __init__(self, propertyTypeNames, editorFactory, parent=None):
"""
Constructor.
@param propertyTypeNames: Names of available property types.
@type propertyTypeNames: C{list} of C{unicode}
@param editorFactory: Factory for creation of value editors.
@type editorFactory: L{EditorFactory<datafinder.gui.user.common.widget.property.editors.factory.Editorfactory>}
@param parent: Parent widget of the dialog.
@type parent: L{QWidget<PyQt4.QtGui.QWidget}
"""
QtGui.QItemDelegate.__init__(self, parent)
self._factory = editorFactory
self._propertyTypes = [QtCore.QString(unicode(propType)) for propType in propertyTypeNames]
def createEditor(self, parent, _, index):
"""
@see: L{createEditor<PyQt4.QtGui.QItemDelegate.createEditor>}
"""
typeIndex = index.model().index(index.row(), 0)
valueType = index.model().data(typeIndex, QtCore.Qt.DisplayRole).toString()
if index.column() == 0:
editor = QtGui.QComboBox(parent)
editor.addItems(self._propertyTypes)
if valueType in self._propertyTypes:
editor.setCurrentIndex(self._propertyTypes.index(valueType))
elif index.column() == 1:
editor = self._factory.createEditor(parent, valueType)
if not editor.isEnabled():
return None
return editor
def setModelData(self, editor, model, index):
"""
@see: QtGui.QItemDelegate#setModelData
"""
returnValue = self._factory.getValueFromEditor(editor)
model.setData(index, QtCore.QVariant(returnValue))
def setEditorData(self, editor, index):
"""
@see: L{setEditorData<PyQt4.QtGui.QItemDelegate.setEditorData>}
"""
if index.column() == 1:
value = self.parent().tableWidget.item(index.row(), 1).value
self._factory.setEditorValue(editor, value)
else:
QtGui.QItemDelegate.setEditorData(self, editor, index)
class _TableWidgetItem(QtGui.QTableWidgetItem):
""" Specific implementation of C{QTableWidgetItem}. """
def __init__(self, value=None, isEditingSupported=True):
"""
@param value: Value which is represented by this item.
@type value: C{object}
@param isEditingSupported: Flag which indicates whether the value can be edited or not.
@type isEditingSupported: C{bool}
"""
QtGui.QTableWidgetItem.__init__(self)
self._value = value
self._isEditingSupported = isEditingSupported
@property
def isEditingSupported(self):
""" Read-only access to the isEditingSupported flag."""
return self._isEditingSupported
@property
def value(self):
""" Read-only access to the value."""
return self._value
def data(self, role):
""" Ensures that the values are correctly rendered. """
if role == Qt.DisplayRole:
return QtCore.QVariant(determineDisplayRepresentation(self._value))
else:
return QtGui.QTableWidgetItem(self).data(role)
def setData(self, _, value):
""" Converts value given as QVariant to a Python object. """
value = extractPyObject(value)
self._value = value
| bsd-3-clause | 1,791,342,349,966,951,400 | 38.540984 | 119 | 0.638765 | false |
chripell/pyasicam | view.py | 1 | 8948 | #!/usr/bin/python3
import datetime
import os
import pyasicam as pc
import sys
import numpy as np
import cairo
import gi
gi.require_version('Gtk', '3.0')
from gi.repository import Gtk, GdkPixbuf, GLib, Gdk, Gio, GObject
def gamma_stretch(im, gamma):
if im.dtype != np.float:
im = im.astype(np.float)
im /= 255.0
im = im ** gamma
return im * 255.0
class Camera(pc.Camera):
def __init__(self, i):
super().__init__(i)
self.mean = 1
self.im_num = 0
self.im_mean = None
self.done = 0
self.OpenCamera()
self.InitCamera()
self.set_exposure_ms(1000)
caps = self.GetCameraProperty()
self.SetROIFormat(caps.MaxWidth, caps.MaxHeight, 1, pc.IMG_Y8)
# Trick to make ASI120MC work for short exposures.
# if self.GetCameraProperty().IsUSB3Camera == 0:
# self.SetControlValue(pc.BANDWIDTHOVERLOAD, 20, False)
def capture(self):
self.StartExposure(False)
def get_image(self):
st = self.GetExpStatus()
if st == pc.EXP_FAILED:
# raise RuntimeError("Exposure failed")
print("Exposure failed")
self.capture()
return None
if st == pc.EXP_IDLE:
raise RuntimeError("Exposure not started")
if self.GetExpStatus() == pc.EXP_WORKING:
return None
img = self.GetDataAfterExp()
self.capture()
if self.mean <= 1:
return img
self.im_num += 1
if self.im_num == 1:
self.im_mean = img.astype(np.float)
else:
self.im_mean += img
if self.im_num >= self.mean:
self.im_num = 0
return self.im_mean / self.mean
def set_exposure_ms(self, ms):
self.SetControlValue(pc.EXPOSURE, int(ms*1000), False)
def get_exposure_ms(self):
return self.GetControlValue(pc.EXPOSURE)[0] / 1000.0
def set_gain(self, gain):
self.SetControlValue(pc.GAIN, gain, False)
def get_gain(self):
return self.GetControlValue(pc.GAIN)[0]
class Histo:
def __init__(self):
self.data = None
self.stretch = 0
self.stretch_from = 0
self.stretch_to = 127
self.bins = [2*i - 0.5 for i in range(129)]
def get(self):
self.histo = Gtk.DrawingArea()
self.histo.connect("draw", self.draw)
self.histo.set_property("height-request", 100)
return self.histo
def draw(self, w, cr):
if self.data is None:
return
width = w.get_allocated_width()
height = w.get_allocated_height()
cr.set_source_rgb(0.7, 0.1, 0.1)
cr.move_to(0, 0)
cr.line_to(width, 0)
cr.line_to(width, height)
cr.line_to(0, height)
cr.line_to(0, 0)
cr.stroke()
xscale = width / 127.0
yscale = float(height) / np.max(self.data)
if self.stretch_from >= 0:
cr.set_source_rgb(0.9, 0.6, 0.6)
cr.rectangle(self.stretch_from * xscale, 0,
(self.stretch_to - self.stretch_from) * xscale,
height)
cr.fill()
cr.set_source_rgb(0.1, 0.1, 0.1)
cr.new_path()
cr.move_to(0, height - 0)
cr.line_to(0, height - self.data[0] * yscale)
for i in range(1, 128):
cr.line_to(i * xscale, height - self.data[i] * yscale)
cr.line_to(width, height - 0)
cr.close_path()
cr.fill()
def apply(self, im):
size = im.shape[0]
if im.shape[1] > size:
size = im.shape[1]
n = 1
while size > 256:
size /= 2
n *= 2
self.data = np.histogram(im[::n, ::n], bins=self.bins)[0]
if self.stretch > 0 and self.stretch < 100:
cs = np.cumsum(self.data)/np.sum(self.data) * 100
self.stretch_from = len(cs[cs <= self.stretch])
self.stretch_to = len(cs[cs <= 100 - self.stretch])
s_to = self.stretch_to / 127.0 * 255.0
s_from = self.stretch_from / 127.0 * 255.0
scale = 255.0 / (s_to - s_from)
im = np.clip((im - s_from) * scale, 0, 255)
else:
self.stretch_from = 0
self.stretch_to = 127
self.histo.queue_draw()
return im
class Mainwindow(Gtk.Window):
def __init__(self, cam, *args, **kwargs):
Gtk.Window.__init__(
self, default_width=800, default_height=600,
title="PYASICAM", *args, **kwargs)
self.cam = cam
self.surface = None
self.gamma = 1.0
cam.capture()
scrolledImage = Gtk.ScrolledWindow()
self.image = Gtk.DrawingArea()
self.image.connect("draw", self.draw)
self.image.connect("configure-event", self.configure)
scrolledImage.add(self.image)
mainHBox = Gtk.HBox()
mainHBox.pack_start(scrolledImage, True, True, 0)
controlsBox = Gtk.VBox()
mainHBox.pack_start(controlsBox, False, False, 0)
self.add_controls(controlsBox)
self.add(mainHBox)
self.connect("delete-event", Gtk.main_quit)
self.periodic = GLib.timeout_add(100, self.get_image)
self.show_all()
def process_image(self, im):
im = self.histo.apply(im)
if self.gamma != 1.0:
im = gamma_stretch(im, self.gamma)
self.publish_image(im)
def get_image(self):
im = self.cam.get_image()
if im is not None:
self.im = im
self.process_image(im)
self.periodic = GLib.timeout_add(100, self.get_image)
def publish_image(self, im):
if im.dtype != np.uint8:
im = im.astype(np.uint8)
im32 = np.dstack((im, im, im, im))
self.surface = cairo.ImageSurface.create_for_data(
im32, cairo.FORMAT_RGB24, im.shape[1], im.shape[0])
self.image.set_size_request(im.shape[1], im.shape[0])
self.image.queue_draw()
def draw(self, w, cr):
if not self.surface:
return
cr.set_source_surface(self.surface, 0, 0)
cr.paint()
def configure(self, w, ev):
if not self.surface:
return
self.image.queue_draw()
def create_text_control(self, text, ini, cb):
box = Gtk.HBox()
label = Gtk.Label()
label.set_markup(text)
label.set_justify(Gtk.Justification.RIGHT)
box.pack_start(label, False, False, 0)
entry = Gtk.Entry()
entry.set_text(ini)
entry.connect("activate", cb)
box.pack_start(entry, True, False, 0)
return box
def add_controls(self, box):
self.histo = Histo()
box.pack_start(self.histo.get(), False, False, 0)
exp_ms = self.create_text_control(
"Exposure (ms):",
"%.2f" % self.cam.get_exposure_ms(),
self.set_exposure_ms)
box.pack_start(exp_ms, False, False, 0)
gain = self.create_text_control(
"Gain:",
"%d" % self.cam.get_gain(),
self.set_gain)
box.pack_start(gain, False, False, 0)
mean = self.create_text_control(
"Mean:",
"%d" % self.cam.mean,
self.set_mean)
box.pack_start(mean, False, False, 0)
stretch = self.create_text_control(
"Stretch:",
"%d" % self.histo.stretch,
self.set_stretch)
box.pack_start(stretch, False, False, 0)
gamma = self.create_text_control(
"Gamma:",
"%d" % self.gamma,
self.set_gamma)
box.pack_start(gamma, False, False, 0)
def set_exposure_ms(self, e):
try:
self.cam.set_exposure_ms(float(e.get_text()))
except:
pass
e.set_text("%.2f" % self.cam.get_exposure_ms())
def set_gain(self, e):
try:
self.cam.set_gain(int(e.get_text()))
except:
pass
e.set_text("%d" % self.cam.get_gain())
def set_mean(self, e):
try:
self.cam.mean = int(e.get_text())
except:
pass
e.set_text("%d" % self.cam.mean)
def set_stretch(self, e):
try:
self.histo.stretch = int(e.get_text())
except:
pass
e.set_text("%d" % self.histo.stretch)
def set_gamma(self, e):
try:
self.gamma = float(e.get_text())
except:
pass
e.set_text("%f" % self.gamma)
if len(sys.argv) < 2:
print("Usage: %s [list/camera no.]" % sys.argv[0])
sys.exit(1)
n = pc.GetNumOfConnectedCameras()
if sys.argv[1] == "list":
for i in range(n):
c = pc.Camera(i)
prop = c.GetCameraProperty()
print("%d: %s" % (i, prop.Name.decode("utf-8")))
sys.exit(0)
cam = Camera(int(sys.argv[1]))
window = Mainwindow(cam)
Gtk.main()
| gpl-3.0 | 199,139,717,233,901,900 | 29.026846 | 72 | 0.533862 | false |
livioferrante/my-final-project | .mywaflib/waflib/extras/boost.py | 1 | 13891 | #!/usr/bin/env python
# encoding: utf-8
#
# partially based on boost.py written by Gernot Vormayr
# written by Ruediger Sonderfeld <[email protected]>, 2008
# modified by Bjoern Michaelsen, 2008
# modified by Luca Fossati, 2008
# rewritten for waf 1.5.1, Thomas Nagy, 2008
# rewritten for waf 1.6.2, Sylvain Rouquette, 2011
'''
This is an extra tool, not bundled with the default waf binary.
To add the boost tool to the waf file:
$ ./waf-light --tools=compat15,boost
or, if you have waf >= 1.6.2
$ ./waf update --files=boost
When using this tool, the wscript will look like:
def options(opt):
opt.load('compiler_cxx boost')
def configure(conf):
conf.load('compiler_cxx boost')
conf.check_boost(lib='system filesystem')
def build(bld):
bld(source='main.cpp', target='app', use='BOOST')
Options are generated, in order to specify the location of boost includes/libraries.
The `check_boost` configuration function allows to specify the used boost libraries.
It can also provide default arguments to the --boost-mt command-line arguments.
Everything will be packaged together in a BOOST component that you can use.
When using MSVC, a lot of compilation flags need to match your BOOST build configuration:
- you may have to add /EHsc to your CXXFLAGS or define boost::throw_exception if BOOST_NO_EXCEPTIONS is defined.
Errors: C4530
- boost libraries will try to be smart and use the (pretty but often not useful) auto-linking feature of MSVC
So before calling `conf.check_boost` you might want to disabling by adding
conf.env.DEFINES_BOOST += ['BOOST_ALL_NO_LIB']
Errors:
- boost might also be compiled with /MT, which links the runtime statically.
If you have problems with redefined symbols,
self.env['DEFINES_%s' % var] += ['BOOST_ALL_NO_LIB']
self.env['CXXFLAGS_%s' % var] += ['/MD', '/EHsc']
Passing `--boost-linkage_autodetect` might help ensuring having a correct linkage in some basic cases.
'''
import sys
import re
from waflib import Utils, Logs, Errors
from waflib.Configure import conf
from waflib.TaskGen import feature, after_method
BOOST_LIBS = ['/usr/lib/x86_64-linux-gnu', '/usr/lib/i386-linux-gnu',
'/usr/lib', '/usr/local/lib', '/opt/local/lib', '/sw/lib', '/lib']
BOOST_INCLUDES = ['/usr/include', '/usr/local/include', '/opt/local/include', '/sw/include']
BOOST_VERSION_FILE = 'boost/version.hpp'
BOOST_VERSION_CODE = '''
#include <iostream>
#include <boost/version.hpp>
int main() { std::cout << BOOST_LIB_VERSION << std::endl; }
'''
BOOST_ERROR_CODE = '''
#include <boost/system/error_code.hpp>
int main() { boost::system::error_code c; }
'''
BOOST_THREAD_CODE = '''
#include <boost/thread.hpp>
int main() { boost::thread t; }
'''
# toolsets from {boost_dir}/tools/build/v2/tools/common.jam
PLATFORM = Utils.unversioned_sys_platform()
detect_intel = lambda env: (PLATFORM == 'win32') and 'iw' or 'il'
detect_clang = lambda env: (PLATFORM == 'darwin') and 'clang-darwin' or 'clang'
detect_mingw = lambda env: (re.search('MinGW', env.CXX[0])) and 'mgw' or 'gcc'
BOOST_TOOLSETS = {
'borland': 'bcb',
'clang': detect_clang,
'como': 'como',
'cw': 'cw',
'darwin': 'xgcc',
'edg': 'edg',
'g++': detect_mingw,
'gcc': detect_mingw,
'icpc': detect_intel,
'intel': detect_intel,
'kcc': 'kcc',
'kylix': 'bck',
'mipspro': 'mp',
'mingw': 'mgw',
'msvc': 'vc',
'qcc': 'qcc',
'sun': 'sw',
'sunc++': 'sw',
'tru64cxx': 'tru',
'vacpp': 'xlc'
}
def options(opt):
opt.add_option('--boost-includes', type='string',
default='', dest='boost_includes',
help='''path to the boost includes root (~boost root)
e.g. /path/to/boost_1_47_0''')
opt.add_option('--boost-libs', type='string',
default='', dest='boost_libs',
help='''path to the directory where the boost libs are
e.g. /path/to/boost_1_47_0/stage/lib''')
opt.add_option('--boost-mt', action='store_true',
default=False, dest='boost_mt',
help='select multi-threaded libraries')
opt.add_option('--boost-abi', type='string', default='', dest='boost_abi',
help='''select libraries with tags (gd for debug, static is automatically added),
see doc Boost, Getting Started, chapter 6.1''')
opt.add_option('--boost-linkage_autodetect', action="store_true", dest='boost_linkage_autodetect',
help="auto-detect boost linkage options (don't get used to it / might break other stuff)")
opt.add_option('--boost-toolset', type='string',
default='', dest='boost_toolset',
help='force a toolset e.g. msvc, vc90, \
gcc, mingw, mgw45 (default: auto)')
py_version = '%d%d' % (sys.version_info[0], sys.version_info[1])
opt.add_option('--boost-python', type='string',
default=py_version, dest='boost_python',
help='select the lib python with this version \
(default: %s)' % py_version)
@conf
def __boost_get_version_file(self, d):
if not d:
return None
dnode = self.root.find_dir(d)
if dnode:
return dnode.find_node(BOOST_VERSION_FILE)
return None
@conf
def boost_get_version(self, d):
"""silently retrieve the boost version number"""
node = self.__boost_get_version_file(d)
if node:
try:
txt = node.read()
except (OSError, IOError):
Logs.error("Could not read the file %r" % node.abspath())
else:
re_but = re.compile('^#define\\s+BOOST_LIB_VERSION\\s+"(.*)"', re.M)
m = re_but.search(txt)
if m:
return m.group(1)
return self.check_cxx(fragment=BOOST_VERSION_CODE, includes=[d], execute=True, define_ret=True)
@conf
def boost_get_includes(self, *k, **kw):
includes = k and k[0] or kw.get('includes', None)
if includes and self.__boost_get_version_file(includes):
return includes
for d in self.environ.get('INCLUDE', '').split(';') + BOOST_INCLUDES:
if self.__boost_get_version_file(d):
return d
if includes:
self.end_msg('headers not found in %s' % includes)
self.fatal('The configuration failed')
else:
self.end_msg('headers not found, please provide a --boost-includes argument (see help)')
self.fatal('The configuration failed')
@conf
def boost_get_toolset(self, cc):
toolset = cc
if not cc:
build_platform = Utils.unversioned_sys_platform()
if build_platform in BOOST_TOOLSETS:
cc = build_platform
else:
cc = self.env.CXX_NAME
if cc in BOOST_TOOLSETS:
toolset = BOOST_TOOLSETS[cc]
return isinstance(toolset, str) and toolset or toolset(self.env)
@conf
def __boost_get_libs_path(self, *k, **kw):
''' return the lib path and all the files in it '''
if 'files' in kw:
return self.root.find_dir('.'), Utils.to_list(kw['files'])
libs = k and k[0] or kw.get('libs', None)
if libs:
path = self.root.find_dir(libs)
files = path.ant_glob('*boost_*')
if not libs or not files:
for d in self.environ.get('LIB', '').split(';') + BOOST_LIBS:
if not d:
continue
path = self.root.find_dir(d)
if path:
files = path.ant_glob('*boost_*')
if files:
break
path = self.root.find_dir(d + '64')
if path:
files = path.ant_glob('*boost_*')
if files:
break
if not path:
if libs:
self.end_msg('libs not found in %s' % libs)
self.fatal('The configuration failed')
else:
self.end_msg('libs not found, please provide a --boost-libs argument (see help)')
self.fatal('The configuration failed')
self.to_log('Found the boost path in %r with the libraries:' % path)
for x in files:
self.to_log(' %r' % x)
return path, files
@conf
def boost_get_libs(self, *k, **kw):
'''
return the lib path and the required libs
according to the parameters
'''
path, files = self.__boost_get_libs_path(**kw)
files = sorted(files, key=lambda f: (len(f.name), f.name), reverse=True)
toolset = self.boost_get_toolset(kw.get('toolset', ''))
toolset_pat = '(-%s[0-9]{0,3})' % toolset
version = '-%s' % self.env.BOOST_VERSION
def find_lib(re_lib, files):
for file in files:
if re_lib.search(file.name):
self.to_log('Found boost lib %s' % file)
return file
return None
def format_lib_name(name):
if name.startswith('lib') and self.env.CC_NAME != 'msvc':
name = name[3:]
return name[:name.rfind('.')]
def match_libs(lib_names, is_static):
libs = []
lib_names = Utils.to_list(lib_names)
if not lib_names:
return libs
t = []
if kw.get('mt', False):
t.append('-mt')
if kw.get('abi', None):
t.append('%s%s' % (is_static and '-s' or '-', kw['abi']))
elif is_static:
t.append('-s')
tags_pat = t and ''.join(t) or ''
ext = is_static and self.env.cxxstlib_PATTERN or self.env.cxxshlib_PATTERN
ext = ext.partition('%s')[2] # remove '%s' or 'lib%s' from PATTERN
for lib in lib_names:
if lib == 'python':
# for instance, with python='27',
# accepts '-py27', '-py2', '27' and '2'
# but will reject '-py3', '-py26', '26' and '3'
tags = '({0})?((-py{2})|(-py{1}(?=[^0-9]))|({2})|({1}(?=[^0-9]))|(?=[^0-9])(?!-py))'.format(tags_pat, kw['python'][0], kw['python'])
else:
tags = tags_pat
# Trying libraries, from most strict match to least one
for pattern in ['boost_%s%s%s%s%s$' % (lib, toolset_pat, tags, version, ext),
'boost_%s%s%s%s$' % (lib, tags, version, ext),
# Give up trying to find the right version
'boost_%s%s%s%s$' % (lib, toolset_pat, tags, ext),
'boost_%s%s%s$' % (lib, tags, ext),
'boost_%s%s$' % (lib, ext),
'boost_%s' % lib]:
self.to_log('Trying pattern %s' % pattern)
file = find_lib(re.compile(pattern), files)
if file:
libs.append(format_lib_name(file.name))
break
else:
self.end_msg('lib %s not found in %s' % (lib, path.abspath()))
self.fatal('The configuration failed')
return libs
return path.abspath(), match_libs(kw.get('lib', None), False), match_libs(kw.get('stlib', None), True)
@conf
def check_boost(self, *k, **kw):
"""
Initialize boost libraries to be used.
Keywords: you can pass the same parameters as with the command line (without "--boost-").
Note that the command line has the priority, and should preferably be used.
"""
if not self.env['CXX']:
self.fatal('load a c++ compiler first, conf.load("compiler_cxx")')
params = {
'lib': k and k[0] or kw.get('lib', None),
'stlib': kw.get('stlib', None)
}
for key, value in self.options.__dict__.items():
if not key.startswith('boost_'):
continue
key = key[len('boost_'):]
params[key] = value and value or kw.get(key, '')
var = kw.get('uselib_store', 'BOOST')
self.start_msg('Checking boost includes')
self.env['INCLUDES_%s' % var] = inc = self.boost_get_includes(**params)
self.env.BOOST_VERSION = self.boost_get_version(inc)
self.end_msg(self.env.BOOST_VERSION)
if Logs.verbose:
Logs.pprint('CYAN', ' path : %s' % self.env['INCLUDES_%s' % var])
if not params['lib'] and not params['stlib']:
return
if 'static' in kw or 'static' in params:
Logs.warn('boost: static parameter is deprecated, use stlib instead.')
self.start_msg('Checking boost libs')
path, libs, stlibs = self.boost_get_libs(**params)
self.env['LIBPATH_%s' % var] = [path]
self.env['STLIBPATH_%s' % var] = [path]
self.env['LIB_%s' % var] = libs
self.env['STLIB_%s' % var] = stlibs
self.end_msg('ok')
if Logs.verbose:
Logs.pprint('CYAN', ' path : %s' % path)
Logs.pprint('CYAN', ' shared libs : %s' % libs)
Logs.pprint('CYAN', ' static libs : %s' % stlibs)
def try_link():
if (params['lib'] and 'system' in params['lib']) or \
params['stlib'] and 'system' in params['stlib']:
self.check_cxx(fragment=BOOST_ERROR_CODE, use=var, execute=False)
if (params['lib'] and 'thread' in params['lib']) or \
params['stlib'] and 'thread' in params['stlib']:
self.check_cxx(fragment=BOOST_THREAD_CODE, use=var, execute=False)
if params.get('linkage_autodetect', False):
self.start_msg("Attempting to detect boost linkage flags")
toolset = self.boost_get_toolset(kw.get('toolset', ''))
if toolset in ('vc',):
# disable auto-linking feature, causing error LNK1181
# because the code wants to be linked against
self.env['DEFINES_%s' % var] += ['BOOST_ALL_NO_LIB']
# if no dlls are present, we guess the .lib files are not stubs
has_dlls = False
for x in Utils.listdir(path):
if x.endswith(self.env.cxxshlib_PATTERN % ''):
has_dlls = True
break
if not has_dlls:
self.env['STLIBPATH_%s' % var] = [path]
self.env['STLIB_%s' % var] = libs
del self.env['LIB_%s' % var]
del self.env['LIBPATH_%s' % var]
# we attempt to play with some known-to-work CXXFLAGS combinations
for cxxflags in (['/MD', '/EHsc'], []):
self.env.stash()
self.env["CXXFLAGS_%s" % var] += cxxflags
try:
try_link()
self.end_msg("ok: winning cxxflags combination: %s" % (self.env["CXXFLAGS_%s" % var]))
exc = None
break
except Errors.ConfigurationError as e:
self.env.revert()
exc = e
if exc is not None:
self.end_msg("Could not auto-detect boost linking flags combination, you may report it to boost.py author", ex=exc)
self.fatal('The configuration failed')
else:
self.end_msg("Boost linkage flags auto-detection not implemented (needed ?) for this toolchain")
self.fatal('The configuration failed')
else:
self.start_msg('Checking for boost linkage')
try:
try_link()
except Errors.ConfigurationError as e:
self.end_msg("Could not link against boost libraries using supplied options")
self.fatal('The configuration failed')
self.end_msg('ok')
@feature('cxx')
@after_method('apply_link')
def install_boost(self):
if install_boost.done or not Utils.is_win32 or not self.bld.cmd.startswith('install'):
return
install_boost.done = True
inst_to = getattr(self, 'install_path', '${BINDIR}')
for lib in self.env.LIB_BOOST:
try:
file = self.bld.find_file(self.env.cxxshlib_PATTERN % lib, self.env.LIBPATH_BOOST)
self.bld.install_files(inst_to, self.bld.root.find_node(file))
except:
continue
install_boost.done = False
| bsd-3-clause | -5,572,335,086,933,527,000 | 32.798054 | 136 | 0.653373 | false |
jaap-karssenberg/zim-desktop-wiki | tests/operations.py | 1 | 4550 |
# Copyright 2017 Jaap Karssenberg <[email protected]>
import tests
from gi.repository import Gtk
from zim.notebook.operations import *
class MockProgressDialog(object):
def __init__(self, parent, operation):
# self.heading.set_text(operation.msg)
operation.connect('step', self.on_iteration_step)
operation.connect('finished', self.on_iteration_finished)
self.steps = []
self.finished = False
def on_iteration_step(self, o, progress):
self.steps.append(progress)
if isinstance(progress, tuple) and len(progress) == 3:
i, total, msg = progress
# self.bar.set_fraction(i/total)
# self.bar.set_text('%i / %i' % (i, total))
else:
msg = progress
# self.bar.pulse()
# if isinstance(msg, basestring):
# self.label.set_text(msg)
def on_iteration_finished(self, o):
self.finished = True
# self.response(...) # break run() loop
class MockNotebook(object):
def __init__(self):
self._operation_check = NOOP
self.value = None
@notebook_state
def test(self, value):
self.value = value
def raw(self, value):
self.value = value
def mock_iterator(notebook):
for i in 0, 1, 2:
notebook.test('Test %i' % i)
yield i
def mock_gtk_iter(notebook):
for i in 0, 1, 2:
notebook.test('Test %i' % i)
yield i
Gtk.main_quit()
class TestNotebookOperation(tests.TestCase):
## TODO add signal monitor to check step and finished emitted
def testIterator(self):
nb = MockNotebook()
nb.test('Foo')
self.assertEqual(nb.value, 'Foo')
# Test iterator
op = NotebookOperation(nb, 'My Op', mock_iterator(nb))
self.assertFalse(op.is_running())
nb.test('Bar')
self.assertEqual(nb.value, 'Bar')
i = None
for i, x in enumerate(op):
self.assertTrue(op.is_running())
self.assertEqual(nb.value, 'Test %i' % i)
self.assertRaises(NotebookOperationOngoing, nb.test, 'Foo')
self.assertEqual(i, 2)
self.assertFalse(op.is_running())
self.assertFalse(op.cancelled)
nb.test('Baz')
self.assertEqual(nb.value, 'Baz')
# Test cancel
op = NotebookOperation(nb, 'My Op', mock_iterator(nb))
i = None
for i, x in enumerate(op):
self.assertTrue(op.is_running())
op.cancel()
self.assertEqual(i, 0)
self.assertFalse(op.is_running())
self.assertTrue(op.cancelled)
def testIdle(self):
nb = MockNotebook()
op = NotebookOperation(nb, 'My Op', mock_gtk_iter(nb))
op.run_on_idle()
Gtk.main()
self.assertFalse(op.is_running())
self.assertEqual(nb.value, 'Test %i' % 2)
def testContext(self):
nb = MockNotebook()
def test():
with NotebookState(nb):
nb.raw('Foo')
test()
self.assertEqual(nb.value, 'Foo')
op = NotebookOperation(nb, 'My Op', mock_iterator(nb))
for i, x in enumerate(op):
self.assertRaises(NotebookOperationOngoing, test)
def testSignals(self):
nb = MockNotebook()
op = NotebookOperation(nb, 'My Op', mock_iterator(nb))
dialog = MockProgressDialog(None, op)
i = None
for i, x in enumerate(op):
pass
self.assertEqual(i, 2)
self.assertEqual(len(dialog.steps), 3)
self.assertTrue(dialog.finished)
op = NotebookOperation(nb, 'My Op', mock_iterator(nb))
dialog = MockProgressDialog(None, op)
i = None
for i, x in enumerate(op):
self.assertTrue(op.is_running())
op.cancel()
self.assertEqual(i, 0)
self.assertEqual(len(dialog.steps), 1)
self.assertTrue(dialog.finished)
import threading
def mock_thread_main(notebook, lock):
with lock:
for i in 0, 1, 2:
notebook.test('Test %i' % i)
class TestSimpleAsyncOperation(tests.TestCase):
def runTest(self):
nb = MockNotebook()
lock = threading.Lock()
lock.acquire()
thread = threading.Thread(target=mock_thread_main, args=(nb, lock))
thread.start()
# using lock to ensure thread doesn't finish before iteration seen
result = []
def post():
result.append('foo')
op = SimpleAsyncOperation(nb, 'my op', thread, post)
for i, x in enumerate(op):
self.assertTrue(op.is_running())
if i == 1:
lock.release()
self.assertTrue(i >= 1)
self.assertFalse(op.is_running())
self.assertFalse(op.cancelled)
self.assertEqual(nb.value, 'Test 2')
self.assertEqual(result, ['foo'])
# now with cancel - result can vary depending on who goes first
lock = threading.Lock()
lock.acquire()
thread = threading.Thread(target=mock_thread_main, args=(nb, lock))
thread.start()
op = SimpleAsyncOperation(nb, 'my op', thread, post)
for i, x in enumerate(op):
if i == 1:
lock.release()
op.cancel()
self.assertFalse(op.is_running())
self.assertTrue(op.cancelled)
| gpl-2.0 | -452,143,776,493,612,100 | 21.303922 | 69 | 0.677582 | false |
Arkapravo/morse-0.6 | src/morse/actuators/destination.py | 1 | 3226 | import logging; logger = logging.getLogger("morse." + __name__)
import morse.core.actuator
from morse.helpers.components import add_data, add_property
class DestinationActuatorClass(morse.core.actuator.MorseActuatorClass):
""" Destination motion controller
This controller will receive a destination point and
make the robot move to that location by moving without turning.
"""
_name = "Destination"
_short_desc = "Instruct the robot to move towards a given target"
add_data('x', 'current X pos')
add_data('y', 'current Y pos')
add_data('z', 'current Z pos')
add_property('_tolerance', 0.5, 'Tolerance')
add_property('_speed', 5.0, 'Speed')
def __init__(self, obj, parent=None):
logger.info('%s initialization' % obj.name)
# Call the constructor of the parent class
super(self.__class__,self).__init__(obj, parent)
self.destination = self.blender_obj.position
#self.local_data['speed'] = 0.0
self.local_data['x'] = self.destination[0]
self.local_data['y'] = self.destination[1]
self.local_data['z'] = self.destination[2]
logger.info('Component initialized')
def default_action(self):
""" Move the object towards the destination. """
parent = self.robot_parent
self.destination = [ self.local_data['x'], self.local_data['y'], self.local_data['z'] ]
logger.debug("STRAIGHT GOT DESTINATION: {0}".format(self.destination))
logger.debug("Robot {0} move status: '{1}'".format(parent.blender_obj.name, parent.move_status))
# Vectors returned are already normalised
distance, global_vector, local_vector = self.blender_obj.getVectTo(self.destination)
logger.debug("My position: {0}".format(self.blender_obj.position))
logger.debug("GOT DISTANCE: {0}".format(distance))
logger.debug("Global vector: {0}".format(global_vector))
logger.debug("Local vector: {0}".format(local_vector))
if distance > self._tolerance:
# Set the robot status
parent.move_status = "Transit"
# Scale the speeds to the time used by Blender
try:
vx = global_vector[0] * self._speed / self.frequency
vy = global_vector[1] * self._speed / self.frequency
vz = global_vector[2] * self._speed / self.frequency
# For the moment ignoring the division by zero
# It happens apparently when the simulation starts
except ZeroDivisionError:
pass
# If the target has been reached, change the status
else:
# Reset movement variables
vx, vy, vz = 0.0, 0.0, 0.0
#rx, ry, rz = 0.0, 0.0, 0.0
parent.move_status = "Stop"
logger.debug("TARGET REACHED")
logger.debug("Robot {0} move status: '{1}'".format(parent.blender_obj.name, parent.move_status))
# Give the movement instructions directly to the parent
# The second parameter specifies a "local" movement
parent.blender_obj.applyMovement([vx, vy, vz], False)
#parent.blender_obj.applyRotation([rx, ry, rz], False)
| bsd-3-clause | 6,813,234,703,560,069,000 | 37.86747 | 108 | 0.619653 | false |
cpcloud/ibis | ibis/pandas/execution/tests/test_structs.py | 1 | 2175 | from collections import OrderedDict
import pandas as pd
import pandas.util.testing as tm
import pytest
import ibis
import ibis.expr.datatypes as dt
@pytest.fixture(scope="module")
def value():
return OrderedDict([("fruit", "pear"), ("weight", 0)])
@pytest.fixture(scope="module")
def struct_client(value):
df = pd.DataFrame(
{
"s": [
OrderedDict([("fruit", "apple"), ("weight", None)]),
value,
OrderedDict([("fruit", "pear"), ("weight", 1)]),
],
"key": list("aab"),
"value": [1, 2, 3],
}
)
return ibis.pandas.connect({"t": df})
@pytest.fixture
def struct_table(struct_client):
return struct_client.table(
"t",
schema={
"s": dt.Struct.from_tuples(
[("fruit", dt.string), ("weight", dt.int8)]
)
},
)
def test_struct_field_literal(value):
struct = ibis.literal(value)
assert struct.type() == dt.Struct.from_tuples(
[("fruit", dt.string), ("weight", dt.int8)]
)
expr = struct.fruit
result = ibis.pandas.execute(expr)
assert result == "pear"
expr = struct.weight
result = ibis.pandas.execute(expr)
assert result == 0
def test_struct_field_series(struct_table):
t = struct_table
expr = t.s.fruit
result = expr.execute()
expected = pd.Series(["apple", "pear", "pear"], name="fruit")
tm.assert_series_equal(result, expected)
def test_struct_field_series_group_by_key(struct_table):
t = struct_table
expr = t.groupby(t.s.fruit).aggregate(total=t.value.sum())
result = expr.execute()
expected = pd.DataFrame(
[("apple", 1), ("pear", 5)], columns=["fruit", "total"]
)
tm.assert_frame_equal(result, expected)
def test_struct_field_series_group_by_value(struct_table):
t = struct_table
expr = t.groupby(t.key).aggregate(total=t.s.weight.sum())
result = expr.execute()
# these are floats because we have a NULL value in the input data
expected = pd.DataFrame([("a", 0.0), ("b", 1.0)], columns=["key", "total"])
tm.assert_frame_equal(result, expected)
| apache-2.0 | -4,332,289,009,526,960,600 | 25.204819 | 79 | 0.585287 | false |
radinformatics/whatisit | whatisit/apps/wordfish/storage.py | 1 | 2207 | from django.core.files.storage import FileSystemStorage
from django.core.files.move import file_move_safe
from django.contrib.auth.models import User
from django.apps import apps
from fnmatch import fnmatch
from whatisit.settings import (
MEDIA_ROOT,
MEDIA_URL
)
import errno
import itertools
import os
import tempfile
############################################################################
# Storage Models
############################################################################
class WhatisitStorage(FileSystemStorage):
def __init__(self, location=None, base_url=None):
if location is None:
location = MEDIA_ROOT
if base_url is None:
base_url = MEDIA_URL
super(WhatisitStorage, self).__init__(location, base_url)
def url(self, name):
uid = None
spath, file_name = os.path.split(name)
urlsects = [v for v in spath.split('/') if v]
for i in range(len(urlsects)):
sect = urlsects.pop(0)
if sect.isdigit():
collection_id = sect
break
report_path = '/'.join(urlsects)
coll_model = apps.get_model('whatisit', 'ReportCollection')
collection = coll_model.objects.get(id=uid)
#if collection.private:
# cid = collection.private_token
#else:
cid = collection.id
return os.path.join(self.base_url, str(cid), cont_path, file_name)
class ImageStorage(WhatisitStorage):
def get_available_name(self, name):
"""
Returns a filename that's free on the target storage system, and
available for new content to be written to.
"""
dir_name, file_name = os.path.split(name)
file_root, file_ext = os.path.splitext(file_name)
# If the filename already exists, add an underscore and a number (before
# the file extension, if one exists) to the filename until the generated
# filename doesn't exist.
count = itertools.count(1)
while self.exists(name):
# file_ext includes the dot.
name = os.path.join(dir_name, "%s_%s%s" % (file_root, next(count), file_ext))
return name
| mit | -5,028,986,313,260,818,000 | 33.484375 | 89 | 0.580879 | false |
blue-yonder/pyscaffold | tests/test_api.py | 1 | 8054 | # -*- coding: utf-8 -*-
from os.path import exists as path_exists
from os.path import getmtime
import pytest
from pyscaffold import templates
from pyscaffold.api import (
Extension,
create_project,
discover_actions,
get_default_options,
helpers,
verify_project_dir,
)
from pyscaffold.exceptions import (
DirectoryAlreadyExists,
DirectoryDoesNotExist,
GitNotConfigured,
GitNotInstalled,
InvalidIdentifier,
)
def create_extension(*hooks):
"""Shorthand to define extensions from a list of actions"""
class TestExtension(Extension):
def activate(self, actions):
for hook in hooks:
actions = self.register(actions, hook, after="define_structure")
return actions
return TestExtension("TestExtension")
def test_discover_actions():
# Given an extension with actions,
def fake_action(struct, opts):
return struct, opts
def extension(actions):
return [fake_action] + actions
# When discover_actions is called,
actions = discover_actions([extension])
# Then the extension actions should be listed alongside default actions.
assert get_default_options in actions
assert fake_action in actions
def test_create_project_call_extension_hooks(tmpfolder, git_mock):
# Given an extension with hooks,
called = []
def pre_hook(struct, opts):
called.append("pre_hook")
return struct, opts
def post_hook(struct, opts):
called.append("post_hook")
return struct, opts
# when created project is called,
create_project(project="proj", extensions=[create_extension(pre_hook, post_hook)])
# then the hooks should also be called.
assert "pre_hook" in called
assert "post_hook" in called
def test_create_project_generate_extension_files(tmpfolder, git_mock):
# Given a blank state,
assert not path_exists("proj/tests/extra.file")
assert not path_exists("proj/tests/another.file")
# and an extension with extra files,
def add_files(struct, opts):
struct = helpers.ensure(struct, "proj/tests/extra.file", "content")
struct = helpers.merge(struct, {"proj": {"tests": {"another.file": "content"}}})
return struct, opts
# when the created project is called,
create_project(project="proj", extensions=[create_extension(add_files)])
# then the files should be created
assert path_exists("proj/tests/extra.file")
assert tmpfolder.join("proj/tests/extra.file").read() == "content"
assert path_exists("proj/tests/another.file")
assert tmpfolder.join("proj/tests/another.file").read() == "content"
def test_create_project_respect_update_rules(tmpfolder, git_mock):
# Given an existing project
opts = dict(project="proj")
create_project(opts)
for i in (0, 1, 3, 5, 6):
tmpfolder.ensure("proj/tests/file" + str(i)).write("old")
assert path_exists("proj/tests/file" + str(i))
# and an extension with extra files
def add_files(struct, opts):
nov, ncr = helpers.NO_OVERWRITE, helpers.NO_CREATE
struct = helpers.ensure(struct, "proj/tests/file0", "new")
struct = helpers.ensure(struct, "proj/tests/file1", "new", nov)
struct = helpers.ensure(struct, "proj/tests/file2", "new", ncr)
struct = helpers.merge(
struct,
{
"proj": {
"tests": {
"file3": ("new", nov),
"file4": ("new", ncr),
"file5": ("new", None),
"file6": "new",
}
}
},
)
return struct, opts
# When the created project is called,
create_project(
project="proj", update=True, extensions=[create_extension(add_files)]
)
# then the NO_CREATE files should not be created,
assert not path_exists("proj/tests/file2")
assert not path_exists("proj/tests/file4")
# the NO_OVERWRITE files should not be updated
assert tmpfolder.join("proj/tests/file1").read() == "old"
assert tmpfolder.join("proj/tests/file3").read() == "old"
# and files with no rules or `None` rules should be updated
assert tmpfolder.join("proj/tests/file0").read() == "new"
assert tmpfolder.join("proj/tests/file5").read() == "new"
assert tmpfolder.join("proj/tests/file6").read() == "new"
def test_create_project_when_folder_exists(tmpfolder, git_mock):
tmpfolder.ensure("my-project", dir=True)
opts = dict(project="my-project")
with pytest.raises(DirectoryAlreadyExists):
create_project(opts)
opts = dict(project="my-project", force=True)
create_project(opts)
def test_create_project_with_valid_package_name(tmpfolder, git_mock):
opts = dict(project="my-project", package="my_package")
create_project(opts)
def test_create_project_with_invalid_package_name(tmpfolder, git_mock):
opts = dict(project="my-project", package="my:package")
with pytest.raises(InvalidIdentifier):
create_project(opts)
def test_create_project_when_updating(tmpfolder, git_mock):
opts = dict(project="my-project")
create_project(opts)
opts = dict(project="my-project", update=True)
create_project(opts)
assert path_exists("my-project")
def test_create_project_with_license(tmpfolder, git_mock):
_, opts = get_default_options({}, dict(project="my-project", license="new-bsd"))
# ^ The entire default options are needed, since template
# uses computed information
create_project(opts)
assert path_exists("my-project")
content = tmpfolder.join("my-project/LICENSE.txt").read()
assert content == templates.license(opts)
def test_get_default_opts():
_, opts = get_default_options(
{}, dict(project="project", package="package", description="description")
)
assert all(k in opts for k in "project update force author".split())
assert isinstance(opts["extensions"], list)
assert isinstance(opts["requirements"], list)
def test_get_default_opts_with_nogit(nogit_mock):
with pytest.raises(GitNotInstalled):
get_default_options({}, dict(project="my-project"))
def test_get_default_opts_with_git_not_configured(noconfgit_mock):
with pytest.raises(GitNotConfigured):
get_default_options({}, dict(project="my-project"))
def test_verify_project_dir_when_project_doesnt_exist_and_updating(tmpfolder, git_mock):
with pytest.raises(DirectoryDoesNotExist):
verify_project_dir({}, dict(project="my-project", update=True))
def test_verify_project_dir_when_project_exist_but_not_updating(tmpfolder, git_mock):
tmpfolder.ensure("my-project", dir=True)
with pytest.raises(DirectoryAlreadyExists):
verify_project_dir({}, dict(project="my-project", update=False, force=False))
def test_api(tmpfolder):
opts = dict(project="created_proj_with_api")
create_project(opts)
assert path_exists("created_proj_with_api")
assert path_exists("created_proj_with_api/.git")
def test_pretend(tmpfolder):
opts = dict(project="created_proj_with_api", pretend=True)
create_project(opts)
assert not path_exists("created_proj_with_api")
def test_pretend_when_updating_does_not_make_changes(tmpfolder):
# Given a project already exists
opts = dict(project="proj", license="mit")
create_project(opts)
setup_changed = getmtime("proj/setup.cfg")
license_changed = getmtime("proj/LICENSE.txt")
# When it is updated with different configuration,
create_project(
project="proj",
update=True,
force=True,
pretend=True,
url="my.project.net",
license="mozilla",
)
# Then nothing should change
assert getmtime("proj/setup.cfg") == setup_changed
assert "my.project.net" not in tmpfolder.join("proj/setup.cfg").read()
assert getmtime("proj/LICENSE.txt") == license_changed
assert "MIT License" in tmpfolder.join("proj/LICENSE.txt").read()
| mit | -8,887,442,645,753,015,000 | 31.607287 | 88 | 0.659424 | false |
gwpy/vet | gwvet/metric/__init__.py | 1 | 1693 | # coding=utf-8
# Copyright (C) Duncan Macleod (2014)
#
# This file is part of GWVeto.
#
# GWVeto is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# GWVeto is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with GWVeto. If not, see <http://www.gnu.org/licenses/>.
""".. currentmodule:: gwvet
#######
Metrics
#######
GWpy VET defines a custom `Metric` object, designed to wrap existing
figure-of-merit functions into a standard format such that they can be
applied conveniently to a set of segments and event triggers.
"""
from .core import ( # noqa: F401
Metric,
read_all,
evaluate,
)
from .registry import ( # noqa: F401
register_metric,
get_all_metrics,
get_metric,
)
from .metrics import ( # noqa: F401
_use_dqflag,
deadtime,
efficiency,
efficiency_over_deadtime,
use_percentage,
safety,
loudest_event_metric_factory,
metric_by_column_value_factory,
)
__author__ = 'Duncan Macleod <[email protected]>'
__all__ = ['Metric', 'register_metric', 'get_metric', 'get_all_metrics',
'read_all', 'evaluate', 'deadtime', 'efficiency', 'safety',
'efficiency_over_deadtime', 'use_percentage',
'loudest_by_column_value_factory', 'loudest_event_metric_factory']
| gpl-3.0 | -5,397,021,348,482,727,000 | 30.351852 | 77 | 0.695806 | false |
chriha/GistTerminal | helpers.py | 1 | 2293 | #!/usr/bin/python
# -*- coding: utf-8 -*-
from contextlib import contextmanager
import os
import re
import sys
import tempfile
# see http://en.wikipedia.org/wiki/ANSI_escape_code for more ANSI escape codes
class textColors( object ):
grey = '37m'
white = '97m'
cyan = '36m'
lightcyan = '96m'
pink = '35m'
lightpink = '95m'
blue = '34m'
lightblue = '94m'
yellow = '33m'
lightyellow = '93m'
green = '32m'
lightgreen = '92m'
red = '31m'
lightred = '91m'
black = '30m'
darkgrey = '90m'
def get( self, sColor, isBold = False ):
if ( isBold ):
return '\033[1;' + vars( textColors )[sColor]
else:
return '\033[0;' + vars( textColors )[sColor]
def end( self ):
return '\033[0m'
@contextmanager
def namedTempfile():
tmpFile = tempfile.NamedTemporaryFile( delete = False )
try:
yield tmpFile
finally:
tmpFile.close()
os.unlink( tmpFile.name )
class showText( object ):
def help( self ):
print 'Usage: gist [-b] [-c] [-h] [-l] [-o] [-s <search string>] [-t <GitHub API token>]'
print 'Options:'
print ' -h Show this help'
print ' -b Open a selected Gist in the Webbrowser'
print ' -c Copy a selected Gist into your clipboard'
print ' -l List all your Gists'
print ' -s <search string> Search for a string in all Gist descriptions'
print ' -t <GitHub API token> Set your GitHub API token to access your Gists'
print '\r'
print 'Legend: ' + textColors().get( 'yellow' ) + 'private Gist' + textColors().end() + ', ' + textColors().get( 'green' ) + 'public Gist' + textColors().end() + ', ' + textColors().get( 'red' ) + 'error' + textColors().end()
class SimpleHTTPError( Exception ):
def __init__( self, code, response ):
response = json.loads( response.decode( 'utf8', 'ignore' ) )
print helpers.textColors().get( 'red' ) + response['message'] + ' (' + str( code ) + ')' + helpers.textColors().end()
sys.exit()
| mit | 7,451,939,604,386,966,000 | 31.757143 | 233 | 0.523768 | false |
lucasa/landell_gst-gengui | sltv/gstmanager/sbinmanager.py | 2 | 1441 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import logging
logger = logging.getLogger('sbinmanager')
class SBinManager(object):
def __init__(self):
self.pipeline_desc = ""
self.check_for_compat = True
def add_sbin(self, element):
if self.check_for_compat and element.type.find("source")!= -1:
if element.sbin.find("tee name=%s_tee" %element.tags[0])!=-1:
logger.info("Adding %s source %s to pipeline" %(element.type, element.description))
self._add_sbin(element.sbin)
else:
oks = 0
for tag in element.tags:
if self.pipeline_desc.find("name=%s_tee" %tag)!=-1:
oks += 1
if not len(element.tags) == oks:
logger.error("Compatible %s source branch not found to fit %s" %(element.type, element.description))
else:
logger.info("Adding branch %s %s to pipeline" %(element.type, element.description))
self._add_sbin(element.sbin)
else:
self._add_sbin(element.sbin)
def add_many(self, *args):
for element in args:
if element is not None:
self.add_sbin(element)
def _add_sbin(self, sbin):
self.pipeline_desc += "%s " %sbin
def get_pipeline(self):
logger.info("Pipeline is:\n%s" %self.pipeline_desc)
| gpl-2.0 | 537,184,325,939,206,140 | 35.025 | 120 | 0.539903 | false |
andrewyoung1991/abjad | abjad/tools/abctools/AbjadObject.py | 1 | 3350 | # -*- encoding: utf-8 -*-
import abc
AbstractBase = abc.ABCMeta(
'AbstractBase',
(),
{
'__metaclass__': abc.ABCMeta,
'__module__': __name__,
'__slots__': (),
},
)
class AbjadObject(AbstractBase):
'''Abstract base class from which many custom classes inherit.
'''
### CLASS VARIABLES ###
__slots__ = ()
### SPECIAL METHODS ###
def __eq__(self, expr):
r'''Is true when ID of `expr` equals ID of Abjad object.
Otherwise false.
Returns boolean.
'''
return id(self) == id(expr)
def __format__(self, format_specification=''):
r'''Formats Abjad object.
Set `format_specification` to `''` or `'storage'`.
Interprets `''` equal to `'storage'`.
Returns string.
'''
from abjad.tools import systemtools
if format_specification in ('', 'storage'):
return systemtools.StorageFormatManager.get_storage_format(self)
return str(self)
def __getstate__(self):
r'''Gets state of Abjad object.
Returns dictionary.
'''
if hasattr(self, '__dict__'):
return vars(self)
state = {}
for class_ in type(self).__mro__:
for slot in getattr(class_, '__slots__', ()):
state[slot] = getattr(self, slot, None)
return state
def __hash__(self):
r'''Hashes Abjad object.
Required to be explicitly re-defined on Python 3 if __eq__ changes.
Returns integer.
'''
return super(AbjadObject, self).__hash__()
def __ne__(self, expr):
r'''Is true when Abjad object does not equal `expr`.
Otherwise false.
Returns boolean.
'''
return not self == expr
def __repr__(self):
r'''Gets interpreter representation of Abjad object.
Returns string.
'''
from abjad.tools import systemtools
return systemtools.StorageFormatManager.get_repr_format(self)
def __setstate__(self, state):
r'''Sets state of Abjad object.
Returns none.
'''
for key, value in state.items():
setattr(self, key, value)
### PRIVATE PROPERTIES ###
@property
def _one_line_menu_summary(self):
return str(self)
@property
def _repr_specification(self):
from abjad.tools.topleveltools import new
return new(
self._storage_format_specification,
is_indented=False,
)
@property
def _storage_format_specification(self):
from abjad.tools import systemtools
return systemtools.StorageFormatSpecification(self)
### PRIVATE METHODS ###
def _debug(self, value, annotation=None, blank=False):
if annotation is None:
print('debug: {!r}'.format(value))
else:
print('debug ({}): {!r}'.format(annotation, value))
if blank:
print('')
def _debug_values(self, values, annotation=None, blank=True):
if values:
for value in values:
self._debug(value, annotation=annotation)
if blank:
print('')
else:
self._debug(repr(values), annotation=annotation)
if blank:
print('') | gpl-3.0 | 3,573,645,687,400,127,000 | 24.580153 | 76 | 0.541791 | false |
ISN-LYSTCHA17/glowing-invention | personnalize.py | 1 | 2940 | # import drawing lib
import pygame
# pygame constants as events' constants
from pygame.locals import *
# game constants
from constants import *
from buttonwimage import ButtonWImage
import glob
import os
import textentry
from button import Button
import shutil
class Personnalize:
def __init__(self, win):
self.running = False
self.win = win
self.dbox = textentry.TextBox(self.win, font=pygame.font.SysFont("arial", 18), sy=22, x=((WIDTH - 120) // 2), y=HEIGHT - 32)
self.btns = []
x, y = 200, 20
i = 0
for folder in sorted(glob.glob("gfx/personnalize/*")):
self.btns.append(ButtonWImage(x, y, 64, 64, folder + "/front.png", (128, 48, 120)))
i += 1
if i == 5:
y = 20
x = WIDTH - 264
else:
y += 74
self.valid_btn = Button((WIDTH - 80) // 2, (HEIGHT - 32), 50, 22, "Valider", (12, 200, 35), pygame.font.SysFont("arial", 18), (0, 0, 0))
self.has_valid = False
self.selected = -1
def load(self):
self.running = True
def update(self):
pass
def render(self):
pygame.draw.rect(self.win, (20, 175, 170), (0, 0) + self.win.get_size())
for btn in self.btns:
btn.render(self.win)
if not self.has_valid:
self.valid_btn.render(self.win)
else:
self.dbox.mainloop()
def create_game(self):
with open("saves/game", "w") as file:
file.write(self.dbox.input)
folder = sorted(glob.glob("gfx/personnalize/*"))[self.selected]
for f in glob.glob(folder + "/*.png"):
if os.path.exists("gfx/player/" + os.path.basename(f)):
os.remove("gfx/player/" + os.path.basename(f))
shutil.copyfile(f, "gfx/player/" + os.path.basename(f))
def run(self):
while self.running:
for ev in pygame.event.get():
if ev.type == QUIT:
self.running = False
elif ev.type == MOUSEBUTTONDOWN:
x, y = pygame.mouse.get_pos()
for i, btn in enumerate(self.btns):
if btn.collide(x, y):
if self.selected != -1:
self.btns[self.selected].color = (128, 48, 120)
self.selected = i
btn.color = (50, 120, 50)
break
if not self.has_valid:
if self.valid_btn.collide(x, y):
self.has_valid = True
if not self.dbox.is_running():
self.create_game()
self.running = False
self.update()
self.render()
pygame.display.flip()
| gpl-3.0 | -7,840,768,914,036,989,000 | 32.186047 | 144 | 0.483333 | false |
eteamin/spell_checker_web_api | scwapi/model/__init__.py | 1 | 2402 | # -*- coding: utf-8 -*-
"""The application's model objects"""
from zope.sqlalchemy import ZopeTransactionExtension
from sqlalchemy.orm import scoped_session, sessionmaker
from sqlalchemy.ext.declarative import declarative_base
# Global session manager: DBSession() returns the Thread-local
# session object appropriate for the current web request.
maker = sessionmaker(autoflush=True, autocommit=False,
extension=ZopeTransactionExtension())
DBSession = scoped_session(maker)
# Base class for all of our model classes: By default, the data model is
# defined with SQLAlchemy's declarative extension, but if you need more
# control, you can switch to the traditional method.
DeclarativeBase = declarative_base()
# There are two convenient ways for you to spare some typing.
# You can have a query property on all your model classes by doing this:
# DeclarativeBase.query = DBSession.query_property()
# Or you can use a session-aware mapper as it was used in TurboGears 1:
# DeclarativeBase = declarative_base(mapper=DBSession.mapper)
# Global metadata.
# The default metadata is the one from the declarative base.
metadata = DeclarativeBase.metadata
# If you have multiple databases with overlapping table names, you'll need a
# metadata for each database. Feel free to rename 'metadata2'.
# from sqlalchemy import MetaData
# metadata2 = MetaData()
#####
# Generally you will not want to define your table's mappers, and data objects
# here in __init__ but will want to create modules them in the model directory
# and import them at the bottom of this file.
######
def init_model(engine):
"""Call me before using any of the tables or classes in the model."""
DBSession.configure(bind=engine)
# If you are using reflection to introspect your database and create
# table objects for you, your tables must be defined and mapped inside
# the init_model function, so that the engine is available if you
# use the model outside tg2, you need to make sure this is called before
# you use the model.
#
# See the following example:
#
# global t_reflected
# t_reflected = Table("Reflected", metadata,
# autoload=True, autoload_with=engine)
# mapper(Reflected, t_reflected)
# Import your model modules here.
from scwapi.model.auth import User, Group, Permission
__all__ = ('User', 'Group', 'Permission')
| gpl-3.0 | 3,821,758,990,012,186,000 | 37.741935 | 78 | 0.735637 | false |
cysuncn/python | spark/crm/PROC_M_MID_PER_ASSETS.py | 1 | 3335 | #coding=UTF-8
from pyspark import SparkContext, SparkConf, SQLContext, Row, HiveContext
from pyspark.sql.types import *
from datetime import date, datetime, timedelta
import sys, re, os
st = datetime.now()
conf = SparkConf().setAppName('PROC_M_MID_PER_ASSETS').setMaster(sys.argv[2])
sc = SparkContext(conf = conf)
sc.setLogLevel('WARN')
if len(sys.argv) > 5:
if sys.argv[5] == "hive":
sqlContext = HiveContext(sc)
else:
sqlContext = SQLContext(sc)
hdfs = sys.argv[3]
dbname = sys.argv[4]
#处理需要使用的日期
etl_date = sys.argv[1]
#etl日期
V_DT = etl_date
#上一日日期
V_DT_LD = (date(int(etl_date[0:4]), int(etl_date[4:6]), int(etl_date[6:8])) + timedelta(-1)).strftime("%Y%m%d")
#月初日期
V_DT_FMD = date(int(etl_date[0:4]), int(etl_date[4:6]), 1).strftime("%Y%m%d")
#上月末日期
V_DT_LMD = (date(int(etl_date[0:4]), int(etl_date[4:6]), 1) + timedelta(-1)).strftime("%Y%m%d")
#10位日期
V_DT10 = (date(int(etl_date[0:4]), int(etl_date[4:6]), int(etl_date[6:8]))).strftime("%Y-%m-%d")
V_STEP = 0
#----------------------------------------------业务逻辑开始----------------------------------------------------------
#源表
TMP_PER_ASSETS_LEND = sqlContext.read.parquet(hdfs+'/TMP_PER_ASSETS_LEND/*')
TMP_PER_ASSETS_LEND.registerTempTable("TMP_PER_ASSETS_LEND")
TMP_PER_ASSETS_INSU = sqlContext.read.parquet(hdfs+'/TMP_PER_ASSETS_INSU/*')
TMP_PER_ASSETS_INSU.registerTempTable("TMP_PER_ASSETS_INSU")
TMP_PER_ASSETS_ACCS = sqlContext.read.parquet(hdfs+'/TMP_PER_ASSETS_ACCS/*')
TMP_PER_ASSETS_ACCS.registerTempTable("TMP_PER_ASSETS_ACCS")
TMP_PER_ASSETS_SAVE = sqlContext.read.parquet(hdfs+'/TMP_PER_ASSETS_SAVE/*')
TMP_PER_ASSETS_SAVE.registerTempTable("TMP_PER_ASSETS_SAVE")
#目标表
#TMP_PER_ASSETS_SUM 全量表
#任务[21] 001-01::
V_STEP = V_STEP + 1
sql = """
SELECT
CUST_ID
,'0' AS PRD_TYP
,SUM(MONTH_BAL) AS MONTH_BAL
,SUM(MONTH_AVG_BAL) AS MONTH_AVG_BAL
,SUM(THREE_MONTH_AVG_BAL) AS THREE_MONTH_AVG_BAL
,SUM(LAST_MONTH_BAL) AS LAST_MONTH_BAL
,SUM(LAST_MONTH_AVG_BAL) AS LAST_MONTH_AVG_BAL
,SUM(LTHREE_MONTH_AVG_BAL) AS LTHREE_MONTH_AVG_BAL
,SUM(YEAR_BAL) AS YEAR_BAL
,SUM(YEAR_AVG_BAL) AS YEAR_AVG_BAL
,SUM(YEAR_THREE_AVG_BAL) AS YEAR_THREE_AVG_BAL
,FR_ID
FROM
(SELECT * FROM TMP_PER_ASSETS_LEND
UNION ALL
SELECT * FROM TMP_PER_ASSETS_INSU
UNION ALL
SELECT * FROM TMP_PER_ASSETS_ACCS
UNION ALL
SELECT * FROM TMP_PER_ASSETS_SAVE
)A
GROUP BY CUST_ID,FR_ID
"""
sql = re.sub(r"\bV_DT\b", "'"+V_DT10+"'", sql)
TMP_PER_ASSETS_SUM = sqlContext.sql(sql)
TMP_PER_ASSETS_SUM.registerTempTable("TMP_PER_ASSETS_SUM")
dfn="TMP_PER_ASSETS_SUM/"+V_DT+".parquet"
TMP_PER_ASSETS_SUM.cache()
nrows = TMP_PER_ASSETS_SUM.count()
TMP_PER_ASSETS_SUM.write.save(path=hdfs + '/' + dfn, mode='overwrite')
TMP_PER_ASSETS_SUM.unpersist()
#全量表,保存后需要删除前一天数据
ret = os.system("hdfs dfs -rm -r /"+dbname+"/TMP_PER_ASSETS_SUM/"+V_DT_LD+".parquet")
et = datetime.now()
print("Step %d start[%s] end[%s] use %d seconds, insert TMP_PER_ASSETS_SUM lines %d") % (V_STEP, st.strftime("%H:%M:%S"), et.strftime("%H:%M:%S"), (et-st).seconds, nrows)
| gpl-3.0 | -6,297,165,228,514,295,000 | 35.123596 | 170 | 0.621462 | false |
evanthebouncy/nnhmm | uai_sushi/script_test_sort.py | 1 | 1245 | from model import *
from draw import *
from naive_baseline import *
from quicksort import *
# ------------- helpers --------------
def get_id_map(start_sort, truth):
ret = dict(zip(start_sort, truth))
return ret
def pred_acc(preds, qry):
num_cor = 0
for i in range(L):
for j in range(L):
if np.argmax(preds[i][j]) == np.argmax(qry((i,j))):
num_cor += 1
return float(num_cor) / L*L
def ord_2_pred(ordr):
ret = np.zeros([L,L,2])
for i in range(L):
for j in range(L):
if ordr.index(i) < ordr.index(j):
ret[i][j] = [1.0, 0.0]
else:
ret[i][j] = [0.0, 1.0]
return ret
num_sort = np.array([0.0 for _ in range(L*L)])
for _ in range(2500):
img, _x = get_img_class(test=True, idx=_)
qry = mk_query(_x)
start_sort = np.random.permutation(L)
id_mapping = get_id_map(range(L), _x)
trace = sorta(start_sort)
print "truth"
print _x
for idx, blah in enumerate(trace):
trace[idx] = map(lambda x: id_mapping[x], blah)
for i in range(L*L):
tr = trace[i] if i < len(trace) else trace[-1]
preds = ord_2_pred(tr)
num_sort[i] += pred_acc(preds, qry)
print num_sort / (_ + 1)
| mit | 8,447,393,334,369,140,000 | 22.490566 | 87 | 0.533333 | false |
cGVuaXM/botcnt | PYodbcutils.py | 1 | 2151 | #https://github.com/mkleehammer/pyodbc/wiki/
import os
import re
import logging
import pyodbc
from openpyxl import Workbook
from openpyxl.styles import Font
class SQLserver:
def __init__(self, params, autocommit=False, searchescape=None, timeout=None):
params_str = r'DRIVER={ODBC Driver 11 for SQL Server};'
params_str += r"SERVER=%s;" % (params["server"])
params_str += r"DATABASE=%s;" % (params["database"])
params_str += r"UID=%s;" % (params["uid"])
params_str += r"PWD=%s;" % (params["pwd"])
params_str += r"APP=%s;" % (params.get("app", None) or "TelegramBot")
self._conn = pypyodbc.connect(params_str, autocommit=autocommit, searchescape=searchescape, timeout=timeout) #mantieni la connessione al db viva
def commit(self):
if not self._conn.autocommit: #ignora se autocommit attivo
self._conn.commit()
return True
else:
return False
def execSQL(self, SQLcommand):
cursor = self._connection.cursor()
try:
cursor.execute(SQLCommand)
except pypyodbc.ProgrammingError:
return 0
return cursor
def _toExcel(self, rows, file_path, sheet2=None):
"""
sheet2 = {
"title": "nome folgio 2",
"A1": "contenuto cella A1"
}
"""
wb = Workbook()
bold_font = Font(color='00FF0000', bold=True)
ws = wb.active #usa il foglio corrente
ws.title("Risultati") #cambia nome foglio
ws.sheet_properties.tabColor = "5BF77D" #colore background foglio (verde)
for row in rows:
ws.append(row)
for cell in ws["1:1"]:
cell.font = bold_font
if sheet2:
ws = wb.create_sheet(sheet2['title']) #foglio con la query
ws.sheet_properties.tabColor = "7BC1ED" #cambia colore background foglio (blu)
ws['A1'] = sheet2['A1'] #scrivi stringa col comando nella prima cella del foglio
wb.save(file_path)
return file_path
def to_excel(self, SQLcommand, file_path):
cursor = execSQL(SQLcommand)
if cursor == 0:
return cursor
columns = [column[0] for column in cursor.description]
rows = []
rows.append(columns)
for row in cursor.fetchall():
rows.append(row)
return self._toExcel(rows, file_path, {"title": "query", "A1": SQLcommand})
| mit | 3,703,125,957,708,237,000 | 25.231707 | 146 | 0.67457 | false |
fp7-netide/Tools | debugger/Core/debugger.py | 1 | 7289 | #!/usr/bin/env python
import zmq
import sys
import time
import binascii
import argparse
import csv
#from scapy.utils import wrpcap
sys.path.insert(0,'../../../Engine/libraries/netip/python/')
sys.path.insert(0,'../../../ryu/ryu/')
from netip import *
from ofproto import ofproto_parser
from ofproto import ofproto_common
from ofproto import ofproto_protocol
from ofproto import ofproto_v1_0_parser
from ofproto import ofproto_v1_2_parser
from ofproto import ofproto_v1_3_parser
from ofproto import ofproto_v1_4_parser
from ofproto import ofproto_v1_5_parser
###################### headers for pcap creation ####################################
#Global header for pcap 2.4
pcap_global_header = ('D4 C3 B2 A1'
'02 00' #File format major revision (i.e. pcap <2>.4)
'04 00' #File format minor revision (i.e. pcap 2.<4>)
'00 00 00 00'
'00 00 00 00'
'FF FF 00 00'
'93 00 00 00') #user_protocol selected, without Ip and tcp headers
#pcap packet header that must preface every packet
pcap_packet_header = ('AA 77 9F 47'
'90 A2 04 00'
'XX XX XX XX' #Frame Size (little endian)
'YY YY YY YY') #Frame Size (little endian)
#netide packet header that must preface every packet
netide_header = ('01' #netide protocol version 1.1
'11' #openflow type
'XX XX' #Frame Size (little endian)
'01 00 00 00' #xid
'00 00 00 00 00 00 00 06') #datapath_id
######################################################################################
###################### PCAP generation ########################################
def getByteLength(str1):
return len(''.join(str1.split())) / 2
# return len(str1)
def generatePCAP(message,i):
msg_len = getByteLength(message)
# netide = netide_header.replace('XX XX',"%04x"%msg_len)
# net_len = getByteLength(netide_header)
# pcap_len = net_len + msg_len
hex_str = "%08x"%msg_len
reverse_hex_str = hex_str[6:] + hex_str[4:6] + hex_str[2:4] + hex_str[:2]
pcaph = pcap_packet_header.replace('XX XX XX XX',reverse_hex_str)
pcaph = pcaph.replace('YY YY YY YY',reverse_hex_str)
if (i==0):
# bytestring = pcap_global_header + pcaph + eth_header + ip + tcp + message
# bytestring = pcap_global_header + pcaph + netide + message
bytestring = pcap_global_header + pcaph + message
else:
# bytestring = pcaph + eth_header + ip + tcp + message
# bytestring = pcaph + netide + message
bytestring = pcaph + message
return bytestring
# writeByteStringToFile(bytestring, pcapfile)
#Splits the string into a list of tokens every n characters
def splitN(str1,n):
return [str1[start:start+n] for start in range(0, len(str1), n)]
def sum_one(i):
return i + 1
##############################################################################
parser = argparse.ArgumentParser(description='Launch the NetIDE debugger')
parser.add_argument('-o', help='Output Folder', default=".")
args = parser.parse_args()
fo = open(args.o+"/results.txt", "w")
bitout = open(args.o+"/results.pcap", 'wb')
csvfile = open(args.o+"/results.card", "w")
fieldnames = ['timestamp', 'origin', 'destination', 'msg', 'length']
#fieldnames = ['timestamp', 'origin', 'destination', 'msg']
writer = csv.DictWriter(csvfile, fieldnames=fieldnames)
writer.writeheader()
# Socket to talk to server
context = zmq.Context()
socket = context.socket(zmq.SUB)
socket.connect("tcp://localhost:5557")
socket.setsockopt(zmq.SUBSCRIBE, "")
i = 0
print('[*] Waiting for logs. To exit press CTRL+C')
while True:
dst_field, src_field, msg = socket.recv_multipart()
t=time.strftime("%H:%M:%S")
dst_field = str(dst_field)
msg_str = str(msg)
src_field = str(src_field)
msg_hexadecimal = binascii.hexlify(msg)
#print(src_field, dst_field)
if src_field.startswith("0_", 0, 2) == True:
origin = src_field[2:]
destination = "core"
elif src_field.startswith("1_", 0, 2) == True:
origin = src_field[2:]
destination = "core"
elif src_field.startswith("2_", 0, 2) == True:
origin = "core"
destination = src_field[2:]
elif src_field.startswith("3_", 0, 2) == True:
origin = "core"
destination = src_field[2:]
#msg_cap = binascii.hexlify(msg)
bytestring = generatePCAP(msg_hexadecimal,i)
i = sum_one(i)
bytelist = bytestring.split()
bytes = binascii.a2b_hex(''.join(bytelist))
bitout.write(bytes)
(netide_version, netide_msg_type, netide_msg_len, netide_xid, netide_mod_id, netide_datapath) = NetIDEOps.netIDE_decode_header(msg)
netide_msg_type_v2 = NetIDEOps.key_by_value(NetIDEOps.NetIDE_type, netide_msg_type)
message_data = msg[NetIDEOps.NetIDE_Header_Size:]
ret = bytearray(message_data)
writer.writerow({'timestamp':t, 'origin':origin, 'destination':destination, 'msg':msg_hexadecimal, 'length':len(ret)})
if len(ret) >= ofproto_common.OFP_HEADER_SIZE:
(version, msg_type, msg_len, xid) = ofproto_parser.header(ret)
msg_decoded = ofproto_parser.msg(netide_datapath, version, msg_type, msg_len, xid, ret)
elif len(ret) < ofproto_common.OFP_HEADER_SIZE:
(version, msg_type, msg_len, xid, msg_decoded) = ("", "", "", "", "")
#if dst_field[2:] == "shim":
#if 'msg_decoded' in locals() or 'msg_decoded' in globals():
print "New message from %r to %r at %r"%(origin, destination, t)
print "\033[1;32mNetIDE header: Version = %r, Type of msg = %r, Length = %r Bytes, XID = %r, Module ID = %r, Datapath = %r\033[1;m"% (netide_version, netide_msg_type_v2, netide_msg_len, netide_xid, netide_mod_id, netide_datapath)
print '\033[1;32mOpenFlow message header: Version = %r, Type of msg = %r, Length = %r Bytes, XID = %r\033[1;m'% (version, msg_type, msg_len, xid)
print '\033[1;32mOpenFlow message: %r \033[1;m'% (msg_decoded)
print "\n"
#writer.writerow({'timestamp':t, 'origin':dst_field, 'destination':src_field, 'msg':msg_hexadecimal, 'length':msg_len})
fo.write("[%r] [%r] [%r] %r \n"% (t, origin, destination, msg_decoded))
#else:
#if 'msg_decoded' in locals() or 'msg_decoded' in globals():
#print "New message from backend %r to %r at %r"%(dst_field, src_field, t)
#print "\033[1;36mNetIDE header: Version = %r, Type of msg = %r, Length = %r Bytes, XID = %r, Module ID = %r, Datapath = %r\033[1;m"% (netide_version, netide_msg_type_v2, netide_msg_len, netide_xid, netide_mod_id, netide_datapath)
#print '\033[1;36mOpenFlow message header: Version = %r, Type of msg = %r, Length = %r Bytes, XID = %r\033[1;m'% (version, msg_type, msg_len, xid)
#print '\033[1;36mOpenFlow message: %r \033[1;m'% (msg_decoded)
#print "\n"
#writer.writerow({'timestamp':t, 'origin':dst_field, 'destination':src_field, 'msg':msg_hexadecimal, 'length':msg_len})
#fo.write("[%r] [%r] %r \n"% (t, dst_field, msg_decoded))
fo.close()
bitout.close()
writer.close() | epl-1.0 | 3,506,970,821,033,415,000 | 39.5 | 236 | 0.594732 | false |
edwatt/REU2014 | usrp_info_and_test.py | 1 | 2853 | #!/usr/bin/env python
"""
Retrieve operating parameters of connected USRP and loop through the operating spectrum trasmitting a constant wave signal
"""
from gnuradio import gr
from gnuradio import analog
from gnuradio import uhd
from time import sleep
MAX_RATE = 1000e6
class build_block(gr.top_block):
def __init__(self):
gr.top_block.__init__(self)
args = "" #only supporting USB USRPs for now
#find uhd devices
d = uhd.find_devices(uhd.device_addr(args))
if d:
uhd_type = d[0].get('type')
print "\nFound '%s'" % uhd_type
else:
print "\nNo device found"
self.u_tx = None
return
#check version of USRP and set num_channels
if uhd_type == "usrp":
tx_nchan = 2
rx_nchan = 2
else:
tx_nchan = 1
rx_nchan = 1
#setup transmit chain (usrp sink, signal source)
#usrp sink
stream_args = uhd.stream_args('fc32', channels = range(tx_nchan))
self.u_tx = uhd.usrp_sink(device_addr=args, stream_args=stream_args)
self.u_tx.set_samp_rate(MAX_RATE)
#analog signal source - sig_source_c(sampling_freq,waveform, wave_freq, ampl, offset=0)
self.tx_src0 = analog.sig_source_c(self.u_tx.get_samp_rate(), analog.GR_CONST_WAVE, 0, 1.0, 0)
#check and output freq range, gain range, num_channels
#gain range and max
tx_gain_range = self.u_tx.get_gain_range()
tx_gain_min = tx_gain_range.start()
tx_gain_max = tx_gain_range.stop()
#freq range
tx_freq_range = self.u_tx.get_freq_range()
tx_freq_low = tx_freq_range.start()
tx_freq_high = tx_freq_range.stop()
tx_freq_mid = (tx_freq_low + tx_freq_high) / 2.0
#output info
print "\nDevice Info"
print "\n\tType: %s" % uhd_type
print "\n\tMin Freq: %d MHz" % (tx_freq_low/1e6)
print "\tMax Freq: %d MHz" % (tx_freq_high/1e6)
print "\tMid Freq: %d MHz" % (tx_freq_mid/1e6)
print "\n\tMin Gain: %d dB" % tx_gain_min
print "\tMax Gain: %d dB" % tx_gain_max
#set initial parameters
for i in xrange(tx_nchan):
self.u_tx.set_center_freq(tx_freq_mid + i*1e6, i)
self.u_tx.set_gain(tx_gain_max, i)
#connect blocks
self.connect(self.tx_src0, self.u_tx)
def main():
try:
tb = build_block()
tb.start()
if tb.u_tx is not None:
print "Transmission test will cycle once through the operating frequencies hopping 10 MHz at a time"
raw_input("Press Enter to begin transmission test & Ctrl-C to exit\n")
start = tb.u_tx.get_freq_range().start()
stop = tb.u_tx.get_freq_range().stop()
freq_hops = int((stop - start) / 10e6) + 1
print "\nTransmit Frequencies:"
channel = 0 #default to first channel
for i in xrange(freq_hops):
trans_freq = start + i * 10e6
tb.u_tx.set_center_freq(trans_freq,channel)
print "\n%d MHz" % (trans_freq/1e6)
sleep(.3)
print "\nTest Over"
tb.stop()
except KeyboardInterrupt:
pass
if __name__ == '__main__':
main()
| gpl-3.0 | 8,491,993,155,991,852,000 | 23.177966 | 122 | 0.654399 | false |
paxos1977/QuickFixLogFixup | QuickFixLogViewer.py | 1 | 52083 | import sublime, sublime_plugin
import re
def multiple_replace(dict, text):
pattern = re.compile("^(%s)\=" % "|".join(map(re.escape, dict.keys())))
lines = text.split("\x01")
newLines = []
for line in lines:
new_line = pattern.sub(lambda match: dict[match.string[match.start():match.end()-1]] + "=", line)
newLines.append(new_line)
return "\n".join(newLines)
class QuickFixLogFixupCommand(sublime_plugin.TextCommand):
""" When run on a QuickFix log, it will split on SOH fields,
then replace field numbers with names.
This makes things much more readable for a human."""
def run(self, edit):
""" Run the plugin"""
#self.view.insert(edit, 0, "Hello, World!")
documentRange = sublime.Region(0, self.view.size())
text = self.view.substr(documentRange)
text = multiple_replace(self.field_map, text)
self.view.replace(edit, documentRange, text)
""" The map of FIX field IDs to string descriptions."""
field_map = {
"1" : "Account"
, "10" : "CheckSum"
, "100" : "ExDestination"
, "1000": "UnderlyingTimeUnit"
, "1001": "LegTimeUnit"
, "1002": "AllocMethod"
, "1003": "TradeID"
, "1005": "SideTradeReportID"
, "1006": "SideFillStationCd"
, "1007": "SideReasonCd"
, "1008": "SideTrdSubTyp"
, "1009": "SideLastQty"
, "1009": "SideQty"
, "1011": "MessageEventSource"
, "1012": "SideTrdRegTimestamp"
, "1013": "SideTrdRegTimestampType"
, "1014": "SideTrdRegTimestampSrc"
, "1015": "AsOfIndicator"
, "1016": "NoSideTrdRegTS"
, "1017": "LegOptionRatio"
, "1018": "NoInstrumentParties"
, "1019": "InstrumentPartyID"
, "102" : "CxlRejReason"
, "1020": "TradeVolume"
, "1021": "MDBookType"
, "1022": "MDFeedType"
, "1023": "MDPriceLevel"
, "1024": "MDOriginType"
, "1025": "FirstPx"
, "1026": "MDEntrySpotRate"
, "1027": "MDEntryForwardPoints"
, "1028": "ManualOrderIndicator"
, "1029": "CustDirectedOrder"
, "103" : "OrdRejReason"
, "1030": "ReceivedDeptID"
, "1031": "CustOrderHandlingInst"
, "1032": "OrderHandlingInstSource"
, "1033": "DeskType"
, "1034": "DeskTypeSource"
, "1035": "DeskOrderHandlingInst"
, "1036": "ExecAckStatus"
, "1037": "UnderlyingDeliveryAmount"
, "1038": "UnderlyingCapValue"
, "1039": "UnderlyingSettlMethod"
, "104" : "IOIQualifier"
, "1040": "SecondaryTradeID"
, "1041": "FirmTradeID"
, "1042": "SecondaryFirmTradeID"
, "1043": "CollApplType"
, "1044": "UnderlyingAdjustedQuantity"
, "1045": "UnderlyingFXRate"
, "1046": "UnderlyingFXRateCalc"
, "1047": "AllocPositionEffect"
, "1048": "DealingCapacity"
, "1049": "InstrmtAssignmentMethod"
, "105" : "WaveNo"
, "1050": "InstrumentPartyIDSource"
, "1051": "InstrumentPartyRole"
, "1052": "NoInstrumentPartySubIDs"
, "1053": "InstrumentPartySubID"
, "1054": "InstrumentPartySubIDType"
, "1055": "PositionCurrency"
, "1056": "CalculatedCcyLastQty"
, "1057": "AggressorIndicator"
, "1058": "NoUndlyInstrumentParties"
, "1059": "UnderlyingInstrumentPartyID"
, "1059": "UndlyInstrumentPartyID"
, "106" : "Issuer"
, "1060": "UnderlyingInstrumentPartyIDSource"
, "1060": "UndlyInstrumentPartyIDSource"
, "1061": "UnderlyingInstrumentPartyRole"
, "1061": "UndlyInstrumentPartyRole"
, "1062": "NoUndlyInstrumentPartySubIDs"
, "1063": "UnderlyingInstrumentPartySubID"
, "1063": "UndlyInstrumentPartySubID"
, "1064": "UnderlyingInstrumentPartySubIDType"
, "1064": "UndlyInstrumentPartySubIDType"
, "1065": "BidSwapPoints"
, "1066": "OfferSwapPoints"
, "1067": "LegBidForwardPoints"
, "1068": "LegOfferForwardPoints"
, "1069": "SwapPoints"
, "107" : "SecurityDesc"
, "1070": "MDQuoteType"
, "1071": "LastSwapPoints"
, "1072": "SideGrossTradeAmt"
, "1073": "LegLastForwardPoints"
, "1074": "LegCalculatedCcyLastQty"
, "1075": "LegGrossTradeAmt"
, "1079": "MaturityTime"
, "108" : "HeartBtInt"
, "1080": "RefOrderID"
, "1081": "RefOrderIDSource"
, "1082": "SecondaryDisplayQty"
, "1083": "DisplayWhen"
, "1084": "DisplayMethod"
, "1085": "DisplayLowQty"
, "1086": "DisplayHighQty"
, "1087": "DisplayMinIncr"
, "1088": "RefreshQty"
, "1089": "MatchIncrement"
, "109" : "ClientID"
, "1090": "MaxPriceLevels"
, "1091": "PreTradeAnonymity"
, "1092": "PriceProtectionScope"
, "1093": "LotType"
, "1094": "PegPriceType"
, "1095": "PeggedRefPrice"
, "1096": "PegSecurityIDSource"
, "1097": "PegSecurityID"
, "1098": "PegSymbol"
, "1099": "PegSecurityDesc"
, "11" : "ClOrdID"
, "110" : "MinQty"
, "1100": "TriggerType"
, "1101": "TriggerAction"
, "1102": "TriggerPrice"
, "1103": "TriggerSymbol"
, "1104": "TriggerSecurityID"
, "1105": "TriggerSecurityIDSource"
, "1106": "TriggerSecurityDesc"
, "1107": "TriggerPriceType"
, "1108": "TriggerPriceTypeScope"
, "1109": "TriggerPriceDirection"
, "111" : "MaxFloor"
, "1110": "TriggerNewPrice"
, "1111": "TriggerOrderType"
, "1112": "TriggerNewQty"
, "1113": "TriggerTradingSessionID"
, "1114": "TriggerTradingSessionSubID"
, "1115": "OrderCategory"
, "1116": "NoRootPartyIDs"
, "1117": "RootPartyID"
, "1118": "RootPartyIDSource"
, "1119": "RootPartyRole"
, "112" : "TestReqID"
, "1120": "NoRootPartySubIDs"
, "1121": "RootPartySubID"
, "1122": "RootPartySubIDType"
, "1123": "TradeHandlingInstr"
, "1124": "OrigTradeHandlingInstr"
, "1125": "OrigTradeDate"
, "1126": "OrigTradeID"
, "1127": "OrigSecondaryTradeID"
, "1128": "ApplVerID"
, "1129": "CstmApplVerID"
, "113" : "ReportToExch"
, "1130": "RefApplVerID"
, "1131": "RefCstmApplVerID"
, "1132": "TZTransactTime"
, "1133": "ExDestinationIDSource"
, "1134": "ReportedPxDiff"
, "1135": "RptSys"
, "1136": "AllocClearingFeeIndicator"
, "1137": "DefaultApplVerID"
, "1138": "DisplayQty"
, "1139": "ExchangeSpecialInstructions"
, "114" : "LocateReqd"
, "1140": "MaxTradeVol"
, "1141": "NoMDFeedTypes"
, "1142": "MatchAlgorithm"
, "1143": "MaxPriceVariation"
, "1144": "ImpliedMarketIndicator"
, "1145": "EventTime"
, "1146": "MinPriceIncrementAmount"
, "1147": "UnitOfMeasureQty"
, "1148": "LowLimitPrice"
, "1149": "HighLimitPrice"
, "115" : "OnBehalfOfCompID"
, "1150": "TradingReferencePrice"
, "1151": "SecurityGroup"
, "1152": "LegNumber"
, "1153": "SettlementCycleNo"
, "1154": "SideCurrency"
, "1155": "SideSettlCurrency"
, "1156": "ApplExtID"
, "1157": "CcyAmt"
, "1158": "NoSettlDetails"
, "1159": "SettlObligMode"
, "116" : "OnBehalfOfSubID"
, "1160": "SettlObligMsgID"
, "1161": "SettlObligID"
, "1162": "SettlObligTransType"
, "1163": "SettlObligRefID"
, "1164": "SettlObligSource"
, "1165": "NoSettlOblig"
, "1166": "QuoteMsgID"
, "1167": "QuoteEntryStatus"
, "1168": "TotNoCxldQuotes"
, "1169": "TotNoAccQuotes"
, "117" : "QuoteID"
, "1170": "TotNoRejQuotes"
, "1171": "PrivateQuote"
, "1172": "RespondentType"
, "1173": "MDSubBookType"
, "1174": "SecurityTradingEvent"
, "1175": "NoStatsIndicators"
, "1176": "StatsType"
, "1177": "NoOfSecSizes"
, "1178": "MDSecSizeType"
, "1179": "MDSecSize"
, "118" : "NetMoney"
, "1180": "ApplID"
, "1181": "ApplSeqNum"
, "1182": "ApplBegSeqNum"
, "1183": "ApplEndSeqNum"
, "1184": "SecurityXMLLen"
, "1185": "SecurityXML"
, "1186": "SecurityXMLSchema"
, "1187": "RefreshIndicator"
, "1188": "Volatility"
, "1189": "TimeToExpiration"
, "119" : "SettlCurrAmt"
, "1190": "RiskFreeRate"
, "1191": "PriceUnitOfMeasure"
, "1192": "PriceUnitOfMeasureQty"
, "1193": "SettlMethod"
, "1194": "ExerciseStyle"
, "1195": "OptPayAmount"
, "1195": "OptPayoutAmount"
, "1196": "PriceQuoteMethod"
, "1197": "FuturesValuationMethod"
, "1197": "ValuationMethod"
, "1198": "ListMethod"
, "1199": "CapPrice"
, "12" : "Commission"
, "120" : "SettlCurrency"
, "1200": "FloorPrice"
, "1201": "NoStrikeRules"
, "1202": "StartStrikePxRange"
, "1203": "EndStrikePxRange"
, "1204": "StrikeIncrement"
, "1205": "NoTickRules"
, "1206": "StartTickPriceRange"
, "1207": "EndTickPriceRange"
, "1208": "TickIncrement"
, "1209": "TickRuleType"
, "121" : "ForexReq"
, "1210": "NestedInstrAttribType"
, "1211": "NestedInstrAttribValue"
, "1212": "LegMaturityTime"
, "1213": "UnderlyingMaturityTime"
, "1214": "DerivativeSymbol"
, "1215": "DerivativeSymbolSfx"
, "1216": "DerivativeSecurityID"
, "1217": "DerivativeSecurityIDSource"
, "1218": "NoDerivativeSecurityAltID"
, "1219": "DerivativeSecurityAltID"
, "122" : "OrigSendingTime"
, "1220": "DerivativeSecurityAltIDSource"
, "1221": "SecondaryLowLimitPrice"
, "1222": "MaturityRuleID"
, "1223": "StrikeRuleID"
, "1224": "LegUnitOfMeasureQty"
, "1225": "DerivativeOptPayAmount"
, "1226": "EndMaturityMonthYear"
, "1227": "ProductComplex"
, "1228": "DerivativeProductComplex"
, "1229": "MaturityMonthYearIncrement"
, "123" : "GapFillFlag"
, "1230": "SecondaryHighLimitPrice"
, "1231": "MinLotSize"
, "1232": "NoExecInstRules"
, "1234": "NoLotTypeRules"
, "1235": "NoMatchRules"
, "1236": "NoMaturityRules"
, "1237": "NoOrdTypeRules"
, "1239": "NoTimeInForceRules"
, "124" : "NoExecs"
, "1240": "SecondaryTradingReferencePrice"
, "1241": "StartMaturityMonthYear"
, "1242": "FlexProductEligibilityIndicator"
, "1243": "DerivFlexProductEligibilityIndicator"
, "1244": "FlexibleIndicator"
, "1245": "TradingCurrency"
, "1246": "DerivativeProduct"
, "1247": "DerivativeSecurityGroup"
, "1248": "DerivativeCFICode"
, "1249": "DerivativeSecurityType"
, "125" : "CxlType"
, "1250": "DerivativeSecuritySubType"
, "1251": "DerivativeMaturityMonthYear"
, "1252": "DerivativeMaturityDate"
, "1253": "DerivativeMaturityTime"
, "1254": "DerivativeSettleOnOpenFlag"
, "1255": "DerivativeInstrmtAssignmentMethod"
, "1256": "DerivativeSecurityStatus"
, "1257": "DerivativeInstrRegistry"
, "1258": "DerivativeCountryOfIssue"
, "1259": "DerivativeStateOrProvinceOfIssue"
, "126" : "ExpireTime"
, "1260": "DerivativeLocaleOfIssue"
, "1261": "DerivativeStrikePrice"
, "1262": "DerivativeStrikeCurrency"
, "1263": "DerivativeStrikeMultiplier"
, "1264": "DerivativeStrikeValue"
, "1265": "DerivativeOptAttribute"
, "1266": "DerivativeContractMultiplier"
, "1267": "DerivativeMinPriceIncrement"
, "1268": "DerivativeMinPriceIncrementAmount"
, "1269": "DerivativeUnitOfMeasure"
, "127" : "DKReason"
, "1270": "DerivativeUnitOfMeasureQty"
, "1271": "DerivativeTimeUnit"
, "1272": "DerivativeSecurityExchange"
, "1273": "DerivativePositionLimit"
, "1274": "DerivativeNTPositionLimit"
, "1275": "DerivativeIssuer"
, "1276": "DerivativeIssueDate"
, "1277": "DerivativeEncodedIssuerLen"
, "1278": "DerivativeEncodedIssuer"
, "1279": "DerivativeSecurityDesc"
, "128" : "DeliverToCompID"
, "1280": "DerivativeEncodedSecurityDescLen"
, "1281": "DerivativeEncodedSecurityDesc"
, "1282": "DerivativeSecurityXMLLen"
, "1283": "DerivativeSecurityXML"
, "1284": "DerivativeSecurityXMLSchema"
, "1285": "DerivativeContractSettlMonth"
, "1286": "NoDerivativeEvents"
, "1287": "DerivativeEventType"
, "1288": "DerivativeEventDate"
, "1289": "DerivativeEventTime"
, "129" : "DeliverToSubID"
, "1290": "DerivativeEventPx"
, "1291": "DerivativeEventText"
, "1292": "NoDerivativeInstrumentParties"
, "1293": "DerivativeInstrumentPartyID"
, "1294": "DerivativeInstrumentPartyIDSource"
, "1295": "DerivativeInstrumentPartyRole"
, "1296": "NoDerivativeInstrumentPartySubIDs"
, "1297": "DerivativeInstrumentPartySubID"
, "1298": "DerivativeInstrumentPartySubIDType"
, "1299": "DerivativeExerciseStyle"
, "13" : "CommType"
, "130" : "IOINaturalFlag"
, "1300": "MarketSegmentID"
, "1301": "MarketID"
, "1302": "MaturityMonthYearIncrementUnits"
, "1303": "MaturityMonthYearFormat"
, "1304": "StrikeExerciseStyle"
, "1305": "SecondaryPriceLimitType"
, "1306": "PriceLimitType"
, "1307": "DerivativeSecurityListRequestType"
, "1308": "ExecInstValue"
, "1309": "NoTradingSessionRules"
, "131" : "QuoteReqID"
, "1310": "NoMarketSegments"
, "1311": "NoDerivativeInstrAttrib"
, "1312": "NoNestedInstrAttrib"
, "1313": "DerivativeInstrAttribType"
, "1314": "DerivativeInstrAttribValue"
, "1315": "DerivativePriceUnitOfMeasure"
, "1316": "DerivativePriceUnitOfMeasureQty"
, "1317": "DerivativeSettlMethod"
, "1318": "DerivativePriceQuoteMethod"
, "1319": "DerivativeFuturesValuationMethod"
, "1319": "DerivativeValuationMethod"
, "132" : "BidPx"
, "1320": "DerivativeListMethod"
, "1321": "DerivativeCapPrice"
, "1322": "DerivativeFloorPrice"
, "1323": "DerivativePutOrCall"
, "1324": "ListUpdateAction"
, "1325": "ParentMktSegmID"
, "1326": "TradingSessionDesc"
, "1327": "TradSesUpdateAction"
, "1328": "RejectText"
, "1329": "FeeMultiplier"
, "133" : "OfferPx"
, "1330": "UnderlyingLegSymbol"
, "1331": "UnderlyingLegSymbolSfx"
, "1332": "UnderlyingLegSecurityID"
, "1333": "UnderlyingLegSecurityIDSource"
, "1334": "NoUnderlyingLegSecurityAltID"
, "1335": "UnderlyingLegSecurityAltID"
, "1336": "UnderlyingLegSecurityAltIDSource"
, "1337": "UnderlyingLegSecurityType"
, "1338": "UnderlyingLegSecuritySubType"
, "1339": "UnderlyingLegMaturityMonthYear"
, "134" : "BidSize"
, "1340": "UnderlyingLegStrikePrice"
, "1341": "UnderlyingLegSecurityExchange"
, "1342": "NoOfLegUnderlyings"
, "1343": "UnderlyingLegPutOrCall"
, "1344": "UnderlyingLegCFICode"
, "1345": "UnderlyingLegMaturityDate"
, "1346": "ApplReqID"
, "1347": "ApplReqType"
, "1348": "ApplResponseType"
, "1349": "ApplTotalMessageCount"
, "135" : "OfferSize"
, "1350": "ApplLastSeqNum"
, "1351": "NoApplIDs"
, "1352": "ApplResendFlag"
, "1353": "ApplResponseID"
, "1354": "ApplResponseError"
, "1355": "RefApplID"
, "1356": "ApplReportID"
, "1357": "RefApplLastSeqNum"
, "1358": "LegPutOrCall"
, "1359": "EncodedSymbolLen"
, "136" : "NoMiscFees"
, "1360": "EncodedSymbol"
, "1361": "TotNoFills"
, "1362": "NoFills"
, "1363": "FillExecID"
, "1364": "FillPx"
, "1365": "FillQty"
, "1366": "LegAllocID"
, "1367": "LegAllocSettlCurrency"
, "1368": "TradSesEvent"
, "1369": "MassActionReportID"
, "137" : "MiscFeeAmt"
, "1370": "NoNotAffectedOrders"
, "1371": "NotAffectedOrderID"
, "1372": "NotAffOrigClOrdID"
, "1373": "MassActionType"
, "1374": "MassActionScope"
, "1375": "MassActionResponse"
, "1376": "MassActionRejectReason"
, "1377": "MultilegModel"
, "1378": "MultilegPriceMethod"
, "1379": "LegVolatility"
, "138" : "MiscFeeCurr"
, "1380": "DividendYield"
, "1381": "LegDividendYield"
, "1382": "CurrencyRatio"
, "1383": "LegCurrencyRatio"
, "1384": "LegExecInst"
, "1385": "ContingencyType"
, "1386": "ListRejectReason"
, "1387": "NoTrdRepIndicators"
, "1388": "TrdRepPartyRole"
, "1389": "TrdRepIndicator"
, "139" : "MiscFeeType"
, "1390": "TradePublishIndicator"
, "1391": "UnderlyingLegOptAttribute"
, "1392": "UnderlyingLegSecurityDesc"
, "1393": "MarketReqID"
, "1394": "MarketReportID"
, "1395": "MarketUpdateAction"
, "1396": "MarketSegmentDesc"
, "1397": "EncodedMktSegmDescLen"
, "1398": "EncodedMktSegmDesc"
, "1399": "ApplNewSeqNum"
, "14" : "CumQty"
, "140" : "PrevClosePx"
, "1400": "EncryptedPasswordMethod"
, "1401": "EncryptedPasswordLen"
, "1402": "EncryptedPassword"
, "1403": "EncryptedNewPasswordLen"
, "1404": "EncryptedNewPassword"
, "1405": "UnderlyingLegMaturityTime"
, "1406": "RefApplExtID"
, "1407": "DefaultApplExtID"
, "1408": "DefaultCstmApplVerID"
, "1409": "SessionStatus"
, "141" : "ResetSeqNumFlag"
, "1410": "DefaultVerIndicator"
, "1411": "Nested4PartySubIDType"
, "1412": "Nested4PartySubID"
, "1413": "NoNested4PartySubIDs"
, "1414": "NoNested4PartyIDs"
, "1415": "Nested4PartyID"
, "1416": "Nested4PartyIDSource"
, "1417": "Nested4PartyRole"
, "1418": "LegLastQty"
, "1419": "UnderlyingExerciseStyle"
, "142" : "SenderLocationID"
, "1420": "LegExerciseStyle"
, "1421": "LegPriceUnitOfMeasure"
, "1422": "LegPriceUnitOfMeasureQty"
, "1423": "UnderlyingUnitOfMeasureQty"
, "1424": "UnderlyingPriceUnitOfMeasure"
, "1425": "UnderlyingPriceUnitOfMeasureQty"
, "1426": "ApplReportType"
, "1427": "SideExecID"
, "1428": "OrderDelay"
, "1429": "OrderDelayUnit"
, "143" : "TargetLocationID"
, "1430": "VenueType"
, "1431": "RefOrdIDReason"
, "1432": "OrigCustOrderCapacity"
, "1433": "RefApplReqID"
, "1434": "ModelType"
, "1435": "ContractMultiplierUnit"
, "1436": "LegContractMultiplierUnit"
, "1437": "UnderlyingContractMultiplierUnit"
, "1438": "DerivativeContractMultiplierUnit"
, "1439": "FlowScheduleType"
, "144" : "OnBehalfOfLocationID"
, "1440": "LegFlowScheduleType"
, "1441": "UnderlyingFlowScheduleType"
, "1442": "DerivativeFlowScheduleType"
, "1443": "FillLiquidityInd"
, "1444": "SideLiquidityInd"
, "1445": "NoRateSources"
, "1446": "RateSource"
, "1447": "RateSourceType"
, "1448": "ReferencePage"
, "1449": "RestructuringType"
, "145" : "DeliverToLocationID"
, "1450": "Seniority"
, "1451": "NotionalPercentageOutstanding"
, "1452": "OriginalNotionalPercentageOutstanding"
, "1453": "UnderlyingRestructuringType"
, "1454": "UnderlyingSeniority"
, "1455": "UnderlyingNotionalPercentageOutstanding"
, "1456": "UnderlyingOriginalNotionalPercentageOutstanding"
, "1457": "AttachmentPoint"
, "1458": "DetachmentPoint"
, "1459": "UnderlyingAttachmentPoint"
, "146" : "NoRelatedSym"
, "1460": "UnderlyingDetachmentPoint"
, "1461": "NoTargetPartyIDs"
, "1462": "TargetPartyID"
, "1463": "TargetPartyIDSource"
, "1464": "TargetPartyRole"
, "1465": "SecurityListID"
, "1466": "SecurityListRefID"
, "1467": "SecurityListDesc"
, "1468": "EncodedSecurityListDescLen"
, "1469": "EncodedSecurityListDesc"
, "147" : "Subject"
, "1470": "SecurityListType"
, "1471": "SecurityListTypeSource"
, "1472": "NewsID"
, "1473": "NewsCategory"
, "1474": "LanguageCode"
, "1475": "NoNewsRefIDs"
, "1476": "NewsRefID"
, "1477": "NewsRefType"
, "1478": "StrikePriceDeterminationMethod"
, "1479": "StrikePriceBoundaryMethod"
, "148" : "Headline"
, "1480": "StrikePriceBoundaryPrecision"
, "1481": "UnderlyingPriceDeterminationMethod"
, "1482": "OptPayoutType"
, "1483": "NoComplexEvents"
, "1484": "ComplexEventType"
, "1485": "ComplexOptPayoutAmount"
, "1486": "ComplexEventPrice"
, "1487": "ComplexEventPriceBoundaryMethod"
, "1488": "ComplexEventPriceBoundaryPrecision"
, "1489": "ComplexEventPriceTimeType"
, "149" : "URLLink"
, "1490": "ComplexEventCondition"
, "1491": "NoComplexEventDates"
, "1492": "ComplexEventStartDate"
, "1493": "ComplexEventEndDate"
, "1494": "NoComplexEventTimes"
, "1495": "ComplexEventStartTime"
, "1496": "ComplexEventEndTime"
, "1497": "StreamAsgnReqID"
, "1498": "StreamAsgnReqType"
, "1499": "NoAsgnReqs"
, "15" : "Currency"
, "150" : "ExecType"
, "1500": "MDStreamID"
, "1501": "StreamAsgnRptID"
, "1502": "StreamAsgnRejReason"
, "1503": "StreamAsgnAckType"
, "1504": "RelSymTransactTime"
, "1505": "PartyDetailsListRequestID"
, "1506": "NoPartyListResponseTypes"
, "1507": "PartyListResponseType"
, "1508": "NoRequestedPartyRoles"
, "1509": "RequestedPartyRole"
, "151" : "LeavesQty"
, "1510": "PartyDetailsListReportID"
, "1511": "PartyDetailsRequestResult"
, "1512": "TotNoPartyList"
, "1513": "NoPartyList"
, "1514": "NoPartyRelationships"
, "1515": "PartyRelationship"
, "1516": "NoPartyAltIDs"
, "1517": "PartyAltID"
, "1518": "PartyAltIDSource"
, "1519": "NoPartyAltSubIDs"
, "152" : "CashOrderQty"
, "1520": "PartyAltSubID"
, "1521": "PartyAltSubIDType"
, "1522": "NoContextPartyIDs"
, "1523": "ContextPartyID"
, "1524": "ContextPartyIDSource"
, "1525": "ContextPartyRole"
, "1526": "NoContextPartySubIDs"
, "1527": "ContextPartySubID"
, "1528": "ContextPartySubIDType"
, "1529": "NoRiskLimits"
, "153" : "AllocAvgPx"
, "1530": "RiskLimitType"
, "1531": "RiskLimitAmount"
, "1532": "RiskLimitCurrency"
, "1533": "RiskLimitPlatform"
, "1534": "NoRiskInstruments"
, "1535": "RiskInstrumentOperator"
, "1536": "RiskSymbol"
, "1537": "RiskSymbolSfx"
, "1538": "RiskSecurityID"
, "1539": "RiskSecurityIDSource"
, "154" : "AllocNetMoney"
, "1540": "NoRiskSecurityAltID"
, "1541": "RiskSecurityAltID"
, "1542": "RiskSecurityAltIDSource"
, "1543": "RiskProduct"
, "1544": "RiskProductComplex"
, "1545": "RiskSecurityGroup"
, "1546": "RiskCFICode"
, "1547": "RiskSecurityType"
, "1548": "RiskSecuritySubType"
, "1549": "RiskMaturityMonthYear"
, "155" : "SettlCurrFxRate"
, "1550": "RiskMaturityTime"
, "1551": "RiskRestructuringType"
, "1552": "RiskSeniority"
, "1553": "RiskPutOrCall"
, "1554": "RiskFlexibleIndicator"
, "1555": "RiskCouponRate"
, "1556": "RiskSecurityDesc"
, "1557": "RiskInstrumentSettlType"
, "1558": "RiskInstrumentMultiplier"
, "1559": "NoRiskWarningLevels"
, "156" : "SettlCurrFxRateCalc"
, "1560": "RiskWarningLevelPercent"
, "1561": "RiskWarningLevelName"
, "1562": "NoRelatedPartyIDs"
, "1563": "RelatedPartyID"
, "1564": "RelatedPartyIDSource"
, "1565": "RelatedPartyRole"
, "1566": "NoRelatedPartySubIDs"
, "1567": "RelatedPartySubID"
, "1568": "RelatedPartySubIDType"
, "1569": "NoRelatedPartyAltIDs"
, "157" : "NumDaysInterest"
, "1570": "RelatedPartyAltID"
, "1571": "RelatedPartyAltIDSource"
, "1572": "NoRelatedPartyAltSubIDs"
, "1573": "RelatedPartyAltSubID"
, "1574": "RelatedPartyAltSubIDType"
, "1575": "NoRelatedContextPartyIDs"
, "1576": "RelatedContextPartyID"
, "1577": "RelatedContextPartyIDSource"
, "1578": "RelatedContextPartyRole"
, "1579": "NoRelatedContextPartySubIDs"
, "158" : "AccruedInterestRate"
, "1580": "RelatedContextPartySubID"
, "1581": "RelatedContextPartySubIDType"
, "1582": "NoRelationshipRiskLimits"
, "1583": "RelationshipRiskLimitType"
, "1584": "RelationshipRiskLimitAmount"
, "1585": "RelationshipRiskLimitCurrency"
, "1586": "RelationshipRiskLimitPlatform"
, "1587": "NoRelationshipRiskInstruments"
, "1588": "RelationshipRiskInstrumentOperator"
, "1589": "RelationshipRiskSymbol"
, "159" : "AccruedInterestAmt"
, "1590": "RelationshipRiskSymbolSfx"
, "1591": "RelationshipRiskSecurityID"
, "1592": "RelationshipRiskSecurityIDSource"
, "1593": "NoRelationshipRiskSecurityAltID"
, "1594": "RelationshipRiskSecurityAltID"
, "1595": "RelationshipRiskSecurityAltIDSource"
, "1596": "RelationshipRiskProduct"
, "1597": "RelationshipRiskProductComplex"
, "1598": "RelationshipRiskSecurityGroup"
, "1599": "RelationshipRiskCFICode"
, "16" : "EndSeqNo"
, "160" : "SettlInstMode"
, "1600": "RelationshipRiskSecurityType"
, "1601": "RelationshipRiskSecuritySubType"
, "1602": "RelationshipRiskMaturityMonthYear"
, "1603": "RelationshipRiskMaturityTime"
, "1604": "RelationshipRiskRestructuringType"
, "1605": "RelationshipRiskSeniority"
, "1606": "RelationshipRiskPutOrCall"
, "1607": "RelationshipRiskFlexibleIndicator"
, "1608": "RelationshipRiskCouponRate"
, "1609": "RelationshipRiskSecurityExchange"
, "161" : "AllocText"
, "1610": "RelationshipRiskSecurityDesc"
, "1611": "RelationshipRiskInstrumentSettlType"
, "1612": "RelationshipRiskInstrumentMultiplier"
, "1613": "NoRelationshipRiskWarningLevels"
, "1614": "RelationshipRiskWarningLevelPercent"
, "1615": "RelationshipRiskWarningLevelName"
, "1616": "RiskSecurityExchange"
, "1617": "StreamAsgnType"
, "1618": "RelationshipRiskEncodedSecurityDescLen"
, "1619": "RelationshipRiskEncodedSecurityDesc"
, "162" : "SettlInstID"
, "1620": "RiskEncodedSecurityDescLen"
, "1621": "RiskEncodedSecurityDesc"
, "163" : "SettlInstTransType"
, "164" : "EmailThreadID"
, "165" : "SettlInstSource"
, "166" : "SettlLocation"
, "167" : "SecurityType"
, "168" : "EffectiveTime"
, "169" : "StandInstDbType"
, "17" : "ExecID"
, "170" : "StandInstDbName"
, "171" : "StandInstDbID"
, "172" : "SettlDeliveryType"
, "173" : "SettlDepositoryCode"
, "174" : "SettlBrkrCode"
, "175" : "SettlInstCode"
, "176" : "SecuritySettlAgentName"
, "177" : "SecuritySettlAgentCode"
, "178" : "SecuritySettlAgentAcctNum"
, "179" : "SecuritySettlAgentAcctName"
, "18" : "ExecInst"
, "180" : "SecuritySettlAgentContactName"
, "181" : "SecuritySettlAgentContactPhone"
, "182" : "CashSettlAgentName"
, "183" : "CashSettlAgentCode"
, "184" : "CashSettlAgentAcctNum"
, "185" : "CashSettlAgentAcctName"
, "186" : "CashSettlAgentContactName"
, "187" : "CashSettlAgentContactPhone"
, "188" : "BidSpotRate"
, "189" : "BidForwardPoints"
, "19" : "ExecRefID"
, "190" : "OfferSpotRate"
, "191" : "OfferForwardPoints"
, "192" : "OrderQty2"
, "193" : "FutSettDate2"
, "193" : "SettlDate2"
, "194" : "LastSpotRate"
, "195" : "LastForwardPoints"
, "196" : "AllocLinkID"
, "197" : "AllocLinkType"
, "198" : "SecondaryOrderID"
, "199" : "NoIOIQualifiers"
, "2" : "AdvId"
, "20" : "ExecTransType"
, "200" : "MaturityMonthYear"
, "201" : "PutOrCall"
, "202" : "StrikePrice"
, "203" : "CoveredOrUncovered"
, "204" : "CustomerOrFirm"
, "205" : "MaturityDay"
, "206" : "OptAttribute"
, "207" : "SecurityExchange"
, "208" : "NotifyBrokerOfCredit"
, "209" : "AllocHandlInst"
, "21" : "HandlInst"
, "210" : "MaxShow"
, "211" : "PegDifference"
, "211" : "PegOffsetValue"
, "212" : "XmlDataLen"
, "213" : "XmlData"
, "214" : "SettlInstRefID"
, "215" : "NoRoutingIDs"
, "216" : "RoutingType"
, "217" : "RoutingID"
, "218" : "Spread"
, "218" : "SpreadToBenchmark"
, "219" : "Benchmark"
, "22" : "IDSource"
, "22" : "SecurityIDSource"
, "220" : "BenchmarkCurveCurrency"
, "221" : "BenchmarkCurveName"
, "222" : "BenchmarkCurvePoint"
, "223" : "CouponRate"
, "224" : "CouponPaymentDate"
, "225" : "IssueDate"
, "226" : "RepurchaseTerm"
, "227" : "RepurchaseRate"
, "228" : "Factor"
, "229" : "TradeOriginationDate"
, "23" : "IOIid"
, "23" : "IOIID"
, "230" : "ExDate"
, "231" : "ContractMultiplier"
, "232" : "NoStipulations"
, "233" : "StipulationType"
, "234" : "StipulationValue"
, "235" : "YieldType"
, "236" : "Yield"
, "237" : "TotalTakedown"
, "238" : "Concession"
, "239" : "RepoCollateralSecurityType"
, "24" : "IOIOthSvc"
, "240" : "RedemptionDate"
, "241" : "UnderlyingCouponPaymentDate"
, "242" : "UnderlyingIssueDate"
, "243" : "UnderlyingRepoCollateralSecurityType"
, "244" : "UnderlyingRepurchaseTerm"
, "245" : "UnderlyingRepurchaseRate"
, "246" : "UnderlyingFactor"
, "247" : "UnderlyingRedemptionDate"
, "248" : "LegCouponPaymentDate"
, "249" : "LegIssueDate"
, "25" : "IOIQltyInd"
, "250" : "LegRepoCollateralSecurityType"
, "251" : "LegRepurchaseTerm"
, "252" : "LegRepurchaseRate"
, "253" : "LegFactor"
, "254" : "LegRedemptionDate"
, "255" : "CreditRating"
, "256" : "UnderlyingCreditRating"
, "257" : "LegCreditRating"
, "258" : "TradedFlatSwitch"
, "259" : "BasisFeatureDate"
, "26" : "IOIRefID"
, "260" : "BasisFeaturePrice"
, "262" : "MDReqID"
, "263" : "SubscriptionRequestType"
, "264" : "MarketDepth"
, "265" : "MDUpdateType"
, "266" : "AggregatedBook"
, "267" : "NoMDEntryTypes"
, "268" : "NoMDEntries"
, "269" : "MDEntryType"
, "27" : "IOIQty"
, "27" : "IOIShares"
, "270" : "MDEntryPx"
, "271" : "MDEntrySize"
, "272" : "MDEntryDate"
, "273" : "MDEntryTime"
, "274" : "TickDirection"
, "275" : "MDMkt"
, "276" : "QuoteCondition"
, "277" : "TradeCondition"
, "278" : "MDEntryID"
, "279" : "MDUpdateAction"
, "28" : "IOITransType"
, "280" : "MDEntryRefID"
, "281" : "MDReqRejReason"
, "282" : "MDEntryOriginator"
, "283" : "LocationID"
, "284" : "DeskID"
, "285" : "DeleteReason"
, "286" : "OpenCloseSettleFlag"
, "286" : "OpenCloseSettlFlag"
, "287" : "SellerDays"
, "288" : "MDEntryBuyer"
, "289" : "MDEntrySeller"
, "29" : "LastCapacity"
, "290" : "MDEntryPositionNo"
, "291" : "FinancialStatus"
, "292" : "CorporateAction"
, "293" : "DefBidSize"
, "294" : "DefOfferSize"
, "295" : "NoQuoteEntries"
, "296" : "NoQuoteSets"
, "297" : "QuoteAckStatus"
, "297" : "QuoteStatus"
, "298" : "QuoteCancelType"
, "299" : "QuoteEntryID"
, "3" : "AdvRefID"
, "30" : "LastMkt"
, "300" : "QuoteRejectReason"
, "301" : "QuoteResponseLevel"
, "302" : "QuoteSetID"
, "303" : "QuoteRequestType"
, "304" : "TotNoQuoteEntries"
, "304" : "TotQuoteEntries"
, "305" : "UnderlyingIDSource"
, "305" : "UnderlyingSecurityIDSource"
, "306" : "UnderlyingIssuer"
, "307" : "UnderlyingSecurityDesc"
, "308" : "UnderlyingSecurityExchange"
, "309" : "UnderlyingSecurityID"
, "31" : "LastPx"
, "310" : "UnderlyingSecurityType"
, "311" : "UnderlyingSymbol"
, "312" : "UnderlyingSymbolSfx"
, "313" : "UnderlyingMaturityMonthYear"
, "314" : "UnderlyingMaturityDay"
, "315" : "UnderlyingPutOrCall"
, "316" : "UnderlyingStrikePrice"
, "317" : "UnderlyingOptAttribute"
, "318" : "UnderlyingCurrency"
, "319" : "RatioQty"
, "32" : "LastQty"
, "32" : "LastShares"
, "320" : "SecurityReqID"
, "321" : "SecurityRequestType"
, "322" : "SecurityResponseID"
, "323" : "SecurityResponseType"
, "324" : "SecurityStatusReqID"
, "325" : "UnsolicitedIndicator"
, "326" : "SecurityTradingStatus"
, "327" : "HaltReasonChar"
, "327" : "HaltReasonInt"
, "328" : "InViewOfCommon"
, "329" : "DueToRelated"
, "33" : "LinesOfText"
, "33" : "NoLinesOfText"
, "330" : "BuyVolume"
, "331" : "SellVolume"
, "332" : "HighPx"
, "333" : "LowPx"
, "334" : "Adjustment"
, "335" : "TradSesReqID"
, "336" : "TradingSessionID"
, "337" : "ContraTrader"
, "338" : "TradSesMethod"
, "339" : "TradSesMode"
, "34" : "MsgSeqNum"
, "340" : "TradSesStatus"
, "341" : "TradSesStartTime"
, "342" : "TradSesOpenTime"
, "343" : "TradSesPreCloseTime"
, "344" : "TradSesCloseTime"
, "345" : "TradSesEndTime"
, "346" : "NumberOfOrders"
, "347" : "MessageEncoding"
, "348" : "EncodedIssuerLen"
, "349" : "EncodedIssuer"
, "35" : "MsgType"
, "350" : "EncodedSecurityDescLen"
, "351" : "EncodedSecurityDesc"
, "352" : "EncodedListExecInstLen"
, "353" : "EncodedListExecInst"
, "354" : "EncodedTextLen"
, "355" : "EncodedText"
, "356" : "EncodedSubjectLen"
, "357" : "EncodedSubject"
, "358" : "EncodedHeadlineLen"
, "359" : "EncodedHeadline"
, "36" : "NewSeqNo"
, "360" : "EncodedAllocTextLen"
, "361" : "EncodedAllocText"
, "362" : "EncodedUnderlyingIssuerLen"
, "363" : "EncodedUnderlyingIssuer"
, "364" : "EncodedUnderlyingSecurityDescLen"
, "365" : "EncodedUnderlyingSecurityDesc"
, "366" : "AllocPrice"
, "367" : "QuoteSetValidUntilTime"
, "368" : "QuoteEntryRejectReason"
, "369" : "LastMsgSeqNumProcessed"
, "37" : "OrderID"
, "370" : "OnBehalfOfSendingTime"
, "371" : "RefTagID"
, "372" : "RefMsgType"
, "373" : "SessionRejectReason"
, "374" : "BidRequestTransType"
, "375" : "ContraBroker"
, "376" : "ComplianceID"
, "377" : "SolicitedFlag"
, "378" : "ExecRestatementReason"
, "379" : "BusinessRejectRefID"
, "38" : "OrderQty"
, "380" : "BusinessRejectReason"
, "381" : "GrossTradeAmt"
, "382" : "NoContraBrokers"
, "383" : "MaxMessageSize"
, "384" : "NoMsgTypes"
, "385" : "MsgDirection"
, "386" : "NoTradingSessions"
, "387" : "TotalVolumeTraded"
, "388" : "DiscretionInst"
, "389" : "DiscretionOffset"
, "389" : "DiscretionOffsetValue"
, "39" : "OrdStatus"
, "390" : "BidID"
, "391" : "ClientBidID"
, "392" : "ListName"
, "393" : "TotalNumSecurities"
, "393" : "TotNoRelatedSym"
, "394" : "BidType"
, "395" : "NumTickets"
, "396" : "SideValue1"
, "397" : "SideValue2"
, "398" : "NoBidDescriptors"
, "399" : "BidDescriptorType"
, "4" : "AdvSide"
, "40" : "OrdType"
, "400" : "BidDescriptor"
, "401" : "SideValueInd"
, "402" : "LiquidityPctLow"
, "403" : "LiquidityPctHigh"
, "404" : "LiquidityValue"
, "405" : "EFPTrackingError"
, "406" : "FairValue"
, "407" : "OutsideIndexPct"
, "408" : "ValueOfFutures"
, "409" : "LiquidityIndType"
, "41" : "OrigClOrdID"
, "410" : "WtAverageLiquidity"
, "411" : "ExchangeForPhysical"
, "412" : "OutMainCntryUIndex"
, "413" : "CrossPercent"
, "414" : "ProgRptReqs"
, "415" : "ProgPeriodInterval"
, "416" : "IncTaxInd"
, "417" : "NumBidders"
, "418" : "BidTradeType"
, "418" : "TradeType"
, "419" : "BasisPxType"
, "42" : "OrigTime"
, "420" : "NoBidComponents"
, "421" : "Country"
, "422" : "TotNoStrikes"
, "423" : "PriceType"
, "424" : "DayOrderQty"
, "425" : "DayCumQty"
, "426" : "DayAvgPx"
, "427" : "GTBookingInst"
, "428" : "NoStrikes"
, "429" : "ListStatusType"
, "43" : "PossDupFlag"
, "430" : "NetGrossInd"
, "431" : "ListOrderStatus"
, "432" : "ExpireDate"
, "433" : "ListExecInstType"
, "434" : "CxlRejResponseTo"
, "435" : "UnderlyingCouponRate"
, "436" : "UnderlyingContractMultiplier"
, "437" : "ContraTradeQty"
, "438" : "ContraTradeTime"
, "439" : "ClearingFirm"
, "44" : "Price"
, "440" : "ClearingAccount"
, "441" : "LiquidityNumSecurities"
, "442" : "MultiLegReportingType"
, "443" : "StrikeTime"
, "444" : "ListStatusText"
, "445" : "EncodedListStatusTextLen"
, "446" : "EncodedListStatusText"
, "447" : "PartyIDSource"
, "448" : "PartyID"
, "449" : "TotalVolumeTradedDate"
, "45" : "RefSeqNum"
, "450" : "TotalVolumeTradedTime"
, "451" : "NetChgPrevDay"
, "452" : "PartyRole"
, "453" : "NoPartyIDs"
, "454" : "NoSecurityAltID"
, "455" : "SecurityAltID"
, "456" : "SecurityAltIDSource"
, "457" : "NoUnderlyingSecurityAltID"
, "458" : "UnderlyingSecurityAltID"
, "459" : "UnderlyingSecurityAltIDSource"
, "46" : "RelatdSym"
, "460" : "Product"
, "461" : "CFICode"
, "462" : "UnderlyingProduct"
, "463" : "UnderlyingCFICode"
, "464" : "TestMessageIndicator"
, "465" : "QuantityType"
, "466" : "BookingRefID"
, "467" : "IndividualAllocID"
, "468" : "RoundingDirection"
, "469" : "RoundingModulus"
, "47" : "Rule80A"
, "470" : "CountryOfIssue"
, "471" : "StateOrProvinceOfIssue"
, "472" : "LocaleOfIssue"
, "473" : "NoRegistDtls"
, "474" : "MailingDtls"
, "475" : "InvestorCountryOfResidence"
, "476" : "PaymentRef"
, "477" : "DistribPaymentMethod"
, "478" : "CashDistribCurr"
, "479" : "CommCurrency"
, "48" : "SecurityID"
, "480" : "CancellationRights"
, "481" : "MoneyLaunderingStatus"
, "482" : "MailingInst"
, "483" : "TransBkdTime"
, "484" : "ExecPriceType"
, "485" : "ExecPriceAdjustment"
, "486" : "DateOfBirth"
, "487" : "TradeReportTransType"
, "488" : "CardHolderName"
, "489" : "CardNumber"
, "49" : "SenderCompID"
, "490" : "CardExpDate"
, "491" : "CardIssNo"
, "491" : "CardIssNum"
, "492" : "PaymentMethod"
, "493" : "RegistAcctType"
, "494" : "Designation"
, "495" : "TaxAdvantageType"
, "496" : "RegistRejReasonText"
, "497" : "FundRenewWaiv"
, "498" : "CashDistribAgentName"
, "499" : "CashDistribAgentCode"
, "5" : "AdvTransType"
, "50" : "SenderSubID"
, "500" : "CashDistribAgentAcctNumber"
, "501" : "CashDistribPayRef"
, "502" : "CashDistribAgentAcctName"
, "503" : "CardStartDate"
, "504" : "PaymentDate"
, "505" : "PaymentRemitterID"
, "506" : "RegistStatus"
, "507" : "RegistRejReasonCode"
, "508" : "RegistRefID"
, "509" : "RegistDetls"
, "509" : "RegistDtls"
, "51" : "SendingDate"
, "510" : "NoDistribInsts"
, "511" : "RegistEmail"
, "512" : "DistribPercentage"
, "513" : "RegistID"
, "514" : "RegistTransType"
, "515" : "ExecValuationPoint"
, "516" : "OrderPercent"
, "517" : "OwnershipType"
, "518" : "NoContAmts"
, "519" : "ContAmtType"
, "52" : "SendingTime"
, "520" : "ContAmtValue"
, "521" : "ContAmtCurr"
, "522" : "OwnerType"
, "523" : "PartySubID"
, "524" : "NestedPartyID"
, "525" : "NestedPartyIDSource"
, "526" : "SecondaryClOrdID"
, "527" : "SecondaryExecID"
, "528" : "OrderCapacity"
, "529" : "OrderRestrictions"
, "53" : "Quantity"
, "53" : "Shares"
, "530" : "MassCancelRequestType"
, "531" : "MassCancelResponse"
, "532" : "MassCancelRejectReason"
, "533" : "TotalAffectedOrders"
, "534" : "NoAffectedOrders"
, "535" : "AffectedOrderID"
, "536" : "AffectedSecondaryOrderID"
, "537" : "QuoteType"
, "538" : "NestedPartyRole"
, "539" : "NoNestedPartyIDs"
, "54" : "Side"
, "540" : "TotalAccruedInterestAmt"
, "541" : "MaturityDate"
, "542" : "UnderlyingMaturityDate"
, "543" : "InstrRegistry"
, "544" : "CashMargin"
, "545" : "NestedPartySubID"
, "546" : "Scope"
, "547" : "MDImplicitDelete"
, "548" : "CrossID"
, "549" : "CrossType"
, "55" : "Symbol"
, "550" : "CrossPrioritization"
, "551" : "OrigCrossID"
, "552" : "NoSides"
, "553" : "Username"
, "554" : "Password"
, "555" : "NoLegs"
, "556" : "LegCurrency"
, "557" : "TotalNumSecurityTypes"
, "557" : "TotNoSecurityTypes"
, "558" : "NoSecurityTypes"
, "559" : "SecurityListRequestType"
, "56" : "TargetCompID"
, "560" : "SecurityRequestResult"
, "561" : "RoundLot"
, "562" : "MinTradeVol"
, "563" : "MultiLegRptTypeReq"
, "564" : "LegPositionEffect"
, "565" : "LegCoveredOrUncovered"
, "566" : "LegPrice"
, "567" : "TradSesStatusRejReason"
, "568" : "TradeRequestID"
, "569" : "TradeRequestType"
, "57" : "TargetSubID"
, "570" : "PreviouslyReported"
, "571" : "TradeReportID"
, "572" : "TradeReportRefID"
, "573" : "MatchStatus"
, "574" : "MatchType"
, "575" : "OddLot"
, "576" : "NoClearingInstructions"
, "577" : "ClearingInstruction"
, "578" : "TradeInputSource"
, "579" : "TradeInputDevice"
, "58" : "Text"
, "580" : "NoDates"
, "581" : "AccountType"
, "582" : "CustOrderCapacity"
, "583" : "ClOrdLinkID"
, "584" : "MassStatusReqID"
, "585" : "MassStatusReqType"
, "586" : "OrigOrdModTime"
, "587" : "LegSettlmntTyp"
, "587" : "LegSettlType"
, "588" : "LegFutSettDate"
, "588" : "LegSettlDate"
, "589" : "DayBookingInst"
, "59" : "TimeInForce"
, "590" : "BookingUnit"
, "591" : "PreallocMethod"
, "592" : "UnderlyingCountryOfIssue"
, "593" : "UnderlyingStateOrProvinceOfIssue"
, "594" : "UnderlyingLocaleOfIssue"
, "595" : "UnderlyingInstrRegistry"
, "596" : "LegCountryOfIssue"
, "597" : "LegStateOrProvinceOfIssue"
, "598" : "LegLocaleOfIssue"
, "599" : "LegInstrRegistry"
, "6" : "AvgPx"
, "60" : "TransactTime"
, "600" : "LegSymbol"
, "601" : "LegSymbolSfx"
, "602" : "LegSecurityID"
, "603" : "LegSecurityIDSource"
, "604" : "NoLegSecurityAltID"
, "605" : "LegSecurityAltID"
, "606" : "LegSecurityAltIDSource"
, "607" : "LegProduct"
, "608" : "LegCFICode"
, "609" : "LegSecurityType"
, "61" : "Urgency"
, "610" : "LegMaturityMonthYear"
, "611" : "LegMaturityDate"
, "612" : "LegStrikePrice"
, "613" : "LegOptAttribute"
, "614" : "LegContractMultiplier"
, "615" : "LegCouponRate"
, "616" : "LegSecurityExchange"
, "617" : "LegIssuer"
, "618" : "EncodedLegIssuerLen"
, "619" : "EncodedLegIssuer"
, "62" : "ValidUntilTime"
, "620" : "LegSecurityDesc"
, "621" : "EncodedLegSecurityDescLen"
, "622" : "EncodedLegSecurityDesc"
, "623" : "LegRatioQty"
, "624" : "LegSide"
, "625" : "TradingSessionSubID"
, "626" : "AllocType"
, "627" : "NoHops"
, "628" : "HopCompID"
, "629" : "HopSendingTime"
, "63" : "SettlmntTyp"
, "63" : "SettlType"
, "630" : "HopRefID"
, "631" : "MidPx"
, "632" : "BidYield"
, "633" : "MidYield"
, "634" : "OfferYield"
, "635" : "ClearingFeeIndicator"
, "636" : "WorkingIndicator"
, "637" : "LegLastPx"
, "638" : "PriorityIndicator"
, "639" : "PriceImprovement"
, "64" : "FutSettDate"
, "64" : "SettlDate"
, "640" : "Price2"
, "641" : "LastForwardPoints2"
, "642" : "BidForwardPoints2"
, "643" : "OfferForwardPoints2"
, "644" : "RFQReqID"
, "645" : "MktBidPx"
, "646" : "MktOfferPx"
, "647" : "MinBidSize"
, "648" : "MinOfferSize"
, "649" : "QuoteStatusReqID"
, "65" : "SymbolSfx"
, "650" : "LegalConfirm"
, "651" : "UnderlyingLastPx"
, "652" : "UnderlyingLastQty"
, "653" : "SecDefStatus"
, "654" : "LegRefID"
, "655" : "ContraLegRefID"
, "656" : "SettlCurrBidFxRate"
, "657" : "SettlCurrOfferFxRate"
, "658" : "QuoteRequestRejectReason"
, "659" : "SideComplianceID"
, "66" : "ListID"
, "660" : "AcctIDSource"
, "661" : "AllocAcctIDSource"
, "662" : "BenchmarkPrice"
, "663" : "BenchmarkPriceType"
, "664" : "ConfirmID"
, "665" : "ConfirmStatus"
, "666" : "ConfirmTransType"
, "667" : "ContractSettlMonth"
, "668" : "DeliveryForm"
, "669" : "LastParPx"
, "67" : "ListSeqNo"
, "670" : "NoLegAllocs"
, "671" : "LegAllocAccount"
, "672" : "LegIndividualAllocID"
, "673" : "LegAllocQty"
, "674" : "LegAllocAcctIDSource"
, "675" : "LegSettlCurrency"
, "676" : "LegBenchmarkCurveCurrency"
, "677" : "LegBenchmarkCurveName"
, "678" : "LegBenchmarkCurvePoint"
, "679" : "LegBenchmarkPrice"
, "68" : "ListNoOrds"
, "68" : "TotNoOrders"
, "680" : "LegBenchmarkPriceType"
, "681" : "LegBidPx"
, "682" : "LegIOIQty"
, "683" : "NoLegStipulations"
, "684" : "LegOfferPx"
, "685" : "LegOrderQty"
, "686" : "LegPriceType"
, "687" : "LegQty"
, "688" : "LegStipulationType"
, "689" : "LegStipulationValue"
, "69" : "ListExecInst"
, "690" : "LegSwapType"
, "691" : "Pool"
, "692" : "QuotePriceType"
, "693" : "QuoteRespID"
, "694" : "QuoteRespType"
, "695" : "QuoteQualifier"
, "696" : "YieldRedemptionDate"
, "697" : "YieldRedemptionPrice"
, "698" : "YieldRedemptionPriceType"
, "699" : "BenchmarkSecurityID"
, "7" : "BeginSeqNo"
, "70" : "AllocID"
, "700" : "ReversalIndicator"
, "701" : "YieldCalcDate"
, "702" : "NoPositions"
, "703" : "PosType"
, "704" : "LongQty"
, "705" : "ShortQty"
, "706" : "PosQtyStatus"
, "707" : "PosAmtType"
, "708" : "PosAmt"
, "709" : "PosTransType"
, "71" : "AllocTransType"
, "710" : "PosReqID"
, "711" : "NoUnderlyings"
, "712" : "PosMaintAction"
, "713" : "OrigPosReqRefID"
, "714" : "PosMaintRptRefID"
, "715" : "ClearingBusinessDate"
, "716" : "SettlSessID"
, "717" : "SettlSessSubID"
, "718" : "AdjustmentType"
, "719" : "ContraryInstructionIndicator"
, "72" : "RefAllocID"
, "720" : "PriorSpreadIndicator"
, "721" : "PosMaintRptID"
, "722" : "PosMaintStatus"
, "723" : "PosMaintResult"
, "724" : "PosReqType"
, "725" : "ResponseTransportType"
, "726" : "ResponseDestination"
, "727" : "TotalNumPosReports"
, "728" : "PosReqResult"
, "729" : "PosReqStatus"
, "73" : "NoOrders"
, "730" : "SettlPrice"
, "731" : "SettlPriceType"
, "732" : "UnderlyingSettlPrice"
, "733" : "UnderlyingSettlPriceType"
, "734" : "PriorSettlPrice"
, "735" : "NoQuoteQualifiers"
, "736" : "AllocSettlCurrency"
, "737" : "AllocSettlCurrAmt"
, "738" : "InterestAtMaturity"
, "739" : "LegDatedDate"
, "74" : "AvgPrxPrecision"
, "74" : "AvgPxPrecision"
, "740" : "LegPool"
, "741" : "AllocInterestAtMaturity"
, "742" : "AllocAccruedInterestAmt"
, "743" : "DeliveryDate"
, "744" : "AssignmentMethod"
, "745" : "AssignmentUnit"
, "746" : "OpenInterest"
, "747" : "ExerciseMethod"
, "748" : "TotNumTradeReports"
, "749" : "TradeRequestResult"
, "75" : "TradeDate"
, "750" : "TradeRequestStatus"
, "751" : "TradeReportRejectReason"
, "752" : "SideMultiLegReportingType"
, "753" : "NoPosAmt"
, "754" : "AutoAcceptIndicator"
, "755" : "AllocReportID"
, "756" : "NoNested2PartyIDs"
, "757" : "Nested2PartyID"
, "758" : "Nested2PartyIDSource"
, "759" : "Nested2PartyRole"
, "76" : "ExecBroker"
, "760" : "Nested2PartySubID"
, "761" : "BenchmarkSecurityIDSource"
, "762" : "SecuritySubType"
, "763" : "UnderlyingSecuritySubType"
, "764" : "LegSecuritySubType"
, "765" : "AllowableOneSidednessPct"
, "766" : "AllowableOneSidednessValue"
, "767" : "AllowableOneSidednessCurr"
, "768" : "NoTrdRegTimestamps"
, "769" : "TrdRegTimestamp"
, "77" : "OpenClose"
, "77" : "PositionEffect"
, "770" : "TrdRegTimestampType"
, "771" : "TrdRegTimestampOrigin"
, "772" : "ConfirmRefID"
, "773" : "ConfirmType"
, "774" : "ConfirmRejReason"
, "775" : "BookingType"
, "776" : "IndividualAllocRejCode"
, "777" : "SettlInstMsgID"
, "778" : "NoSettlInst"
, "779" : "LastUpdateTime"
, "78" : "NoAllocs"
, "780" : "AllocSettlInstType"
, "781" : "NoSettlPartyIDs"
, "782" : "SettlPartyID"
, "783" : "SettlPartyIDSource"
, "784" : "SettlPartyRole"
, "785" : "SettlPartySubID"
, "786" : "SettlPartySubIDType"
, "787" : "DlvyInstType"
, "788" : "TerminationType"
, "789" : "NextExpectedMsgSeqNum"
, "79" : "AllocAccount"
, "790" : "OrdStatusReqID"
, "791" : "SettlInstReqID"
, "792" : "SettlInstReqRejCode"
, "793" : "SecondaryAllocID"
, "794" : "AllocReportType"
, "795" : "AllocReportRefID"
, "796" : "AllocCancReplaceReason"
, "797" : "CopyMsgIndicator"
, "798" : "AllocAccountType"
, "799" : "OrderAvgPx"
, "8" : "BeginString"
, "80" : "AllocQty"
, "80" : "AllocShares"
, "800" : "OrderBookingQty"
, "801" : "NoSettlPartySubIDs"
, "802" : "NoPartySubIDs"
, "803" : "PartySubIDType"
, "804" : "NoNestedPartySubIDs"
, "805" : "NestedPartySubIDType"
, "806" : "NoNested2PartySubIDs"
, "807" : "Nested2PartySubIDType"
, "808" : "AllocIntermedReqType"
, "81" : "ProcessCode"
, "810" : "UnderlyingPx"
, "811" : "PriceDelta"
, "812" : "ApplQueueMax"
, "813" : "ApplQueueDepth"
, "814" : "ApplQueueResolution"
, "815" : "ApplQueueAction"
, "816" : "NoAltMDSource"
, "817" : "AltMDSourceID"
, "818" : "SecondaryTradeReportID"
, "819" : "AvgPxIndicator"
, "82" : "NoRpts"
, "820" : "TradeLinkID"
, "821" : "OrderInputDevice"
, "822" : "UnderlyingTradingSessionID"
, "823" : "UnderlyingTradingSessionSubID"
, "824" : "TradeLegRefID"
, "825" : "ExchangeRule"
, "826" : "TradeAllocIndicator"
, "827" : "ExpirationCycle"
, "828" : "TrdType"
, "829" : "TrdSubType"
, "83" : "RptSeq"
, "830" : "TransferReason"
, "831" : "AsgnReqID"
, "832" : "TotNumAssignmentReports"
, "833" : "AsgnRptID"
, "834" : "ThresholdAmount"
, "835" : "PegMoveType"
, "836" : "PegOffsetType"
, "837" : "PegLimitType"
, "838" : "PegRoundDirection"
, "839" : "PeggedPrice"
, "84" : "CxlQty"
, "840" : "PegScope"
, "841" : "DiscretionMoveType"
, "842" : "DiscretionOffsetType"
, "843" : "DiscretionLimitType"
, "844" : "DiscretionRoundDirection"
, "845" : "DiscretionPrice"
, "846" : "DiscretionScope"
, "847" : "TargetStrategy"
, "848" : "TargetStrategyParameters"
, "849" : "ParticipationRate"
, "85" : "NoDlvyInst"
, "850" : "TargetStrategyPerformance"
, "851" : "LastLiquidityInd"
, "852" : "PublishTrdIndicator"
, "853" : "ShortSaleReason"
, "854" : "QtyType"
, "855" : "SecondaryTrdType"
, "856" : "TradeReportType"
, "857" : "AllocNoOrdersType"
, "858" : "SharedCommission"
, "859" : "ConfirmReqID"
, "86" : "DlvyInst"
, "860" : "AvgParPx"
, "861" : "ReportedPx"
, "862" : "NoCapacities"
, "863" : "OrderCapacityQty"
, "864" : "NoEvents"
, "865" : "EventType"
, "866" : "EventDate"
, "867" : "EventPx"
, "868" : "EventText"
, "869" : "PctAtRisk"
, "87" : "AllocStatus"
, "870" : "NoInstrAttrib"
, "871" : "InstrAttribType"
, "872" : "InstrAttribValue"
, "873" : "DatedDate"
, "874" : "InterestAccrualDate"
, "875" : "CPProgram"
, "876" : "CPRegType"
, "877" : "UnderlyingCPProgram"
, "878" : "UnderlyingCPRegType"
, "879" : "UnderlyingQty"
, "88" : "AllocRejCode"
, "880" : "TrdMatchID"
, "881" : "SecondaryTradeReportRefID"
, "882" : "UnderlyingDirtyPrice"
, "883" : "UnderlyingEndPrice"
, "884" : "UnderlyingStartValue"
, "885" : "UnderlyingCurrentValue"
, "886" : "UnderlyingEndValue"
, "887" : "NoUnderlyingStips"
, "888" : "UnderlyingStipType"
, "889" : "UnderlyingStipValue"
, "89" : "Signature"
, "890" : "MaturityNetMoney"
, "891" : "MiscFeeBasis"
, "892" : "TotNoAllocs"
, "893" : "LastFragment"
, "894" : "CollReqID"
, "895" : "CollAsgnReason"
, "896" : "CollInquiryQualifier"
, "897" : "NoTrades"
, "898" : "MarginRatio"
, "899" : "MarginExcess"
, "9" : "BodyLength"
, "90" : "SecureDataLen"
, "900" : "TotalNetValue"
, "901" : "CashOutstanding"
, "902" : "CollAsgnID"
, "903" : "CollAsgnTransType"
, "904" : "CollRespID"
, "905" : "CollAsgnRespType"
, "906" : "CollAsgnRejectReason"
, "907" : "CollAsgnRefID"
, "908" : "CollRptID"
, "909" : "CollInquiryID"
, "91" : "SecureData"
, "910" : "CollStatus"
, "911" : "TotNumReports"
, "912" : "LastRptRequested"
, "913" : "AgreementDesc"
, "914" : "AgreementID"
, "915" : "AgreementDate"
, "916" : "StartDate"
, "917" : "EndDate"
, "918" : "AgreementCurrency"
, "919" : "DeliveryType"
, "92" : "BrokerOfCredit"
, "920" : "EndAccruedInterestAmt"
, "921" : "StartCash"
, "922" : "EndCash"
, "923" : "UserRequestID"
, "924" : "UserRequestType"
, "925" : "NewPassword"
, "926" : "UserStatus"
, "927" : "UserStatusText"
, "928" : "StatusValue"
, "929" : "StatusText"
, "93" : "SignatureLength"
, "930" : "RefCompID"
, "931" : "RefSubID"
, "932" : "NetworkResponseID"
, "933" : "NetworkRequestID"
, "934" : "LastNetworkResponseID"
, "935" : "NetworkRequestType"
, "936" : "NoCompIDs"
, "937" : "NetworkStatusResponseType"
, "938" : "NoCollInquiryQualifier"
, "939" : "TrdRptStatus"
, "94" : "EmailType"
, "940" : "AffirmStatus"
, "941" : "UnderlyingStrikeCurrency"
, "942" : "LegStrikeCurrency"
, "943" : "TimeBracket"
, "944" : "CollAction"
, "945" : "CollInquiryStatus"
, "946" : "CollInquiryResult"
, "947" : "StrikeCurrency"
, "948" : "NoNested3PartyIDs"
, "949" : "Nested3PartyID"
, "95" : "RawDataLength"
, "950" : "Nested3PartyIDSource"
, "951" : "Nested3PartyRole"
, "952" : "NoNested3PartySubIDs"
, "953" : "Nested3PartySubID"
, "954" : "Nested3PartySubIDType"
, "955" : "LegContractSettlMonth"
, "956" : "LegInterestAccrualDate"
, "957" : "NoStrategyParameters"
, "958" : "StrategyParameterName"
, "959" : "StrategyParameterType"
, "96" : "RawData"
, "960" : "StrategyParameterValue"
, "961" : "HostCrossID"
, "962" : "SideTimeInForce"
, "963" : "MDReportID"
, "964" : "SecurityReportID"
, "965" : "SecurityStatus"
, "966" : "SettleOnOpenFlag"
, "967" : "StrikeMultiplier"
, "968" : "StrikeValue"
, "969" : "MinPriceIncrement"
, "97" : "PossResend"
, "970" : "PositionLimit"
, "971" : "NTPositionLimit"
, "972" : "UnderlyingAllocationPercent"
, "973" : "UnderlyingCashAmount"
, "974" : "UnderlyingCashType"
, "975" : "UnderlyingSettlementType"
, "976" : "QuantityDate"
, "977" : "ContIntRptID"
, "978" : "LateIndicator"
, "979" : "InputSource"
, "98" : "EncryptMethod"
, "980" : "SecurityUpdateAction"
, "981" : "NoExpiration"
, "982" : "ExpirationQtyType"
, "982" : "ExpType"
, "983" : "ExpQty"
, "984" : "NoUnderlyingAmounts"
, "985" : "UnderlyingPayAmount"
, "986" : "UnderlyingCollectAmount"
, "987" : "UnderlyingSettlementDate"
, "988" : "UnderlyingSettlementStatus"
, "989" : "SecondaryIndividualAllocID"
, "99" : "StopPx"
, "990" : "LegReportID"
, "991" : "RndPx"
, "992" : "IndividualAllocType"
, "993" : "AllocCustomerCapacity"
, "994" : "TierCode"
, "996" : "UnitOfMeasure"
, "997" : "TimeUnit"
, "998" : "UnderlyingUnitOfMeasure"
, "999" : "LegUnitOfMeasure"
}
| bsd-3-clause | 1,577,408,565,323,987,200 | 29.983343 | 99 | 0.624138 | false |
santisiri/popego | envs/ALPHA-POPEGO/lib/python2.5/site-packages/SQLAlchemy-0.4.0-py2.5.egg/sqlalchemy/databases/access.py | 1 | 15034 | # access.py
# Copyright (C) 2007 Paul Johnston, [email protected]
# Portions derived from jet2sql.py by Matt Keranen, [email protected]
#
# This module is part of SQLAlchemy and is released under
# the MIT License: http://www.opensource.org/licenses/mit-license.php
import random
from sqlalchemy import sql, schema, types, exceptions, pool
from sqlalchemy.sql import compiler, expression
from sqlalchemy.engine import default, base
class AcNumeric(types.Numeric):
def result_processor(self, dialect):
return None
def bind_processor(self, dialect):
def process(value):
if value is None:
# Not sure that this exception is needed
return value
else:
return str(value)
return process
def get_col_spec(self):
return "NUMERIC"
class AcFloat(types.Float):
def get_col_spec(self):
return "FLOAT"
def bind_processor(self, dialect):
"""By converting to string, we can use Decimal types round-trip."""
def process(value):
if not value is None:
return str(value)
return None
return process
class AcInteger(types.Integer):
def get_col_spec(self):
return "INTEGER"
class AcTinyInteger(types.Integer):
def get_col_spec(self):
return "TINYINT"
class AcSmallInteger(types.Smallinteger):
def get_col_spec(self):
return "SMALLINT"
class AcDateTime(types.DateTime):
def __init__(self, *a, **kw):
super(AcDateTime, self).__init__(False)
def get_col_spec(self):
return "DATETIME"
class AcDate(types.Date):
def __init__(self, *a, **kw):
super(AcDate, self).__init__(False)
def get_col_spec(self):
return "DATETIME"
class AcText(types.TEXT):
def get_col_spec(self):
return "MEMO"
class AcString(types.String):
def get_col_spec(self):
return "TEXT" + (self.length and ("(%d)" % self.length) or "")
class AcUnicode(types.Unicode):
def get_col_spec(self):
return "TEXT" + (self.length and ("(%d)" % self.length) or "")
def bind_processor(self, dialect):
return None
def result_processor(self, dialect):
return None
class AcChar(types.CHAR):
def get_col_spec(self):
return "TEXT" + (self.length and ("(%d)" % self.length) or "")
class AcBinary(types.Binary):
def get_col_spec(self):
return "BINARY"
class AcBoolean(types.Boolean):
def get_col_spec(self):
return "YESNO"
def result_processor(self, dialect):
def process(value):
if value is None:
return None
return value and True or False
return process
def bind_processor(self, dialect):
def process(value):
if value is True:
return 1
elif value is False:
return 0
elif value is None:
return None
else:
return value and True or False
return process
class AcTimeStamp(types.TIMESTAMP):
def get_col_spec(self):
return "TIMESTAMP"
def descriptor():
return {'name':'access',
'description':'Microsoft Access',
'arguments':[
('user',"Database user name",None),
('password',"Database password",None),
('db',"Path to database file",None),
]}
class AccessExecutionContext(default.DefaultExecutionContext):
def _has_implicit_sequence(self, column):
if column.primary_key and column.autoincrement:
if isinstance(column.type, types.Integer) and not column.foreign_key:
if column.default is None or (isinstance(column.default, schema.Sequence) and \
column.default.optional):
return True
return False
def post_exec(self):
"""If we inserted into a row with a COUNTER column, fetch the ID"""
if self.compiled.isinsert:
tbl = self.compiled.statement.table
if not hasattr(tbl, 'has_sequence'):
tbl.has_sequence = None
for column in tbl.c:
if getattr(column, 'sequence', False) or self._has_implicit_sequence(column):
tbl.has_sequence = column
break
if bool(tbl.has_sequence):
# TBD: for some reason _last_inserted_ids doesn't exist here
# (but it does at corresponding point in mssql???)
#if not len(self._last_inserted_ids) or self._last_inserted_ids[0] is None:
self.cursor.execute("SELECT @@identity AS lastrowid")
row = self.cursor.fetchone()
self._last_inserted_ids = [int(row[0])] #+ self._last_inserted_ids[1:]
# print "LAST ROW ID", self._last_inserted_ids
super(AccessExecutionContext, self).post_exec()
const, daoEngine = None, None
class AccessDialect(default.DefaultDialect):
colspecs = {
types.Unicode : AcUnicode,
types.Integer : AcInteger,
types.Smallinteger: AcSmallInteger,
types.Numeric : AcNumeric,
types.Float : AcFloat,
types.DateTime : AcDateTime,
types.Date : AcDate,
types.String : AcString,
types.Binary : AcBinary,
types.Boolean : AcBoolean,
types.TEXT : AcText,
types.CHAR: AcChar,
types.TIMESTAMP: AcTimeStamp,
}
supports_sane_rowcount = False
supports_sane_multi_rowcount = False
def type_descriptor(self, typeobj):
newobj = types.adapt_type(typeobj, self.colspecs)
return newobj
def __init__(self, **params):
super(AccessDialect, self).__init__(**params)
self.text_as_varchar = False
self._dtbs = None
def dbapi(cls):
import win32com.client
win32com.client.gencache.EnsureModule('{00025E01-0000-0000-C000-000000000046}', 0, 5, 0)
global const, daoEngine
if const is None:
const = win32com.client.constants
daoEngine = win32com.client.Dispatch('DAO.DBEngine.36')
import pyodbc as module
return module
dbapi = classmethod(dbapi)
def create_connect_args(self, url):
opts = url.translate_connect_args()
connectors = ["Driver={Microsoft Access Driver (*.mdb)}"]
connectors.append("Dbq=%s" % opts["database"])
user = opts.get("username", None)
if user:
connectors.append("UID=%s" % user)
connectors.append("PWD=%s" % opts.get("password", ""))
return [[";".join(connectors)], {}]
def create_execution_context(self, *args, **kwargs):
return AccessExecutionContext(self, *args, **kwargs)
def last_inserted_ids(self):
return self.context.last_inserted_ids
def do_execute(self, cursor, statement, params, **kwargs):
if params == {}:
params = ()
super(AccessDialect, self).do_execute(cursor, statement, params, **kwargs)
def _execute(self, c, statement, parameters):
try:
if parameters == {}:
parameters = ()
c.execute(statement, parameters)
self.context.rowcount = c.rowcount
except Exception, e:
raise exceptions.DBAPIError.instance(statement, parameters, e)
def has_table(self, connection, tablename, schema=None):
# This approach seems to be more reliable that using DAO
try:
connection.execute('select top 1 * from [%s]' % tablename)
return True
except Exception, e:
return False
def reflecttable(self, connection, table, include_columns):
# This is defined in the function, as it relies on win32com constants,
# that aren't imported until dbapi method is called
if not hasattr(self, 'ischema_names'):
self.ischema_names = {
const.dbByte: AcBinary,
const.dbInteger: AcInteger,
const.dbLong: AcInteger,
const.dbSingle: AcFloat,
const.dbDouble: AcFloat,
const.dbDate: AcDateTime,
const.dbLongBinary: AcBinary,
const.dbMemo: AcText,
const.dbBoolean: AcBoolean,
const.dbText: AcUnicode, # All Access strings are unicode
}
# A fresh DAO connection is opened for each reflection
# This is necessary, so we get the latest updates
dtbs = daoEngine.OpenDatabase(connection.engine.url.database)
try:
for tbl in dtbs.TableDefs:
if tbl.Name.lower() == table.name.lower():
break
else:
raise exceptions.NoSuchTableError(table.name)
for col in tbl.Fields:
coltype = self.ischema_names[col.Type]
if col.Type == const.dbText:
coltype = coltype(col.Size)
colargs = \
{
'nullable': not(col.Required or col.Attributes & const.dbAutoIncrField),
}
default = col.DefaultValue
if col.Attributes & const.dbAutoIncrField:
colargs['default'] = schema.Sequence(col.Name + '_seq')
elif default:
if col.Type == const.dbBoolean:
default = default == 'Yes' and '1' or '0'
colargs['default'] = schema.PassiveDefault(sql.text(default))
table.append_column(schema.Column(col.Name, coltype, **colargs))
# TBD: check constraints
# Find primary key columns first
for idx in tbl.Indexes:
if idx.Primary:
for col in idx.Fields:
thecol = table.c[col.Name]
table.primary_key.add(thecol)
if isinstance(thecol.type, AcInteger) and \
not (thecol.default and isinstance(thecol.default.arg, schema.Sequence)):
thecol.autoincrement = False
# Then add other indexes
for idx in tbl.Indexes:
if not idx.Primary:
if len(idx.Fields) == 1:
col = table.c[idx.Fields[0].Name]
if not col.primary_key:
col.index = True
col.unique = idx.Unique
else:
pass # TBD: multi-column indexes
for fk in dtbs.Relations:
if fk.ForeignTable != table.name:
continue
scols = [c.ForeignName for c in fk.Fields]
rcols = ['%s.%s' % (fk.Table, c.Name) for c in fk.Fields]
table.append_constraint(schema.ForeignKeyConstraint(scols, rcols))
finally:
dtbs.Close()
def table_names(self, connection, schema):
# A fresh DAO connection is opened for each reflection
# This is necessary, so we get the latest updates
dtbs = daoEngine.OpenDatabase(connection.engine.url.database)
names = [t.Name for t in dtbs.TableDefs if t.Name[:4] != "MSys" and t.Name[:4] <> "~TMP"]
dtbs.Close()
return names
class AccessCompiler(compiler.DefaultCompiler):
def visit_select_precolumns(self, select):
"""Access puts TOP, it's version of LIMIT here """
s = select.distinct and "DISTINCT " or ""
if select.limit:
s += "TOP %s " % (select.limit)
if select.offset:
raise exceptions.InvalidRequestError('Access does not support LIMIT with an offset')
return s
def limit_clause(self, select):
"""Limit in access is after the select keyword"""
return ""
def binary_operator_string(self, binary):
"""Access uses "mod" instead of "%" """
return binary.operator == '%' and 'mod' or binary.operator
def label_select_column(self, select, column):
if isinstance(column, expression._Function):
return column.label(column.name + "_" + hex(random.randint(0, 65535))[2:])
else:
return super(AccessCompiler, self).label_select_column(select, column)
function_rewrites = {'current_date': 'now',
'current_timestamp': 'now',
'length': 'len',
}
def visit_function(self, func):
"""Access function names differ from the ANSI SQL names; rewrite common ones"""
func.name = self.function_rewrites.get(func.name, func.name)
super(AccessCompiler, self).visit_function(func)
def for_update_clause(self, select):
"""FOR UPDATE is not supported by Access; silently ignore"""
return ''
class AccessSchemaGenerator(compiler.SchemaGenerator):
def get_column_specification(self, column, **kwargs):
colspec = self.preparer.format_column(column) + " " + column.type.dialect_impl(self.dialect).get_col_spec()
# install a sequence if we have an implicit IDENTITY column
if (not getattr(column.table, 'has_sequence', False)) and column.primary_key and \
column.autoincrement and isinstance(column.type, types.Integer) and not column.foreign_key:
if column.default is None or (isinstance(column.default, schema.Sequence) and column.default.optional):
column.sequence = schema.Sequence(column.name + '_seq')
if not column.nullable:
colspec += " NOT NULL"
if hasattr(column, 'sequence'):
column.table.has_sequence = column
colspec = self.preparer.format_column(column) + " counter"
else:
default = self.get_column_default_string(column)
if default is not None:
colspec += " DEFAULT " + default
return colspec
class AccessSchemaDropper(compiler.SchemaDropper):
def visit_index(self, index):
self.append("\nDROP INDEX [%s].[%s]" % (index.table.name, index.name))
self.execute()
class AccessDefaultRunner(base.DefaultRunner):
pass
class AccessIdentifierPreparer(compiler.IdentifierPreparer):
reserved_words = compiler.RESERVED_WORDS.copy()
reserved_words.update(['value', 'text'])
def __init__(self, dialect):
super(AccessIdentifierPreparer, self).__init__(dialect, initial_quote='[', final_quote=']')
dialect = AccessDialect
dialect.poolclass = pool.SingletonThreadPool
dialect.statement_compiler = AccessCompiler
dialect.schemagenerator = AccessSchemaGenerator
dialect.schemadropper = AccessSchemaDropper
dialect.preparer = AccessIdentifierPreparer
dialect.defaultrunner = AccessDefaultRunner
| bsd-3-clause | 4,976,746,506,832,466,000 | 35.052758 | 115 | 0.581016 | false |
a-rank/cassandra-tools | cassandra_tools/ui.py | 1 | 3032 | # Copyright 2016 Allan Rank
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
import click
def prompt(choices, text, close=False):
items = ["{} {}".format(idx, c) for idx, c in enumerate(choices)]
if close:
items.append("c <close>")
click.echo()
click.secho("\n".join(items), bold=True)
try:
return int(click.prompt(text))
except ValueError:
return len(choices)
def format_columns(columns):
if columns:
return ", ".join([c.name for c in columns])
else:
return "no columns"
def print_header(text, bold=False):
click.echo()
line = "".join(["-" for _ in xrange(len(text) + 2)])
click.secho(line, bold=bold)
click.secho(" {}".format(text), bold=bold)
click.secho(line, bold=bold)
def print_dict(map, name):
if map:
print_header("{}: {}".format(name, len(map)))
items = "\n".join(map.keys())
click.echo(items)
def print_host(host):
click.echo("{}\tv{}\t{}\t{}".format(
host.broadcast_address,
host.release_version,
host.rack,
host.datacenter))
def print_keyspace(keyspace_meta):
print_header("{} {}".format("keyspace:", keyspace_meta.name), True)
replication_strategy = keyspace_meta.replication_strategy
if replication_strategy:
click.echo("replication:\t{}".format(replication_strategy.export_for_schema()))
click.echo("durable writes:\t{}".format(keyspace_meta.durable_writes))
print_dict(keyspace_meta.tables, "tables")
print_dict(keyspace_meta.views, "views")
print_dict(keyspace_meta.indexes, "indexes")
print_dict(keyspace_meta.user_types, "user types")
print_dict(keyspace_meta.functions, "functions")
print_dict(keyspace_meta.aggregates, "aggregates")
def print_table(table_meta):
def max_column(column):
return len(column.name)
print_header("table: {}.{}".format(table_meta.keyspace_name, table_meta.name), True)
click.echo("primary key:\t(({}), {})".format(format_columns(table_meta.partition_key),
format_columns(table_meta.clustering_key)))
columns = table_meta.columns.values()
columns_text = "\n".join(["{}\t{}".format(c.name, c.cql_type) for c in columns])
max_len_column = max(columns, key=max_column)
print_header("{}: {}".format("columns", len(columns)))
click.echo(columns_text.expandtabs(len(max_len_column.name) + 2))
print_dict(table_meta.views, "views")
print_dict(table_meta.indexes, "indexes")
| apache-2.0 | -2,171,579,964,705,164,800 | 32.318681 | 92 | 0.652045 | false |
Grumpy-Mike/Mikes-Pi-Bakery | CurveBall/curvedBall.py | 1 | 3415 | # Curved Ball - a game for the Pi Glow board
# By Mike Cook - March 2015
import time, random, sys
from smbus import SMBus
import wiringpi2 as io
# command register addresses for the SN3218 IC used in PiGlow
CMD_ENABLE_OUTPUT = 0x00
CMD_ENABLE_LEDS = 0x13
CMD_SET_PWM_VALUES = 0x01
CMD_UPDATE = 0x16
SN3218 = 0x54 # i2c address of SN3218 IC
bus = None
try :
io.wiringPiSetupGpio()
except :
print"start IDLE with 'gksudo idle' from command line"
sys.exit()
pinList= [7,8,25] # GPIO pins for switches
lights = [0x00 for i in range(0,18)] # the LED brightness list
red = [0,6,17] # red LEDs
orange = [1,7,16] # orange LEDs
yellow = [2,8,15] # yellow LEDs
green = [3,5,13] # green LEDs
blue = [14,4,11] # blue LEDs
white = [12,9,10] # white LEDs
triangleIn = [red,orange,yellow,green,blue,white]
triangleOut = [white,blue,green,yellow,orange,red]
speed = 0.03 # delay is twice this
returnSpeed = 0.1 # for hit back
score = 0
def main():
initGPIO()
busInit()
while True: # repeat forever
wipe()
updateLEDs(lights)
while scanSwitches() != -1: #make sure fingers off
pass
pitch()
def pitch(): # throw the ball
global score
time.sleep(1.0) # delay before the throw - try making this random
arm = random.randint(0,2) # direction of curved ball
bat = False
push = -1
for triangle in range(0,5):
wipe() # clear all LEDs in the list
if bat:
lights[white[push]] = 0x20 # turn on bat LED
lights[triangleIn[triangle][arm]] = 0x80
updateLEDs(lights)
time.sleep(speed)
if not bat: # no switch pressed so far so look for one
push = scanSwitches() # switched pressed?
if push != -1:
bat = True # no more looking at switches
score = 6 - triangle # sooner you see it the higher the score
else:
lights[white[push]] = 0x20
updateLEDs(lights)
time.sleep(speed)
if arm == push:
print "hit - score ",score
for triangle in range(0,6): # hit it back
wipe()
lights[triangleOut[triangle][arm]] = 0x80
updateLEDs(lights)
time.sleep(returnSpeed)
time.sleep(0.7)
def initGPIO(): # set up the GPIO pins
for pin in range (0,3):
io.pinMode(pinList[pin],0) # make pin into an input
io.pullUpDnControl(pinList[pin],2) # enable pull up
def scanSwitches(): # look at each pin in turn
down = -1 # default return value means no switch pressed
for pin in range (0,3):
if io.digitalRead(pinList[pin]) == 0:
down = pin
return down
def busInit(): # start up the I2C bus and enable the outputs on the SN3218
global bus
bus = SMBus(1)
bus.write_byte_data(SN3218,CMD_ENABLE_OUTPUT, 0x01)
bus.write_i2c_block_data(SN3218, CMD_ENABLE_LEDS, [0xFF, 0xFF, 0xFF])
def updateLEDs(lights): # update the LEDs to reflect the lights list
bus.write_i2c_block_data(SN3218, CMD_SET_PWM_VALUES, lights)
bus.write_byte_data(SN3218,CMD_UPDATE, 0xFF)
def wipe(): # clear the lights list
global lights
for i in range(0,18):
lights[i] = 0
# Main program logic:
if __name__ == '__main__':
try:
main()
except KeyboardInterrupt:
# set all the LEDs to "off" when Ctrl+C is pressed before exiting
wipe()
updateLEDs(lights)
| gpl-2.0 | 4,215,678,575,726,886,400 | 30.330275 | 74 | 0.622255 | false |
gamajr/EZNCoder | engine/generator.py | 1 | 3020 | # -*- coding: utf-8 -*-
import string
from infoparser import MInfo
class MEGenerator():
"""Classe que gera linhas de comando para o MEncoder."""
def __init__(self):
self._cut_cmd = string.Template("")
self.info = MInfo()
self._supported_ops = ['sub','wmv2avi','avixvid']
def gen_convert_line(self, media_file, operation):
#TODO: Escrever DocString
if operation == 'sub':
resp = self._subtitle(media_file)
elif operation == 'wmv2avi':
resp = self._wmv2avi(media_file)
elif operation == 'avixvid':
resp = self._avixvid(media_file)
else:
resp = None
return resp
def gen_cut_line(self, media_file, cut_point=None):
"""Gera uma lista com as linhas de comando para cortar um video
atraves do MEncoder. Se os dois argumentos forem None, os video e
dividido em dois."""
pass
def _subtitle(self, media_file):
cmd = string.Template("""mencoder -oac $audio_opts -ovc xvid -xvidencopts
bitrate=$br -sub $srt_file -subpos 90 -subfont-text-scale 3
-subfont-outline 2 -subcp ISO-8859-1 -sub-bg-alpha 200 -o $conv_file $orig_file""")
base_name=media_file[:-4]
self.info.parse_data(base_name+'.avi')
kbps = int(self.info.get_vdata('Bit rate').split()[0])
if kbps % 50 != 0:
br = str(kbps + (50 - kbps % 50))
else:
br = str(kbps)
audio_opts=''
if self.info.get_adata('Codec ID/Hint')=='MP3':
audio_opts = 'copy'
else:
audio_opts = 'mp3lame -lameopts cbr:mode=2:br=192'
return ' '.join(cmd.substitute({'audio_opts':audio_opts, 'br':br,
'srt_file': base_name+'.srt', 'conv_file':base_name+'_sub.avi',
'orig_file':base_name+'.avi'}).split())
def _wmv2avi(self, media_file):
cmd = string.Template("""mencoder -oac mp3lame -lameopts cbr:mode=2:br=64
-ovc lavc -ofps 23.976 -o $conv_file $orig_file""")
base_name=media_file[:-4]
return ' '.join(cmd.substitute({'conv_file':base_name+'_conv.avi', 'orig_file':base_name+'.wmv'}).split())
def _avixvid(self, media_file):
cmd = string.Template("""mencoder -oac $audio_opts -ovc xvid -xvidencopts
bitrate=850 -o $conv_file $orig_file""")
base_name=media_file[:-4]
self.info.parse_data(base_name+'.avi')
audio_opts=''
if self.info.get_adata('Codec ID/Hint')=='MP3':
audio_opts = 'copy'
else:
audio_opts = 'mp3lame -lameopts cbr:mode=2:br=192'
return ' '.join(cmd.substitute({'audio_opts':audio_opts,
'conv_file':base_name+'_conv.avi', 'orig_file':base_name+'.avi'}).split())
def get_supported_operations(self):
return self._supported_ops
#TODO: Implementar gen_cut_line!!!!
#mencoder infile.wmv -ofps 23.976 -ovc lavc -oac copy -o outfile.avi | gpl-3.0 | 5,803,673,885,986,638,000 | 38.75 | 114 | 0.568543 | false |
indico/indico | indico/modules/events/sessions/operations.py | 1 | 6547 | # This file is part of Indico.
# Copyright (C) 2002 - 2021 CERN
#
# Indico is free software; you can redistribute it and/or
# modify it under the terms of the MIT License; see the
# LICENSE file for more details.
from flask import session
from indico.core import signals
from indico.core.db import db
from indico.modules.events.logs.models.entries import EventLogKind, EventLogRealm
from indico.modules.events.logs.util import make_diff_log
from indico.modules.events.models.events import EventType
from indico.modules.events.sessions import COORDINATOR_PRIV_SETTINGS, COORDINATOR_PRIV_TITLES, logger, session_settings
from indico.modules.events.sessions.models.blocks import SessionBlock
from indico.modules.events.sessions.models.sessions import Session
from indico.util.i18n import orig_string
def create_session(event, data):
"""
Create a new session with the information passed in the `data` argument.
"""
event_session = Session(event=event)
event_session.populate_from_dict(data)
db.session.flush()
event.log(EventLogRealm.management, EventLogKind.positive, 'Sessions',
f'Session "{event_session.title}" has been created', session.user,
meta={'session_id': event_session.id})
logger.info('Session %s created by %s', event_session, session.user)
return event_session
def create_session_block(session_, data):
block = SessionBlock(session=session_)
block.populate_from_dict(data)
db.session.flush()
session_.event.log(EventLogRealm.management, EventLogKind.positive, 'Sessions',
'Session block "{}" for session "{}" has been created'
.format(block.title, session_.title), session.user,
meta={'session_block_id': block.id})
logger.info('Session block %s created by %s', block, session.user)
return block
def update_session(event_session, data):
"""Update a session based on the information in the `data`."""
event_session.populate_from_dict(data)
db.session.flush()
signals.event.session_updated.send(event_session)
event_session.event.log(EventLogRealm.management, EventLogKind.change, 'Sessions',
f'Session "{event_session.title}" has been updated', session.user,
meta={'session_id': event_session.id})
logger.info('Session %s modified by %s', event_session, session.user)
def _delete_session_timetable_entries(event_session):
for block in event_session.blocks:
for contribution in block.contributions:
if contribution.timetable_entry:
db.session.delete(contribution.timetable_entry)
if not block.timetable_entry:
continue
for child_block in block.timetable_entry.children:
db.session.delete(child_block)
db.session.delete(block.timetable_entry)
def delete_session(event_session):
"""Delete session from the event."""
event_session.is_deleted = True
for contribution in event_session.contributions[:]:
contribution.session = None
_delete_session_timetable_entries(event_session)
signals.event.session_deleted.send(event_session)
event_session.event.log(EventLogRealm.management, EventLogKind.negative, 'Sessions',
f'Session "{event_session.title}" has been deleted', session.user,
meta={'session_id': event_session.id})
logger.info('Session %s deleted by %s', event_session, session.user)
def update_session_block(session_block, data):
"""Update a session block with data passed in the `data` argument."""
from indico.modules.events.timetable.operations import update_timetable_entry
start_dt = data.pop('start_dt', None)
if start_dt is not None:
session_block.timetable_entry.move(start_dt)
update_timetable_entry(session_block.timetable_entry, {'start_dt': start_dt})
session_block.populate_from_dict(data)
db.session.flush()
signals.event.session_block_updated.send(session_block)
session_block.event.log(EventLogRealm.management, EventLogKind.change, 'Sessions',
f'Session block "{session_block.title}" has been updated', session.user,
meta={'session_block_id': session_block.id})
logger.info('Session block %s modified by %s', session_block, session.user)
def delete_session_block(session_block):
from indico.modules.events.contributions.operations import delete_contribution
from indico.modules.events.timetable.operations import delete_timetable_entry
session_ = session_block.session
event = session_.event
unschedule_contribs = session_.event.type_ == EventType.conference
for contribution in session_block.contributions[:]:
contribution.session_block = None
if unschedule_contribs:
delete_timetable_entry(contribution.timetable_entry, log=False)
else:
delete_contribution(contribution)
for entry in session_block.timetable_entry.children[:]:
delete_timetable_entry(entry, log=False)
delete_timetable_entry(session_block.timetable_entry, log=False)
signals.event.session_block_deleted.send(session_block)
if session_block in session_.blocks:
session_.blocks.remove(session_block)
if not session_.blocks and session_.event.type != 'conference':
delete_session(session_)
db.session.flush()
event.log(EventLogRealm.management, EventLogKind.negative, 'Sessions',
f'Session block "{session_block.title}" has been deleted', session.user,
meta={'session_block_id': session_block.id})
logger.info('Session block %s deleted by %s', session_block, session.user)
def update_session_coordinator_privs(event, data):
changes = {}
for priv, enabled in data.items():
setting = COORDINATOR_PRIV_SETTINGS[priv]
if session_settings.get(event, setting) == enabled:
continue
session_settings.set(event, setting, enabled)
changes[priv] = (not enabled, enabled)
db.session.flush()
logger.info('Session coordinator privs of event %r updated with %r by %r', event, data, session.user)
if changes:
log_fields = {priv: orig_string(title) for priv, title in COORDINATOR_PRIV_TITLES.items()}
event.log(EventLogRealm.management, EventLogKind.change, 'Sessions', 'Coordinator privileges updated',
session.user, data={'Changes': make_diff_log(changes, log_fields)})
| mit | 4,079,880,723,672,840,700 | 45.764286 | 119 | 0.691462 | false |
Subsets and Splits
No saved queries yet
Save your SQL queries to embed, download, and access them later. Queries will appear here once saved.