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 | |
import matplotlib.pyplot as plt | |
import plotly.tools as tls | |
import json | |
import jinja2 | |
template_str = """<!Doctype Html> | |
<html> | |
<head> |
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 asyncio | |
import click | |
async def do_some_work(duration): | |
print("Function performs some initialization, runs some command, waits and then stops") | |
## some init functions | |
## start operation |
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 saleae import automation | |
from datetime import datetime | |
import os | |
import os.path | |
manager = automation.Manager.connect(port=10430) | |
while(True): |
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 matplotlib.pyplot as plt | |
import matplotlib.patches as patches | |
import skrf as rf | |
def plot_s1p(title, path, files): | |
fig, (ax) = plt.subplots(1,1, figsize=(20,10)) | |
out = "" | |
for f in files: | |
net = rf.Network(path+f) | |
net.frequency.unit = "mhz" |
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 -*- | |
""" | |
Embed images into HTML document | |
""" | |
import base64 | |
import mimetypes | |
import os | |
import re |