code
stringlengths
1
1.72M
language
stringclasses
1 value
class Measurement: def __init__(self,sensorname,timestamp,measureVal,errorCode): assert type(sensorname) is str self._sensorname = sensorname self._timestamp = timestamp self._measureVal = measureVal self._errorCode = errorCode def getSensorname(self): return se...
Python
class Sensor: def __init__(self,id,name): self._id = id self._name = name #Liste von [Measurement] self._measures = [] def getName(self): return str(self._name) def getId(self): return self._id def getMeasurements(self): return self._measures ...
Python
import datetime from libthermalraspi.database.Sensor import Sensor from libthermalraspi.database.MeasurementDAO import MeasurementDAO import sqlite3 class SensorDAO(Sensor): def __init__(self,id,name): Sensor.__init__(self,id,name) def readMyMeasurements(self,connection,fromTimestamp=None,toTimestamp...
Python
from libthermalraspi.database.Measurement import Measurement import libthermalraspi.database import sqlite3 class MeasurementDAO(Measurement): def __init__(self,sensorname,timestamp,measureVal,errorCode): Measurement.__init__(self,sensorname,timestamp,measureVal,errorCode) def insert(self,connection): ...
Python
import abc class DataStore(object): __metaclass__ = abc.ABCMeta @abc.abstractmethod def get_samples(self, fromDatetime, toDatetime): """Anzahl von Messwerten eines Zeitraumes aus der Datenbank auslesen. Parameter: fromDatetime -- Timestamp, Anfangszeitpunkt der Messwerte ...
Python
from libthermalraspi.database.MeasurementDAO import MeasurementDAO from libthermalraspi.database.SensorDAO import SensorDAO from libthermalraspi.database.DataStore import DataStore class DataStoreSQL(DataStore): def __init__(self,db): self._db = db def get_samples(self,fromTimestamp=None,toTimestamp=N...
Python
#!/usr/bin/python from libthermalraspi.database.DataStoreInMemory import DataStoreInMemory from libthermalraspi.services.SensorConfigReader import SensorConfigReader from libthermalraspi.services.parallelSampleCollector import ParallelSampleCollector from libthermalraspi.programlooper import ProgramLooper from libther...
Python
#!/usr/bin/env python from libthermalraspi.sensors.ad7414 import AD7414Thermometer # Create the I2CDevice with bus no. and device address ad7414 = AD7414Thermometer(1, 0x49) print "AD7414 I2C-implementation:" print("Temperature: %s" % ad7414.get_temperature())
Python
#! /usr/bin/python import sys, socket, time, datetime from libthermalraspi.sensors.simulation import CyclicThermometer from libthermalraspi.sensors.stds75 import Stds75 th = CyclicThermometer([1, 2.5, 3]) # th = Stds75(1, 0x4e) serversocket = socket.socket(socket.AF_INET, socket.SOCK_STREAM) serversocket.bind((sock...
Python
#! /usr/bin/python import socket, sys, threading # import drivers import libthermalraspi.sensors.stds75 import libthermalraspi.sensors.lm73device import libthermalraspi.sensors.simulation class SocketServer(): def __init__(self, host, port, thermometer): self.sock = socket.socket(socket.AF_INET, socket.SOCK_STR...
Python
#!/usr/bin/python from libthermalraspi.sensors.thermo_proxy_itmG2 import ThermoProxy_ItmG2 t= ThermoProxy_ItmG2() print("Temperature: %s" %t.get_temperature())
Python
#!/usr/bin/env python from libthermalraspi.sensors.itm11_g1_stds75 import Stds75 import time stds75 = Stds75(0, 0x4e) print "read/write implementation:" while(True): print("Temperature: %f" % stds75.get_temperature()) time.sleep(1)
Python
#!/usr/bin/env python from libthermalraspi.sensors.composite_g2_1 import CompositeSensor from libthermalraspi.sensors.simulation import CyclicThermometer t = CompositeSensor() t.append_sensor(CyclicThermometer([5])) t.append_sensor(CyclicThermometer([10])) t.append_sensor(CyclicThermometer([45])) print("AV...
Python
#!/usr/bin/python from libthermalraspi.unittests import easy_suite import unittest if __name__ == '__main__': unittest.TextTestRunner().run(easy_suite.suite) pass
Python
#!/usr/bin/python from libthermalraspi.sensors.tc74 import TC74Thermometer t= TC74Thermometer (1, 0x4d) print("Temperature: %s" %t.get_temperature())
Python
#!/usr/bin/python from libthermalraspi.programlooper import ProgramLooper looper = ProgramLooper(2) for i in looper: print i
Python
#!/usr/bin/env python from libthermalraspi.sensors.hyt221 import Hyt221 from libthermalraspi.sensors.hyt221_smbus import Hyt221SMBus hyt1 = Hyt221(1, 0x28) print("read/write implementation:") print("Temperature: %s" % hyt1.get_temperature()) print("Humidity: %s" % hyt1.get_humidity()) hyt2 = Hyt221(1, 0x...
Python
#! /usr/bin/python import sys, socket, time, datetime from libthermalraspi.sensors.simulation import CyclicThermometer from libthermalraspi.sensors.stds75 import Stds75 th = CyclicThermometer([1, 2.5, 3]) # th = Stds75(1, 0x4e) serversocket = socket.socket(socket.AF_INET, socket.SOCK_STREAM) serversocket.bind((sock...
Python
#!/usr/bin/python from libthermalraspi.sensors.thermo_proxy_itmG2 import ThermoProxy_ItmG2 t= ThermoProxy_ItmG2() print("Temperature: %s" %t.get_temperature())
Python
#!/usr/bin/python from libthermalraspi.unittests import easy_suite import unittest if __name__ == '__main__': unittest.TextTestRunner().run(easy_suite.suite) pass
Python
#!/usr/bin/env python from libthermalraspi.sensors.ad7414 import AD7414Thermometer # Create the I2CDevice with bus no. and device address ad7414 = AD7414Thermometer(1, 0x49) print "AD7414 I2C-implementation:" print("Temperature: %s" % ad7414.get_temperature())
Python
#!/usr/bin/env python from libthermalraspi.sensors.hyt221 import Hyt221 from libthermalraspi.sensors.hyt221_smbus import Hyt221SMBus hyt1 = Hyt221(1, 0x28) print("read/write implementation:") print("Temperature: %s" % hyt1.get_temperature()) print("Humidity: %s" % hyt1.get_humidity()) hyt2 = Hyt221(1, 0x...
Python
#!/usr/bin/python from libthermalraspi.programlooper import ProgramLooper looper = ProgramLooper(2) for i in looper: print i
Python
#!/usr/bin/python from libthermalraspi.sensors.tc74 import TC74Thermometer t= TC74Thermometer (1, 0x4d) print("Temperature: %s" %t.get_temperature())
Python
#!/usr/bin/python from libthermalraspi.unittests import test_compositeThermometer_SWD11G2_3 import unittest if __name__ == '__main__': unittest.TextTestRunner().run(test_compositeThermometer_SWD11G2_3.suite) pass
Python
#!/usr/bin/python from optparse import OptionParser from libthermalraspi.database.DataStoreInMemory import DataStoreInMemory from libthermalraspi.network.tempserver import TempServer import sqlite3 import logging # instantiate TempServer as see fit, and run it parser = OptionParser() parser.add_option("-f", "--dbfile...
Python
#! /usr/bin/python import socket, sys, threading # import drivers import libthermalraspi.sensors.stds75 import libthermalraspi.sensors.lm73device import libthermalraspi.sensors.simulation class SocketServer(): def __init__(self, host, port, thermometer): self.sock = socket.socket(socket.AF_INET, socket.SOCK_STR...
Python
#!/usr/bin/env python from libthermalraspi.sensors.composite_g2_1 import CompositeSensor from libthermalraspi.sensors.simulation import CyclicThermometer t = CompositeSensor() t.append_sensor(CyclicThermometer([5])) t.append_sensor(CyclicThermometer([10])) t.append_sensor(CyclicThermometer([45])) print("AV...
Python
#!/usr/bin/python from libthermalraspi.database.DataStoreInMemory import DataStoreInMemory from libthermalraspi.services.SensorConfigReader import SensorConfigReader from libthermalraspi.services.parallelSampleCollector import ParallelSampleCollector from libthermalraspi.programlooper import ProgramLooper from libther...
Python
#! /usr/bin/python import sys, socket from sensors.simulation import Thermometer class ThermoProxy(): """Connects with a server""" def __init__(self, host="127.0.0.1", port=1024): self._sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) try: self._so...
Python
#!/usr/bin/env python from libthermalraspi.sensors.itm11_g1_stds75 import Stds75 import time stds75 = Stds75(0, 0x4e) print "read/write implementation:" while(True): print("Temperature: %f" % stds75.get_temperature()) time.sleep(1)
Python
#!/usr/bin/python from libthermalraspi.unittests import test_compositeThermometer_SWD11G2_3 import unittest if __name__ == '__main__': unittest.TextTestRunner().run(test_compositeThermometer_SWD11G2_3.suite) pass
Python
#!/usr/bin/python from optparse import OptionParser from libthermalraspi.database.DataStoreInMemory import DataStoreInMemory from libthermalraspi.network.tempserver import TempServer import sqlite3 import logging # instantiate TempServer as see fit, and run it parser = OptionParser() parser.add_option("-f", "--dbfile...
Python
#! /usr/bin/python import sys, socket from sensors.simulation import Thermometer class ThermoProxy(): """Connects with a server""" def __init__(self, host="127.0.0.1", port=1024): self._sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) try: self._so...
Python
#!/usr/bin/python from Queue import Queue import threading import time import os # -------------------------------------------------------------------- # FROM THIS ONE YOU CAN COPY. THREAD SAFE, NON-POLLING! # -------------------------------------------------------------------- # items are produced by one thread, an...
Python
#!/usr/bin/python import threading import time import os # -------------------------------------------------------------------- # WARNING: THIS PROGRAM IS A DEMONSTRATION OF SOME OF THE REALLY BAD # (BUT, SADLY, POPULAR) PRACTICES OF INTER-THREAD COMMUNICATION. DON'T # EVER COPY FROM IT!!! # WEAKNESSES: # * locking...
Python
#!/usr/bin/python import threading import time import os # -------------------------------------------------------------------- # WARNING: THIS PROGRAM IS A DEMONSTRATION OF SOME OF THE REALLY BAD # (BUT, SADLY, POPULAR) PRACTICES OF INTER-THREAD COMMUNICATION. DON'T # EVER COPY FROM IT!!! # WEAKNESSES: # * the con...
Python
#!/usr/bin/python import threading import time import os # -------------------------------------------------------------------- # WARNING: THIS PROGRAM IS A DEMONSTRATION OF SOME OF THE REALLY BAD # (BUT, SADLY, POPULAR) PRACTICES OF INTER-THREAD COMMUNICATION. DON'T # EVER COPY FROM IT!!! # WEAKNESSES: # * two thr...
Python
#!/usr/bin/python import threading import time import os # -------------------------------------------------------------------- # WARNING: THIS PROGRAM IS A DEMONSTRATION OF SOME OF THE REALLY BAD # (BUT, SADLY, POPULAR) PRACTICES OF INTER-THREAD COMMUNICATION. DON'T # EVER COPY FROM IT!!! # WEAKNESSES: # * locking...
Python
#!/usr/bin/python import threading import time import os # -------------------------------------------------------------------- # WARNING: THIS PROGRAM IS A DEMONSTRATION OF SOME OF THE REALLY BAD # (BUT, SADLY, POPULAR) PRACTICES OF INTER-THREAD COMMUNICATION. DON'T # EVER COPY FROM IT!!! # WEAKNESSES: # * two thr...
Python
#!/usr/bin/python from Queue import Queue import threading import time import os # -------------------------------------------------------------------- # FROM THIS ONE YOU CAN COPY. THREAD SAFE, NON-POLLING! # -------------------------------------------------------------------- # items are produced by one thread, an...
Python
#!/usr/bin/python import threading import time import os # -------------------------------------------------------------------- # WARNING: THIS PROGRAM IS A DEMONSTRATION OF SOME OF THE REALLY BAD # (BUT, SADLY, POPULAR) PRACTICES OF INTER-THREAD COMMUNICATION. DON'T # EVER COPY FROM IT!!! # WEAKNESSES: # * the con...
Python
#!/usr/bin/env python import imageshack import sys if __name__ == "__main__": if len(sys.argv)!=3: print "Usage upload.py <devkey> <filename/url>" sys.exit(1) u = imageshack.Uploader(sys.argv[1]) try: if sys.argv[2].startswith("http://"): print u.uploadURL(sys.argv[2]...
Python
#!/usr/bin/env python import yfrog import sys if __name__ == "__main__": if len(sys.argv)<4: print "Usage upload.py <username> <password> <filename/url> [<text>] [<source>]" sys.exit(1) u = yfrog.Uploader() if len(sys.argv)>=5: msg = sys.argv[4] else: msg = None if...
Python
#!/usr/bin/env python import os import sys import getopt import imageshack def usage(): print "Usage apitest.py --file filename --key key [--id ID] [--cookie COOKIE] [--tags TAGS] [--visibility PUBLIC] [--username USERNAME] [--password PASSWORD] [--blocksize=BLOCKSIZE] [--numblocks=NUMBLOCKS]" def getopts(arg...
Python
#!/usr/bin/env python ''' Client API library to upload images and videos to yfrog.com Using Yfrog public API, as described here: http://yfrog.com/api.php ''' import urllib2_file import urllib2 import socket from mimetypes import guess_type from xml.dom.minidom import parseString from os.path import exists API_UR...
Python
''' yfrog api ''' from upload import *
Python
#!/usr/bin/env python #### # Version: 0.2.0 # - UTF-8 filenames are now allowed (Eli Golovinsky)<br/> # - File object is no more mandatory, Object only needs to have seek() read() attributes (Eli Golovinsky)<br/> # # Version: 0.1.0 # - upload is now done with chunks (Adam Ambrose) # # Version: older # THANKS TO: # b...
Python
#!/usr/bin/env python ''' Client API library to upload images and videos to imageshack.us Using "Unified upload API" as described here: http://reg.imageshack.us/content.php?page=developerpublic ''' import urllib2_file import urllib2 import socket import httplib from mimetypes import guess_type from xml.dom.minido...
Python
#!/usr/bin/env python ''' Client API library for chuncked video uploading to imageshack.us Using "Streaming upload API" as described here: http://code.google.com/p/imageshackapi/wiki/StreamingAPI ''' import os import urllib import httplib import urllib2 from urlparse import urlparse from os.path import exists fro...
Python
''' imageshack api ''' from upload import * from chuncked_upload import Uploader as ChunkedUploader
Python
#!/usr/bin/env python #### # Version: 0.2.0 # - UTF-8 filenames are now allowed (Eli Golovinsky)<br/> # - File object is no more mandatory, Object only needs to have seek() read() attributes (Eli Golovinsky)<br/> # # Version: 0.1.0 # - upload is now done with chunks (Adam Ambrose) # # Version: older # THANKS TO: # b...
Python
#!/usr/bin/env python """ This file is executed from ../setup.py only. Calculate cumulative version from Revision strings. Copyright 2000 Pearu Peterson all rights reserved, Pearu Peterson <pearu@ioc.ee> Permission to use, modify, and distribute this software is given under the terms of the LGPL. See http...
Python
#!/usr/bin/env python import sys sys.path = ['..']+sys.path if sys.version[:3]=='1.5': from lib152 import * else: from lib import * #from pyvtk import * structure = PolyData(points=[[0,0,0],[1,0,0],[1,1,0],[0,1,0], [0,0,1],[1,0,1],[1,1,1],[0,1,1]], polygons=[...
Python
#!/usr/bin/env python import sys sys.path = ['..']+sys.path if sys.version[:3]=='1.5': from lib152 import * else: from lib import * #from pyvtk import * points = [[0,0,0],[1,0,0],[2,0,0],[0,1,0],[1,1,0],[2,1,0], [0,0,1],[1,0,1],[2,0,1],[0,1,1],[1,1,1],[2,1,1], [0,1,2],[1,1,2],[2,1,2],[0,1...
Python
#!/usr/bin/env python import sys sys.path = ['..']+sys.path if sys.version[:3]=='1.5': from lib152 import * else: from lib import * #from pyvtk import * vtk = VtkData(StructuredPoints([3,4,6]), PointData(Scalars([0,0,0,0,0,0,0,0,0,0,0,0, 0,5,10,15,20,25,25,20,15...
Python
#!/usr/bin/env python """ Copyright 2001 Pearu Peterson all rights reserved, Pearu Peterson <pearu@ioc.ee> Permission to use, modify, and distribute this software is given under the terms of the LGPL. See http://www.fsf.org NO WARRANTY IS EXPRESSED OR IMPLIED. USE AT YOUR OWN RISK. $Revision: 1.1 $ $Date:...
Python
#!/usr/bin/env python """ Copyright 2001 Pearu Peterson all rights reserved, Pearu Peterson <pearu@ioc.ee> Permission to use, modify, and distribute this software is given under the terms of the LGPL. See http://www.fsf.org NO WARRANTY IS EXPRESSED OR IMPLIED. USE AT YOUR OWN RISK. $Revision: 1.1 $ $Date:...
Python
#!/usr/bin/env python """ Copyright 2001 Pearu Peterson all rights reserved, Pearu Peterson <pearu@ioc.ee> Permission to use, modify, and distribute this software is given under the terms of the LGPL. See http://www.fsf.org NO WARRANTY IS EXPRESSED OR IMPLIED. USE AT YOUR OWN RISK. $Revision: 1.1 $ $Date:...
Python
#!/usr/bin/env python """ Copyright 2001 Pearu Peterson all rights reserved, Pearu Peterson <pearu@ioc.ee> Permission to use, modify, and distribute this software is given under the terms of the LGPL. See http://www.fsf.org NO WARRANTY IS EXPRESSED OR IMPLIED. USE AT YOUR OWN RISK. $Revision: 1.1 $ $Date:...
Python
#!/usr/bin/env python """ Copyright 2001 Pearu Peterson all rights reserved, Pearu Peterson <pearu@ioc.ee> Permission to use, modify, and distribute this software is given under the terms of the LGPL. See http://www.fsf.org NO WARRANTY IS EXPRESSED OR IMPLIED. USE AT YOUR OWN RISK. $Revision: 1.1 $ $Date:...
Python
#!/usr/bin/env python """ Copyright 2001 Pearu Peterson all rights reserved, Pearu Peterson <pearu@ioc.ee> Permission to use, modify, and distribute this software is given under the terms of the LGPL. See http://www.fsf.org NO WARRANTY IS EXPRESSED OR IMPLIED. USE AT YOUR OWN RISK. $Revision: 1.1 $ $Date:...
Python
#!/usr/bin/env python """ Copyright 2001 Pearu Peterson all rights reserved, Pearu Peterson <pearu@ioc.ee> Permission to use, modify, and distribute this software is given under the terms of the LGPL. See http://www.fsf.org NO WARRANTY IS EXPRESSED OR IMPLIED. USE AT YOUR OWN RISK. $Revision: 1.1 $ $Date:...
Python
#!/usr/bin/env python """ Copyright 2001 Pearu Peterson all rights reserved, Pearu Peterson <pearu@ioc.ee> Permission to use, modify, and distribute this software is given under the terms of the LGPL. See http://www.fsf.org NO WARRANTY IS EXPRESSED OR IMPLIED. USE AT YOUR OWN RISK. $Revision: 1.1 $ $Date:...
Python
#!/usr/bin/env python """ Copyright 2001 Pearu Peterson all rights reserved, Pearu Peterson <pearu@ioc.ee> Permission to use, modify, and distribute this software is given under the terms of the LGPL. See http://www.fsf.org NO WARRANTY IS EXPRESSED OR IMPLIED. USE AT YOUR OWN RISK. $Revision: 1.1 $ $Date:...
Python
#!/usr/bin/env python """ Copyright 2001 Pearu Peterson all rights reserved, Pearu Peterson <pearu@ioc.ee> Permission to use, modify, and distribute this software is given under the terms of the LGPL. See http://www.fsf.org NO WARRANTY IS EXPRESSED OR IMPLIED. USE AT YOUR OWN RISK. $Revision: 1.1 $ $Date:...
Python
#!/usr/bin/env python """ Copyright 2001 Pearu Peterson all rights reserved, Pearu Peterson <pearu@ioc.ee> Permission to use, modify, and distribute this software is given under the terms of the LGPL. See http://www.fsf.org NO WARRANTY IS EXPRESSED OR IMPLIED. USE AT YOUR OWN RISK. $Revision: 1.1 $ $Date:...
Python
#!/usr/bin/env python """ Copyright 2001 Pearu Peterson all rights reserved, Pearu Peterson <pearu@ioc.ee> Permission to use, modify, and distribute this software is given under the terms of the LGPL. See http://www.fsf.org NO WARRANTY IS EXPRESSED OR IMPLIED. USE AT YOUR OWN RISK. $Revision: 1.1 $ $Date:...
Python
#!/usr/bin/env python """ PyVTK provides tools for manipulating VTK files in Python. VtkData - create VTK files from Python objects. """ """ Copyright 2001 Pearu Peterson all rights reserved, Pearu Peterson <pearu@ioc.ee> Permission to use, modify, and distribute this software is given under the terms of th...
Python
__version__ = "0.4.85"
Python
#!/usr/bin/env python """ Copyright 2001 Pearu Peterson all rights reserved, Pearu Peterson <pearu@ioc.ee> Permission to use, modify, and distribute this software is given under the terms of the LGPL. See http://www.fsf.org NO WARRANTY IS EXPRESSED OR IMPLIED. USE AT YOUR OWN RISK. $Revision: 1.1 $ $Date:...
Python
#!/usr/bin/env python """ Copyright 2001 Pearu Peterson all rights reserved, Pearu Peterson <pearu@ioc.ee> Permission to use, modify, and distribute this software is given under the terms of the LGPL. See http://www.fsf.org NO WARRANTY IS EXPRESSED OR IMPLIED. USE AT YOUR OWN RISK. $Revision: 1.1 $ $Date:...
Python
#!/usr/bin/env python """ Copyright 2001 Pearu Peterson all rights reserved, Pearu Peterson <pearu@ioc.ee> Permission to use, modify, and distribute this software is given under the terms of the LGPL. See http://www.fsf.org NO WARRANTY IS EXPRESSED OR IMPLIED. USE AT YOUR OWN RISK. $Revision: 1.1 $ $Date:...
Python
#!/usr/bin/env python """ Copyright 2001 Pearu Peterson all rights reserved, Pearu Peterson <pearu@ioc.ee> Permission to use, modify, and distribute this software is given under the terms of the LGPL. See http://www.fsf.org NO WARRANTY IS EXPRESSED OR IMPLIED. USE AT YOUR OWN RISK. $Revision: 1.1 $ $Date:...
Python
#!/usr/bin/env python """ Copyright 2001 Pearu Peterson all rights reserved, Pearu Peterson <pearu@ioc.ee> Permission to use, modify, and distribute this software is given under the terms of the LGPL. See http://www.fsf.org NO WARRANTY IS EXPRESSED OR IMPLIED. USE AT YOUR OWN RISK. $Revision: 1.1 $ $Date:...
Python
from __future__ import print_function from future.builtins import dict from future.builtins import open #!/usr/bin/env python import os import sys from distutils.core import setup version_file = os.path.join('lib','__version__.py') if 1 or not os.path.exists(version_file): major_version = 0 minor_version = 4 ...
Python
#!/usr/bin/env python from __future__ import print_function from __future__ import absolute_import from future.builtins import range from future.builtins import map """ Field """ """ Copyright 2001 Pearu Peterson all rights reserved, Pearu Peterson <pearu@ioc.ee> Permission to use, modify, and distribute thi...
Python
#!/usr/bin/env python from __future__ import print_function from __future__ import absolute_import from future.builtins import zip from future.builtins import range from future.builtins import map """ UnstructuredGrid """ """ Copyright 2001 Pearu Peterson all rights reserved, Pearu Peterson <pearu@ioc.ee> Pe...
Python
#!/usr/bin/env python from __future__ import print_function from __future__ import absolute_import from future.builtins import range from future.builtins import map """ Tensors """ """ Copyright 2001 Pearu Peterson all rights reserved, Pearu Peterson <pearu@ioc.ee> Permission to use, modify, and distribute t...
Python
#!/usr/bin/env python from __future__ import print_function from __future__ import absolute_import from future.builtins import zip from future.builtins import range from future.builtins import map """ UnstructuredGrid """ """ Copyright 2001 Pearu Peterson all rights reserved, Pearu Peterson <pearu@ioc.ee> Pe...
Python
#!/usr/bin/env python from __future__ import print_function from __future__ import absolute_import from future.builtins import range from future.builtins import map """ LookupTable """ """ Copyright 2001 Pearu Peterson all rights reserved, Pearu Peterson <pearu@ioc.ee> Permission to use, modify, and distribu...
Python
#!/usr/bin/env python from __future__ import print_function from __future__ import absolute_import from future.builtins import map """ PointData, CellData """ """ Copyright 2001 Pearu Peterson all rights reserved, Pearu Peterson <pearu@ioc.ee> Permission to use, modify, and distribute this software is given ...
Python
#!/usr/bin/env python from __future__ import print_function from __future__ import absolute_import from future.builtins import range from future.builtins import map """ TextureCoordinates """ """ Copyright 2001 Pearu Peterson all rights reserved, Pearu Peterson <pearu@ioc.ee> Permission to use, modify, and d...
Python
#!/usr/bin/env python from __future__ import print_function from __future__ import absolute_import from future.builtins import map """ Vectors """ """ Copyright 2001 Pearu Peterson all rights reserved, Pearu Peterson <pearu@ioc.ee> Permission to use, modify, and distribute this software is given under the te...
Python
#!/usr/bin/env python from __future__ import absolute_import from future.builtins import str """ DataSetAttr """ """ Copyright 2001 Pearu Peterson all rights reserved, Pearu Peterson <pearu@ioc.ee> Permission to use, modify, and distribute this software is given under the terms of the LGPL. See http://www.f...
Python
#!/usr/bin/env python from __future__ import division from __future__ import print_function from __future__ import absolute_import from future.builtins import map """ Normals """ """ Copyright 2001 Pearu Peterson all rights reserved, Pearu Peterson <pearu@ioc.ee> Permission to use, modify, and distribute thi...
Python
#!/usr/bin/env python from __future__ import absolute_import from future.builtins import range from functools import reduce """ DataSet """ """ Copyright 2001 Pearu Peterson all rights reserved, Pearu Peterson <pearu@ioc.ee> Permission to use, modify, and distribute this software is given under the terms of ...
Python
#!/usr/bin/env python from __future__ import print_function from __future__ import absolute_import from future.builtins import map """ StructuredGrid """ """ Copyright 2001 Pearu Peterson all rights reserved, Pearu Peterson <pearu@ioc.ee> Permission to use, modify, and distribute this software is given under...
Python
#!/usr/bin/env python from __future__ import print_function from __future__ import absolute_import from future.builtins import map """ Scalars """ """ Copyright 2001 Pearu Peterson all rights reserved, Pearu Peterson <pearu@ioc.ee> Permission to use, modify, and distribute this software is given under the te...
Python
#!/usr/bin/env python from __future__ import print_function from __future__ import absolute_import from future.builtins import range from future.builtins import open """ PyVTK provides tools for manipulating VTK files in Python. VtkData - create VTK files from Python / read VTK files to Python """ """ Copyright 2001 ...
Python
__version__ = "0.4.85"
Python
#!/usr/bin/env python from __future__ import print_function from __future__ import absolute_import from future.builtins import range from future.builtins import map """ PolyData """ """ Copyright 2001 Pearu Peterson all rights reserved, Pearu Peterson <pearu@ioc.ee> Permission to use, modify, and distribute ...
Python
#!/usr/bin/env python from __future__ import division from __future__ import print_function from __future__ import absolute_import from future.builtins import round from future.builtins import int from future.builtins import range from future.builtins import map from functools import reduce """ Common functions/methods...
Python
#!/usr/bin/env python from __future__ import print_function from __future__ import absolute_import from future.builtins import range from future.builtins import map """ ColorScalars """ """ Copyright 2001 Pearu Peterson all rights reserved, Pearu Peterson <pearu@ioc.ee> Permission to use, modify, and distrib...
Python
#!/usr/bin/env python from __future__ import print_function from __future__ import absolute_import from future.builtins import map """ RectilinearGrid """ """ Copyright 2001 Pearu Peterson all rights reserved, Pearu Peterson <pearu@ioc.ee> Permission to use, modify, and distribute this software is given unde...
Python
#!/usr/bin/env python from __future__ import print_function from __future__ import absolute_import from future.builtins import map from future.builtins import range """ StructuredPoints """ """ Copyright 2001 Pearu Peterson all rights reserved, Pearu Peterson <pearu@ioc.ee> Permission to use, modify, and dis...
Python
''' Created on Jan 22, 2012 @author: yang ''' import unittest from google.appengine.ext import testbed import model.setting as setting class Test(unittest.TestCase): def setUp(self): #create an instance of the Testbed class. self.testbed = testbed.Testbed() self.testbed.activate(); ...
Python
# -*- coding: utf-8 -*- import os,logging from google.appengine.api import users from google.appengine.ext import db from google.appengine.ext.db import Model as DBModel from google.appengine.api import memcache from google.appengine.api import mail from google.appengine.api import urlfetch from google.appengi...
Python
# -*- coding: utf-8 -*- """ flask.module ~~~~~~~~~~~~ Implements a class that represents module blueprints. :copyright: (c) 2011 by Armin Ronacher. :license: BSD, see LICENSE for more details. """ import os from .blueprints import Blueprint def blueprint_is_module(bp): """Used to figure ou...
Python
# -*- coding: utf-8 -*- """ flask.exthook ~~~~~~~~~~~~~ Redirect imports for extensions. This module basically makes it possible for us to transition from flaskext.foo to flask_foo without having to force all extensions to upgrade at the same time. When a user does ``from flask.ext.foo import...
Python