Skip to content

Instantly share code, notes, and snippets.

View bilderbuchi's full-sized avatar
💭
I may be slow to respond.

Christoph Buchner bilderbuchi

💭
I may be slow to respond.
View GitHub Profile
@bilderbuchi
bilderbuchi / MCP-0027 Proposal update.md
Last active December 15, 2022 10:57
Proposed fix for dealing with literal constants in Modelica unit checking

Update proposal BB2a

This builds on my previous proposal, which was too wide in scope, and drops "empty units" from its scope, to retain the wildcard effect of variables with empty unit string.

In effect, we have to replace "expression containing only literal constants" with "expression containing only literal constants and mathematical operations". This deals with distinguishing between exp(...) and specificEnthalpy(...,...) situations.

This is a minimal-diff change. If agreeable, I propose a behaviour-neutral refactoring below (BB2b) that is a bit larger but makes the structure clearer.

Updated rule 1:

@bilderbuchi
bilderbuchi / failing_doctest.log
Last active October 24, 2020 17:03
Sphinx and pytest problem matchers for Github actions
...
Document: dev/adding_instruments
--------------------------------
**********************************************************************
File "dev/adding_instruments.rst", line 321, in default
Failed example:
extreme.read()
Expected:
'2'
Got:
@bilderbuchi
bilderbuchi / find_redundant_tests.py
Created November 7, 2017 13:57
Identify redundant tests from coverage data
"""Identify redundant tests from coverage data.
STATUS: Rough draft, not working 100% correctly, probably badly documented.
This needs smother (https://github.com/ChrisBeaumont/smother), a tool using coverage,
and offering a pytest plugin, which reports on which source section is covered by which tests.
Usage:
@bilderbuchi
bilderbuchi / check_leftover_pytest_issues.py
Last active October 24, 2017 11:20
Detect pytest PRs whose related issues have not been closed
from github import Github # uses https://github.com/PyGithub/PyGithub
mytoken = '' # insert your GH API token here
g = Github(login_or_token=mytoken)
repo = g.get_repo('pytest-dev/pytest')
candidates = {}
for m in (pr for pr in repo.get_pulls(state='closed') if pr.merged==True):
pr_number = m.number
print('Checking PR {}'.format(pr_number))
issuenr = None
files = m.get_files()
@bilderbuchi
bilderbuchi / PRs_merged_since_0.8.4.md
Created October 28, 2015 21:20
PRs that have been merged since the 0.8.4 release

Fetching tags... Selected tag 0.8.4, date: 2014-09-09 09:01:02 Fetching data...

  • Nr 4489 by NickHardeman : Bugfix glfw fullscreen multi osx
  • Nr 4488 by jvcleave : Arm7 cross compile update
  • Nr 4487 by NickHardeman : Bugfix libs for 10.8
  • Nr 4486 by ofTheo : bugfix for apothecary script fixes depends change directory - addresses #4481
  • Nr 4483 by arturoc : remove ofx3DModelLoader
@bilderbuchi
bilderbuchi / PRs_since_0.8.1.md
Created June 23, 2014 15:17
PRs merged 0.8.1.-0.8.2
  • Nr 3038 by danthemellowman: Fixing Assimp Example errors
  • Nr 3035 by danoli3 : Android Windows missing zip fix
  • Nr 3032 by admsyn : Add missing "case" for left alt key release in events example
  • Nr 3031 by admsyn : Use non-deprecated startThread() in ofOpenALSoundPlayer
  • Nr 3021 by superlukas : Fixed typo
  • Nr 3015 by arturoc : fix glfw keys on non english keyboards
  • Nr 3011 by ofTheo : blob support for ofxOsc.
  • Nr 3010 by ofTheo : Bugfix with ofxKi
@bilderbuchi
bilderbuchi / README.md
Created March 25, 2014 10:52
editing on the new Readme

openFrameworks is a C++ toolkit for creative coding. If you are new to OF, welcome!

folder structure

This release of OF comes with several folders:

@bilderbuchi
bilderbuchi / prs.md
Created March 21, 2014 13:13
Merged PRs since 0.8.0
  • Nr 2879 by jedahan : fix tr1/memory compile issue on OS X 10.9 for makefiles
  • Nr 2878 by jvcleave : re-enabling the uniqueShader for the RPi due to large texture performanc...
  • Nr 2877 by NickHardeman : Fix for mesh resolution parameters.
  • Nr 2876 by NickHardeman : Fix for the drawing of ofDrawArrow
  • Nr 2870 by sphaero : debian/install_dependencies.sh: fixed -n option not being respected in apt-cache show
  • Nr 2868 by danoli3 : Fixes #2832 iOSVideoGrabber
  • Nr 2865 by bakercp : SFCI Doc-Sprint PR.
  • [Nr 2852]( https://github.c
@bilderbuchi
bilderbuchi / coverage_bug_console.log
Last active December 23, 2015 21:29
Coverage bug demonstration. Existing source argument does not make include argument ignored
< this uses https://github.com/bilderbuchi/ofStateManager/tree/5a61f2159fe6d4da6b3a60521e9e62c82b634cae
clone the repo and try it out>
ofStateManager$ cd tests/
ofStateManager/tests$ ./run_coverage.py
============================= test session starts ==============================
platform linux2 -- Python 2.7.4 -- pytest-2.3.5
plugins: cov
collected 34 items
test_archive.py .....
#!/usr/bin/python
import sys
with open(sys.argv[1],'r') as input_file:
print input_file.read()