Commit Graph

2695 Commits

Author SHA1 Message Date
Robert Jördens 42093ace8d browser: port ea13d00 2016-07-09 18:46:16 +02:00
Robert Jördens 5cfdaee46a browser: recompute and load buttons side-by-side 2016-07-09 18:43:36 +02:00
Robert Jördens 6d0ae689e9 browser: remove copy_rev stub 2016-07-09 18:41:30 +02:00
Robert Jördens 7ce9fc714a browser: permanently show results' metadata, closes #471 2016-07-09 18:29:01 +02:00
Robert Jördens 48a42cdb34 browser: move load-args button into area 2016-07-09 17:20:43 +02:00
Robert Jördens 9ca27e6d7f worker_impl: style 2016-07-09 16:58:19 +02:00
Robert Jördens cfb9fb808c worker: also return DummyDevice from ExamineDeviceMgr 2016-07-09 16:53:28 +02:00
Sebastien Bourdeauducq 7a2405146a rtio: do not reset DDS and SPI PHYs on RTIO reset (#503) 2016-07-09 10:07:19 +08:00
Sebastien Bourdeauducq e0ed99cd7b Revert "test/ctlmgr: keep trying to ping on OSError"
This reverts commit 375e821bd8.
2016-07-09 08:59:47 +08:00
whitequark c4dc4e7bf5 compiler.testbench.perf_embedding: update for core changes. 2016-07-08 10:48:41 +00:00
whitequark c7a5ec9e61 runtime: update ppp code for lwip 2.0.0.
Fixes #499.
2016-07-08 09:27:15 +00:00
Sebastien Bourdeauducq 375e821bd8 test/ctlmgr: keep trying to ping on OSError
Since Python 3.5.2, this exception can be raised on Windows when the
connection fails.
2016-07-08 12:40:04 +08:00
Robert Jördens 2a5a1f320f browser, worker: feed experiments dummy devices, closes #454
* just returning `None` as dummy device (like ExamineDeviceMgr)
is not explicit enough, certainly hard to debug
* introducing a special flag for the `build` action does not
seem the right place
2016-07-08 01:23:28 +02:00
Robert Jördens b7cca38f72 browser: let the state manager handle the subcomponents 2016-07-07 16:16:32 +02:00
whitequark 653eeb476f runtime: fix serialization of object lists.
Fixes #500.
2016-07-07 12:40:50 +00:00
whitequark 5a79fcf9ba embedding: reimplement 373578bc properly.
The core of the problem that 373578bc was attempting to solve is
that diagnostics sometimes should be chained; one way of chaining
is the loc.expanded_from feature, which handles macro-like expansion,
but another is providing context.

Before this commit, context was provided using an ad-hoc override
of a diagnostic engine, which did not work in cases where diagnostic
engine was not threaded through the call stack. This commit uses
the newly added pythonparser context feature to elegantly handle
the problem.
2016-07-07 11:49:21 +00:00
whitequark 373578bc02 embedding: fix location for diagnostics on quoted values.
Fixes #489.
2016-07-07 08:32:56 +00:00
Sebastien Bourdeauducq c065b5866f require Python 3.5.2, remove monkey patches 2016-07-07 14:55:21 +08:00
Sebastien Bourdeauducq 8cb29fcb3b targets/kc705: redefine user SMAs as 3.3V IO. Closes #502 2016-07-07 14:53:01 +08:00
whitequark d90fd7dc00 compiler: implement numpy.full (#424). 2016-07-07 06:33:38 +00:00
whitequark 7a671fb2fd embedding: treat numpy.{int32,int64,array} specially (#424).
Also, remove them from prelude to not pollute the namespace.
2016-07-07 06:33:38 +00:00
whitequark 933ea53c77 compiler: add basic numpy array support (#424). 2016-07-06 09:51:57 +00:00
whitequark 906db876a6 language: replace coredevice int with numpy.{int32,int64}.
Fixes #453.
2016-07-06 04:44:21 +00:00
whitequark fa71b40c80 compiler: print the builtin type int(width=...) as np.int... 2016-07-06 04:22:51 +00:00
Robert Jördens 73ac153509 spi: expose more documentation on chaining transfers 2016-07-04 12:43:33 +02:00
Robert Jördens 71921de5bd spi: do not shift when starting a xfer, closes #495 2016-07-04 12:22:47 +02:00
Robert Jördens 4a6c270afe browser: stub copy repo rev 2016-07-04 01:19:26 +02:00
Sebastien Bourdeauducq dd349b0701 dashboard: simplify dataset editing code 2016-07-03 12:23:56 +08:00
Sebastien Bourdeauducq 77f60a3e63 browser: support uploading datasets to master. Closes #480 2016-07-03 12:21:36 +08:00
Sebastien Bourdeauducq 0173a40be0 browser: log runs 2016-07-03 12:20:23 +08:00
Sebastien Bourdeauducq cc9edc1555 frontend/client: support keeping persist flag 2016-07-03 12:19:46 +08:00
Sebastien Bourdeauducq fdc25777da master/dataset_db: support keeping old persist flag 2016-07-03 12:19:01 +08:00
Sebastien Bourdeauducq 4c8a8357b0 worker: increase send_timeout (Windows can be really slow) 2016-07-03 12:18:34 +08:00
Sebastien Bourdeauducq 6ee0f65b12 browser: ditto 11930228fd 2016-07-01 18:47:04 +08:00
Sebastien Bourdeauducq 11930228fd dashboard: kill the Qt built-in main window closing mechanism
When the main window is closed, Qt makes QApplication.exec() return, which conflicts with Quamash's implementation of loop.run_until_complete(). The conflict causes Quamash's run_forever() to return earlier than it should, and cause "RuntimeError('Event loop stopped before Future completed.')".

Closes #475
2016-07-01 18:39:26 +08:00
Sebastien Bourdeauducq ea13d00087 dashboard: preserve argeditor state across argument recomputations. Closes #486 2016-07-01 15:23:40 +08:00
Sebastien Bourdeauducq 2d1a47ca98 fix indentation 2016-07-01 15:19:52 +08:00
Sebastien Bourdeauducq a1cc964c6c test/scheduler: test check_pause 2016-06-29 11:44:42 +08:00
Sebastien Bourdeauducq 43681b37ec test/rtio: relax constraints 2016-06-29 11:38:36 +08:00
Sebastien Bourdeauducq e51928ee97 test/rtio: adapt to new handover behavior 2016-06-29 10:38:37 +08:00
Sebastien Bourdeauducq c6e54e3016 coredevice/core: add syscall type annotation 2016-06-29 10:38:19 +08:00
Sebastien Bourdeauducq c8dc6ca07c inter-experiment smooth handover 2016-06-29 02:37:50 +08:00
Sebastien Bourdeauducq ef8f60c78d Revert "runtime: save now on RPC"
This reverts commit 155794a671.
2016-06-29 02:37:50 +08:00
whitequark ef2af8c331 compiler.embedding: use the builtin print as RPC.
Fixes #206.
2016-06-28 04:42:41 +00:00
whitequark 6155f65366 compiler: remove now()/at().
Fixes #490.
2016-06-28 04:39:14 +00:00
Sebastien Bourdeauducq 03a69ec5b7 scheduler: add check_pause function 2016-06-27 14:37:29 +08:00
Sebastien Bourdeauducq 5853e31ac2 coredevice/comm_tcp: more appropriate exception 2016-06-26 19:08:40 +08:00
Sebastien Bourdeauducq bc7d06468f coredevice/comm_generic: style 2016-06-26 18:50:02 +08:00
whitequark 21574bdfa9 compiler.embedding: rename user-defined types with identical names.
Fixes #478.
2016-06-22 01:32:01 +00:00
whitequark 33e8e59cc7 compiler: implement min()/max() as builtins.
Fixes #239.
2016-06-22 01:09:41 +00:00
whitequark 77d47c2fdd transforms.artiq_ir_generator: split out finally→reraise control flow.
This makes it accessible to introspect by local access validator,
making some previously rejected code valid.

Fixes #331.
2016-06-22 00:57:32 +00:00
whitequark f2ae24da39 compiler: add support for Python modules.
Fixes #408.
2016-06-21 23:35:07 +00:00
whitequark 5c54a6a0e9 Upgrade lwip to 2.0.0 to fix the keepalive bug #456. 2016-06-21 14:47:19 +00:00
Robert Jördens 88d6d0db06 browser: also support loading arguments by button and activation, closes #479 2016-06-21 13:14:33 +02:00
whitequark cae6e8639e Revert "runtime: disable lwip TCP keepalive."
This reverts commit 0db6ef0e1c.
2016-06-21 09:45:53 +00:00
whitequark 0db6ef0e1c runtime: disable lwip TCP keepalive.
This sometimes results in an RST sent by lwip after a retransmission,
although it is not clear exactly why. See #456.
2016-06-20 18:55:29 +00:00
Robert Jördens f5deafb267 browser: add a debug message for OSError on HDF5 open 2016-06-20 18:02:47 +02:00
Sebastien Bourdeauducq 155794a671 runtime: save now on RPC 2016-06-19 19:29:46 +08:00
Sebastien Bourdeauducq 0acc52d513 runtime: minor cleanup 2016-06-19 19:26:30 +08:00
Sebastien Bourdeauducq 917cc056f4 test: add test for seamless handover on exception termination 2016-06-19 19:15:10 +08:00
Sebastien Bourdeauducq 8e308481c1 runtime: save now when terminating with exception 2016-06-19 19:07:09 +08:00
Sebastien Bourdeauducq 2ae20fbc4d runtime: cleanup now_init/now_save 2016-06-19 19:06:32 +08:00
Sebastien Bourdeauducq b769403667 dashboard: larger experiment initial window size 2016-06-19 09:31:19 +08:00
Sebastien Bourdeauducq b3b0e19d21 dashboard: compute initial experiment window size from font metrics 2016-06-19 08:50:38 +08:00
Sebastien Bourdeauducq ae914d2611 dashboard/experiments: look improvements 2016-06-18 18:55:25 +08:00
Sebastien Bourdeauducq ec3e7792dc add MultiScanManager 2016-06-18 16:30:34 +08:00
Sebastien Bourdeauducq 80cf321233 dashboard: do not use Qt recursive event loop 2016-06-18 14:34:23 +08:00
Sebastien Bourdeauducq 9a1cad5cec dashboard: basic dataset editing capabilities 2016-06-17 16:45:26 +08:00
whitequark c0e42bbfc8 compiler.embedding: always do one final inference pass.
Fixes #477.
2016-06-16 14:18:43 +00:00
whitequark 26117e8d93 transforms.inferencer: allow variable as type of `n` in `[]*n`.
Fixes #473.
2016-06-16 13:35:00 +00:00
Robert Jördens 53eb35cbb8 browser: suppress icon warnings from inaccessible datasets, closes #470 2016-06-15 16:54:06 +02:00
Robert Jördens a8b211f891 spi: cross-reference bit ordering and alignment, closes #482 2016-06-15 15:04:04 +02:00
Sebastien Bourdeauducq 033aa33c9e pyon: support slices 2016-06-15 19:18:46 +08:00
Sebastien Bourdeauducq 60657c30b0 dashboard: add button to disable other scans 2016-06-15 19:06:04 +08:00
Sebastien Bourdeauducq 490bb6ef2d gui: save/restore last folder outside repository. Closes #476 2016-06-12 13:18:22 +08:00
Sebastien Bourdeauducq ad3d7dc687 browser: cut logging verbosity 2016-06-12 13:11:36 +08:00
Sebastien Bourdeauducq 3aab77d7a0 doc: precisions about time cursor interaction 2016-06-12 13:08:47 +08:00
Sebastien Bourdeauducq 7dff446932 language: support setting slices of data in mutate_dataset 2016-06-12 13:08:29 +08:00
Sebastien Bourdeauducq 3b63c39d2f gui/scanwidget: use -inf/inf to represent absence of boundaries (consistently with QDoubleSpinbox) 2016-06-11 17:25:46 -06:00
Sebastien Bourdeauducq 765e3f0b5d gui/entries/_RangeScan: set range before setting value. Fixes clamping to 99.99 2016-06-11 17:25:46 -06:00
Sebastien Bourdeauducq 60d8e30ecd scanwidget: value may be None 2016-06-11 17:25:46 -06:00
Sebastien Bourdeauducq b9c3edd49f Revert "coredevice: automatically close on pause"
This reverts commit 1f50b3428e.
2016-06-11 10:12:36 -06:00
Sebastien Bourdeauducq eb359ce50b Revert "master/worker: pause/resume devices"
This reverts commit 437b37b158.
2016-06-11 10:11:11 -06:00
Sebastien Bourdeauducq 44724197c5 Revert "master/worker_db: add pause_devices and resume_devices"
This reverts commit 3c70bc40a4.
2016-06-11 10:11:07 -06:00
Sebastien Bourdeauducq 3bd190e624 gateware/nist_clock: increase DDS bus drive strength. Closes #468 2016-06-07 11:08:19 -04:00
whitequark e47538ca33 analyzer: explicitly delimit messages (with \x1D).
Fixes #461.
2016-06-07 11:26:49 +00:00
whitequark 57be065c15 artiq_flash: explicitly pass path within conda env to openocd datarootdir.
By default, openocd searches for scripts in DATAROOTDIR/openocd/scripts.
This of course makes it not relocatable. Conda has a flag to try to
detect and fix such hardcoded paths, but it does not work on openocd
(likely because the .rodata contains an already concatenated path,
which cannot be padded with zeroes from the right).

So, we pass the path explicitly instead.
2016-06-06 19:01:39 +00:00
Sebastien Bourdeauducq 6db96f81d5 gui/moninj: reduce logging level of UDP failure 2016-06-04 16:33:56 -04:00
Sebastien Bourdeauducq c49be807e4 gui/moninj: do not crash when there is no network 2016-06-04 16:31:17 -04:00
Sebastien Bourdeauducq 6983f3520a explorer: fix directory listing error handling 2016-06-04 10:18:29 -04:00
Sebastien Bourdeauducq 0ac0547bca dds: use fast math for asf computations 2016-06-03 23:34:32 -04:00
dhslichter 98ae779941 dds: fix asf_to_amplitude 2016-06-03 23:02:16 -04:00
Sebastien Bourdeauducq e9a8c4b540 gui/entries: remove unneeded parent 2016-06-03 22:56:45 -04:00
Sebastien Bourdeauducq ec3641551c examples: run should not return a value 2016-06-03 22:55:50 -04:00
Sebastien Bourdeauducq 9ec142e4f6 examples/histograms: convert to mutate_dataset API. Closes #459 2016-05-31 20:25:15 -05:00
Sebastien Bourdeauducq 5b0f963b98 applets/plot_xy: use numpy array for default X axis. Closes #458 2016-05-30 22:48:32 -05:00
Sebastien Bourdeauducq e6a351c5ea gui: fix explicit scan input validation 2016-05-30 15:45:28 -05:00
Sebastien Bourdeauducq 03eeec55b2 gui: better log levels 2016-05-30 15:04:49 -05:00
Sebastien Bourdeauducq 55fdfc618b gui/log: fix clearing multi-line messages 2016-05-28 13:48:02 -05:00
Sebastien Bourdeauducq 0faa2d56b4 language/environment: autoset scale for common units. Closes #448 2016-05-28 13:37:18 -05:00
Sebastien Bourdeauducq 8b556ef6d5 language/environment: be more verbose in NumberValue unit/scale documentation (#448) 2016-05-28 13:23:16 -05:00
Sebastien Bourdeauducq 7851391666 artiq_compile: adapt to code changes 2016-05-28 12:57:04 -05:00
Sebastien Bourdeauducq a120a09d79 gui/log: add clear button (#411) 2016-05-28 11:10:32 -05:00
Sebastien Bourdeauducq ab749560c2 dashboard: forward local log messages to docks, replace status bar (#411) 2016-05-28 11:10:25 -05:00
Sebastien Bourdeauducq 10267f39c9 log: use broadcast instead of sync_struct, filter on new messages only (#411) 2016-05-27 23:43:29 -05:00
Robert Jördens f24f7380f5 gui: fix new() being called with arguments by qt (closes #444) 2016-05-25 23:13:00 +02:00
Robert Jördens f5da3f63aa browser: use actual field names for tooltip 2016-05-25 22:21:07 +02:00
Robert Jördens 7f39db9c8e browser: file/class info in tooltip 2016-05-25 18:55:39 +02:00
Robert Jördens f9ab3eeb36 browser: add result metadata tooltip 2016-05-25 18:47:06 +02:00
Sebastien Bourdeauducq 8c1f1d8f2a rpctool: make readline optional, add to conda dependencies. Closes #442 2016-05-25 11:11:59 -05:00
Robert Jördens ec34a552b0 browser: add cascade and tile 2016-05-25 17:34:01 +02:00
Robert Jördens 78de2a7d5c browser: MainWindow -> Browser and refactor 2016-05-25 17:34:01 +02:00
Sebastien Bourdeauducq 7fb6b3db21 protocols/broadcast: minor fixes 2016-05-25 10:32:36 -05:00
Robert Jördens 57e3d9ee34 browser: react to b3e55b7 2016-05-25 16:36:27 +02:00
Robert Jördens 26e98a13d0 browser: refactor log 2016-05-25 15:14:04 +02:00
Sebastien Bourdeauducq b3e55b753b environment,dashboard: generalize multiple defaults, fix HDF5 argument load 2016-05-24 08:58:34 -05:00
Sebastien Bourdeauducq 43081b4f64 language,gui: support setting unselected scan default values. Closes #417 2016-05-23 15:03:05 -07:00
Sebastien Bourdeauducq 69ffa21133 language/RandomScan: automatic seed by default 2016-05-23 15:03:05 -07:00
Robert Jördens b27682ad20 browser: fix argument reset (closes #439) 2016-05-23 11:19:30 +02:00
Robert Jördens b8e7ea8443 browser: cleanup 2016-05-23 11:19:30 +02:00
Sebastien Bourdeauducq 9dd7ea0bcd protocols: add broadcast (untested) 2016-05-22 17:20:39 -07:00
Sebastien Bourdeauducq 114b305203 use recommended asyncio.ensure_future instead of asyncio.Task 2016-05-22 16:36:29 -07:00
Sebastien Bourdeauducq a46d3ff366 browser: remove unnecessary loop.call_soon 2016-05-22 10:22:29 -07:00
Robert Jördens fbd3db5753 pyon: move string escaping table, add more info in errors 2016-05-22 16:53:39 +02:00
Robert Jördens 0857cfdcb1 short_format: cover a few more numpy types correctly 2016-05-22 16:53:39 +02:00
Robert Jördens 9e681590cb pyon: ship ndarray data as bytes
this is about 3 times faster and since the encapsulating nparray() already
breaks json-compatibility, using a unicode string for json compatibility
is not necessary
2016-05-22 16:53:37 +02:00
Robert Jördens a9434d2e9f pyon: use dtype.str
* contains endianess, makes this portable
* it's shorter
* it's what the numpy array interfaces uses
* this is otherwise backwards and forwards compatible
2016-05-22 16:52:59 +02:00
Sebastien Bourdeauducq 3d6f55104b coredevice/TCA6424A: convert 'outputs' value to little endian. Closes #437 2016-05-22 06:53:18 -07:00
Sebastien Bourdeauducq 852ddb7796 bit2bin: close input file explicitly 2016-05-21 21:50:08 +08:00
Sebastien Bourdeauducq 65c835e991 Revert "flash: close tempfile before deleting (#256)"
This reverts commit 5f11dbf319.
2016-05-21 00:19:54 +08:00
Sebastien Bourdeauducq 5f11dbf319 flash: close tempfile before deleting (#256) 2016-05-21 00:09:31 +08:00
Robert Jördens 5f7f4ed398 browser: wire up log dock 2016-05-20 16:12:11 +02:00
Robert Jördens af317f9b64 gui.models: clean up LocalModelManager a bit 2016-05-20 16:12:11 +02:00
Robert Jördens 9c30f62790 browser: log_worker_exception 2016-05-20 16:12:11 +02:00
Robert Jördens 3db1a7cf01 browser: log stub 2016-05-20 16:12:11 +02:00
Robert Jördens e5a75ea0f4 gui.log: export LogDock 2016-05-20 16:12:11 +02:00
Robert Jördens 7a71939201 dashboard.log -> gui.log 2016-05-20 16:12:11 +02:00
Robert Jördens 8ab6011ddb browser: move 'open experiment' to menu 2016-05-20 16:12:11 +02:00
dhslichter 141edb521a qc2: swap SPI/TTL, all TTL lines are now In+Out compatible 2016-05-19 10:42:03 +08:00
Robert Jördens 109ddf919e flash: tcl-quote paths (c.f. #256) 2016-05-16 23:15:12 +02:00
Robert Jördens 18878ba050 flash: use the handle 2016-05-16 22:02:11 +02:00
Robert Jördens 3ae44e762f flash: close files (c.f. #256) 2016-05-16 21:30:53 +02:00
whitequark 355af3e569 embedding: specialize inherited functions.
Fixes #414.
2016-05-16 15:59:26 +00:00
whitequark 640022122b embedding: refactor some more. 2016-05-16 14:38:09 +00:00
whitequark d085d5a372 embedding: refactor. 2016-05-16 14:38:09 +00:00
whitequark c94c411fd5 compiler: demangle symbols.
In future commits we'll add Itanium C++ ABI style mangling to ARTIQ
emitted function names.
2016-05-16 14:38:09 +00:00
Robert Jördens 8bff8075de browser: clean up 2016-05-16 11:46:14 +02:00
Robert Jördens ecdbf2ae08 browser: wire up activate in list 2016-05-16 11:45:13 +02:00
Robert Jördens f1747b5ea5 browser: only load args from first file 2016-05-16 11:27:51 +02:00
Robert Jördens fe69712cc5 browser: dis/enable analyze/terminate buttons 2016-05-13 15:43:02 +02:00