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 | |
import pytest | |
import some_lib | |
@pytest.fixture | |
def not_a_day_over(): | |
return 29 | |
def test_current_age(not_a_day_over): |
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
#!/bin/bash | |
# This is an example showing how to update a value of a specified key | |
# (that is potentially nested) in a JSON file using shell variables | |
# in some shell script. For example, some utility for updatiing in-place | |
# a common set of fields in a JSON configuration file. | |
# In the snippet below, we assume that the input is a key ("register_name") | |
# in some nested JSON object whose path is "RD53B.GlobalConfig". | |
filename=${1} |
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 | |
import matplotlib.pyplot as plt | |
import numpy as np | |
from scipy.interpolate import griddata | |
import json | |
## | |
## YARR histogram data output file | |
## |
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
//std/stl | |
#include <string> | |
#include <memory> | |
#include <stdint.h> | |
#include <map> | |
// arrow/parquet | |
#include <arrow/api.h> | |
#include <arrow/io/api.h> | |
#include <parquet/arrow/reader.h> |
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 | |
# create dummy two-dimensional (3x3) data that represents | |
# per-pixel measured quantities taken at various "time steps" | |
# (say, 4 of such steps): | |
pixel_maps = np.asarray([ | |
[ | |
[0, 0, 0], | |
[2, 2, 2], | |
[3, 3, 3], |