Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update ArrayParameter Docs #2126

Merged
merged 3 commits into from
Aug 21, 2020

Conversation

Akshita07
Copy link
Contributor

Fixes #1440

Changes proposed in this pull request:

  • Information added in the documentation to steer clear of memory issue which user might come across while using Array Parameter

@astafan8

@codecov
Copy link

codecov bot commented Aug 20, 2020

Codecov Report

Merging #2126 into master will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master    #2126   +/-   ##
=======================================
  Coverage   71.24%   71.24%           
=======================================
  Files         151      151           
  Lines       20150    20150           
=======================================
  Hits        14356    14356           
  Misses       5794     5794           

@@ -150,7 +150,7 @@
"\n",
"We have kept the documentation shown below of `ArrayParameter` for the legacy purpose.\n",
"\n",
"For actions that create a whole array of values at once. When you use it in a `Loop`, it makes a single `DataArray` with the array returned by `get` nested inside extra dimension(s) for the loop.\n",
"For actions that create a whole array of values at once. When you use it in a `Loop`, it makes a single `DataArray` with the array returned by `get` nested inside extra dimension(s) for the loop. While storing this single `DataArray` in the database using `datasaver.add_result()` , be informed that it is stored as BLOB in one row of sqlite database. Where the BLOB in sqlite has a default max length limit set at 1 billion (1,000,000,000) bytes. \n",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Akshita07 Loop is a legacy feature of qcodes that does not use the sqlite database, so this "note" should not refer to the Loop.

(i'd also suggest to make it a separate paragraph so that it does not blend with the rest of the text)

@@ -150,7 +150,7 @@
"\n",
"We have kept the documentation shown below of `ArrayParameter` for the legacy purpose.\n",
"\n",
"For actions that create a whole array of values at once. When you use it in a `Loop`, it makes a single `DataArray` with the array returned by `get` nested inside extra dimension(s) for the loop.\n",
"For actions that create a whole array of values at once. When you use it in a `Loop`, it makes a single `DataArray` with the array returned by `get` nested inside extra dimension(s) for the loop. While storing this single `DataArray` in the database using `datasaver.add_result()` , be informed that it is stored as BLOB in one row of sqlite database. Where the BLOB in sqlite has a default max length limit set at 1 billion (1,000,000,000) bytes. \n",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

and we need the same/similar kind of note in the "paramtypes explained notebook".

@Akshita07 Akshita07 force-pushed the updateArrayParameterDoc branch from 5bb7193 to b5459ee Compare August 21, 2020 12:36
@Akshita07 Akshita07 merged commit 2c9c739 into microsoft:master Aug 21, 2020
@Akshita07 Akshita07 deleted the updateArrayParameterDoc branch August 21, 2020 14:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

error in add_results for large arrays
2 participants