This file contains hidden or 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 | |
| # any questions to my.name@gmail.com | |
| TODAY=$(date +%Y%m%d) | |
| START=${1} | |
| HOURS=${2} | |
| # how many ms to run | |
| MS=$((3600 * ${HOURS} * 1000)) |
This file contains hidden or 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 h5py | |
| import hdf5plugin | |
| import sys | |
| def verify(filename): | |
| with h5py.File(filename, "r") as f: | |
| data = f["data"] | |
| nn = data.shape[0] | |
| h = None |
This file contains hidden or 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 h5py | |
| import numpy | |
| import hdf5plugin | |
| import time | |
| NN = 1024 | |
| NY = 4096 | |
| NX = 4096 |
This file contains hidden or 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
| # generate 5x7 font bitmap as 5 bytes / char | |
| # | |
| # (C) Graeme Winter, 2021 | |
| # | |
| # Encoding: each column of 7 bits is encoded top down with LSB as top -> | |
| # horizontal line across the top is 0x01 0x01 0x01 0x01 0x01, vertical line | |
| # on left side of box only would be 0x7f 0x00 0x00 0x00 0x00. | |
| __bitmap = { | |
| 0x0: (0x0, 0x0, 0x0, 0x0, 0x0), |
This file contains hidden or 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
| BRANCH=$(git branch 2>/dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/\1/') | |
| CHANGED_FILES=$(git diff --name-only master...${BRANCH} -- "*.py") | |
| [ -z "${CHANGED_FILES}" ] && echo There are no relevant changes. Skipping test. && exit 0 | |
| echo Running flake8 on changed files: | |
| flake8 --select=E711,E712,E713,E714,E721,E722,E901,F401,F402,F403,F632,F811,F812,F821,F822,F841,F901,W191,W602,W603,W604,W605,W606 $CHANGED_FILES | grep -v "'xrange'" | grep -v "'cmp'" | |
NewerOlder