QCoDeS / Qcodes_loop

Loop and matching dataset that used to be part of qcodes
Other
1 stars 1 forks source link

Errors during live plotting #16

Open MerlinSmiles opened 8 years ago

MerlinSmiles commented 8 years ago

While doing a long measurement, I often get errors from the live-plotting:

error reading file 2016-05-01\22-56-15\data.dat
Traceback (most recent call last):
  File "E:\Git\Qcodes\qcodes\data\format.py", line 94, in read
    self.read_one_file(data_set, f, ids_read)
  File "E:\Git\Qcodes\qcodes\data\format.py", line 346, in read_one_file
    myindices, indices)
ValueError: ('inconsistent setpoint values', 0.0135, 0.0, 'z_fldC', (63,), [63, 79])

error reading file 2016-05-01\22-56-15\data.dat
Traceback (most recent call last):
  File "E:\Git\Qcodes\qcodes\data\format.py", line 94, in read
    self.read_one_file(data_set, f, ids_read)
  File "E:\Git\Qcodes\qcodes\data\format.py", line 330, in read_one_file
    values = tuple(map(float, line.split()))
ValueError: could not convert string to float: '1.8953e-'

error reading file 2016-05-01\22-56-15\data.dat
Traceback (most recent call last):
  File "E:\Git\Qcodes\qcodes\data\format.py", line 94, in read
    self.read_one_file(data_set, f, ids_read)
  File "E:\Git\Qcodes\qcodes\data\format.py", line 330, in read_one_file
    values = tuple(map(float, line.split()))
ValueError: could not convert string to float: '-'

error reading file 2016-05-01\22-56-15\data.dat
Traceback (most recent call last):
  File "E:\Git\Qcodes\qcodes\data\format.py", line 94, in read
    self.read_one_file(data_set, f, ids_read)
  File "E:\Git\Qcodes\qcodes\data\format.py", line 262, in read_one_file
    ids = self._read_comment_line(f).split()
  File "E:\Git\Qcodes\qcodes\data\format.py", line 360, in _read_comment_line
    raise ValueError('expected a comment line, found:\n' + s)
ValueError: expected a comment line, found:

Is it really reading the file? I thought it would sync the data from the measurement server? If I look at the file itself, I cannot find a 1.8953e- that is broken, only a few occurrences but they look fine. So is one process reading the file while another one is writing to it?

MerlinSmiles commented 8 years ago

I also get these error messages with it:

---------------------------------------------------------------------------
Empty                                     Traceback (most recent call last)
E:\Git\Qcodes\qcodes\widgets\widgets.py in do_update(self, content, buffers)
     44 
     45     def do_update(self, content=None, buffers=None):
---> 46         self._message = str(self._fn())
     47 
     48     def halt(self):

E:\Git\Qcodes\qcodes\plots\base.py in update(self)
    161         any_updates = False
    162         for updater in self.data_updaters:
--> 163             updates = updater()
    164             if updates is not False:
    165                 any_updates = True

E:\Git\Qcodes\qcodes\data\data_set.py in sync(self)
    413 
    414         with self.data_manager.query_lock:
--> 415             if self.is_on_server:
    416                 # TODO: can we reduce the amount of data to send?
    417                 # seems like in the most general case this would need to

E:\Git\Qcodes\qcodes\data\data_set.py in is_on_server(self)
    383 
    384         with self.data_manager.query_lock:
--> 385             live_location = self.data_manager.ask('get_data', 'location')
    386             return self.location == live_location
    387 

E:\Git\Qcodes\qcodes\utils\multiprocessing.py in ask(self, timeout, *query)
    332                 if self._error_queue.empty():
    333                     # only raise if we're not about to find a deeper error
--> 334                     raise e
    335             self._check_for_errors(self._expect_error)
    336 

E:\Git\Qcodes\qcodes\utils\multiprocessing.py in ask(self, timeout, *query)
    324 
    325             try:
--> 326                 res = self._check_response(timeout)
    327 
    328                 while not self._response_queue.empty():

E:\Git\Qcodes\qcodes\utils\multiprocessing.py in _check_response(self, timeout)
    301 
    302     def _check_response(self, timeout):
--> 303         res = self._response_queue.get(timeout=timeout)
    304         if res == SERVER_ERR:
    305             self._expect_error = True

c:\users\qdev\anaconda3\lib\multiprocessing\queues.py in get(self, block, timeout)
    103                     timeout = deadline - time.time()
    104                     if timeout < 0 or not self._poll(timeout):
--> 105                         raise Empty
    106                 elif not self._poll():
    107                     raise Empty

Empty: 

---------------------------------------------------------------------------
AttributeError                            Traceback (most recent call last)
E:\Git\Qcodes\qcodes\widgets\widgets.py in do_update(self, content, buffers)
     44 
     45     def do_update(self, content=None, buffers=None):
---> 46         self._message = str(self._fn())
     47 
     48     def halt(self):

E:\Git\Qcodes\qcodes\plots\base.py in update(self)
    161         any_updates = False
    162         for updater in self.data_updaters:
--> 163             updates = updater()
    164             if updates is not False:
    165                 any_updates = True

E:\Git\Qcodes\qcodes\data\data_set.py in sync(self)
    419                 # changed since that particular client last synced
    420                 # (at least first and last pt)
--> 421                 live_data = self.data_manager.ask('get_data').arrays
    422                 for array_id in self.arrays:
    423                     self.arrays[array_id].ndarray = live_data[array_id].ndarray

AttributeError: 'str' object has no attribute 'arrays'