This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class _A33120(object): | |
"""Agilent 33120A Function/Arbitrary Waveform Generator | |
""" | |
# Here goes the code for the instrument functions that | |
# are available in *both* GPIB and RS-232 | |
class A33120Serial(_A33120, SerialDriver): | |
"""Agilent 33120A Function/Arbitrary Waveform Generator |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from collections import defaultdict | |
import concurrent.futures | |
class TasksGroup(object): | |
"""A group of tasks with dependencies. | |
>>> tasks = TasksGroup() | |
>>> @tasks.add() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import numpy as np | |
class C(object): | |
def __init__(self, value): | |
self.value = value | |
def __getattr__(self, name): | |
return getattr(self.value, name) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SampleRateUnit = {'Seconds': '0', 'Minutes': '1', 'Hours': '2', | |
'Days': '3', '%': '4'} | |
SamplePeriodUnit = {'Seconds': '0', 'Minutes': '1', 'Hours': '2', | |
'Days': '3', 'Weeks': '4', 'Pulses': '5'} | |
TotalDurationUnit = {'Period': '0', 'Seconds': '1', 'Minutes': '2', | |
'Hours': '3', 'Days': '4', 'Weeks': '5', 'Continuous': '6', | |
'predefinded': '7'} | |
TimeStampEnabled = {False: 0, True: 1} | |
@Feat(values=(None, SampleRateUnit, None, SamplePeriodUnit, None, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from __future__ import division, unicode_literals, print_function, absolute_import | |
import re | |
from collections import defaultdict | |
_NEST_SCOPES = {'[': ']', '(': ')', '{': '}'} | |
_STR_SCOPES = '"' + "'" | |
#: Regex to find function calls. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
""" | |
Camlistore Flux Capacitor | |
~~~~~~~~~~~~~~~~~~~~~~~~~ | |
A GUI to travel through time in your filesystem using Camlistore. | |
:copyright: 2014 by Hernan E. Grecco. | |
:license: BSD. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
http://olgabot.github.io/prettyplotlib/ | |
http://damon-is-a-geek.com/publication-ready-the-first-time-beautiful-reproducible-plots-with-matplotlib.html | |
http://datasciencelab.wordpress.com/2013/12/21/beautiful-plots-with-pandas-and-matplotlib/ | |
http://www.huyng.com/posts/sane-color-scheme-for-matplotlib/ | |
http://stanford.edu/~mwaskom/software/seaborn/index.html | |
http://nbviewer.ipython.org/gist/olgabot/5357268 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/env python | |
# -*- coding: utf-8 -*- | |
import sys | |
if not sys.version_info >= (3, 2, 1): | |
print('Lantz requires Python >= 3.2.1') | |
sys.exit(1) | |
import os |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<link rel="import" href="../paper-tabs/paper-tabs.html"> | |
<link rel="import" href="../paper-tabs/paper-tab.html"> | |
<link rel="import" href="../core-icon-button/core-icon-button.html"> | |
<link rel="import" href="../core-toolbar/core-toolbar.html"> | |
<link rel="import" href="../core-tooltip/core-tooltip.html"> | |
<polymer-element name="my-element"> | |
<template> | |
<style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
""" | |
Resource Name handling routines | |
:copyright: 2014 by PyVISA-sim Authors, see AUTHORS for more details. | |
:license: MIT, see LICENSE for more details. | |
""" | |
from __future__ import division, unicode_literals, print_function, absolute_import |
OlderNewer