forked from M-Labs/artiq
1
0
Fork 0
artiq/artiq
David Nadlinger 9e3b6faceb compiler: Map host numpy.bool_ values to TBool
Since we don't implement any integer-like operations for TBool
(addition, bitwise not, etc.), TBool is currently neither
strictly equivalent to builtin bool nor numpy.bool_, but through
very obvious compiler errors (operation not supported) rather than
silently different runtime behaviour.

Just mapping both to TBool thus is a huge improvement over the
current behaviour (where numpy.False_ is a true-like object). In
the future, we could still implement more operations for TBool,
presumably following numpy.bool_ rather than the builtin type,
just like builtin integers get translated to the numpy-like
TInt{32,64}.

GitHub: Fixes #1275.
2021-03-21 18:44:05 +08:00
..
applets gui: quamash -> qasync 2020-12-12 21:59:25 +08:00
browser artiq_browser: update h5py api call 2020-12-17 14:23:16 +08:00
compiler compiler: Map host numpy.bool_ values to TBool 2021-03-21 18:44:05 +08:00
coredevice coredevice: Fix RPC typing for bool lists/arrays 2021-03-20 21:33:03 +08:00
dashboard allow dashboard to close if no connection can be made to moninj 2020-12-04 23:00:23 +08:00
examples metlino_sayma_ttl: Fix RTIO frequency & demo code (#1516) 2020-09-03 15:08:31 +08:00
firmware remove WRPLL 2021-02-17 16:09:51 +08:00
frontend sinara_tester/mirny: remove hw_rev checking fixup code 2021-01-29 18:47:40 +01:00
gateware sayma_amc: fix syntax 2021-02-17 17:45:54 +08:00
gui gui: Add context menu entry to close all applets 2021-01-17 11:56:03 +01:00
language master: refactor experiments enumeration, use tools.get_experiment 2021-02-13 10:06:12 +08:00
master master: refactor experiments enumeration, use tools.get_experiment 2021-02-13 10:06:12 +08:00
sim ttl: Add target RTIO time argument to timestamp/count functions 2018-11-03 20:33:19 +08:00
test compiler: Map host numpy.bool_ values to TBool 2021-03-21 18:44:05 +08:00
wavesynth wavesynth: silence is a channel property (closes #348) 2016-04-07 21:51:29 +08:00
__init__.py simplify versioneer 2020-07-30 00:54:07 +08:00
_version.py simplify versioneer 2020-07-30 00:54:07 +08:00
appdirs.py add appdirs 2016-07-18 16:40:18 +02:00
build_soc.py build_soc: remove assertion that was used for test runs 2020-09-03 20:24:18 +08:00
experiment.py artiq.experiment: merge language and coredevice namespaces 2016-01-25 17:24:00 -07:00
remoting.py artiq_flash: added option of specifying another username when connecting through SSH. (#1429) 2020-02-19 19:44:11 +08:00
tools.py master: refactor experiments enumeration, use tools.get_experiment 2021-02-13 10:06:12 +08:00