Skip to content

v0.5.4

Compare
Choose a tag to compare
@i-am-mounce i-am-mounce released this 09 Jul 15:07
· 0 commits to e9764ffe49139d20be50d340b8f3b254b7692cb5 since this release

Bug Fixes

  • core: added a json converter class in json_encoder.py to pyscan/general. This is now implemented in the save_metadata method of abstract_experiment.py which enables numpy values to be used as data inputs before saving. The converter changes the numpy values to standard python values and no longer throws the same type error as before. (c2c2b8f)
  • core: added working json converter for runinfo and devices metadata now implemented in abstract experiment's save_metadata method. (11f43a3)
  • core: corrected the issue plesiopterys identified with saving numpy data types and consolidated the json converter added in the last commit to the pre existing recursive_to_dict function which can now handle numpy data types for saving. (fb66ad8)
  • core: fixed issue causing multiple experiments run with the same runinfo to fail. These sequential experiments would improperly double runinfo.measured by appending the same values to it more than once. Then when data was tried to be preallocated in abstract expt it would fail. (cb093a2)
  • core: Fixed the issue with saving if experiments are run 'too fast'. Will now handle ultra fast experiments (up to a micro second or more) which was tested with demo nb 1 using a dt of 0.000000001 and consecutive experiments. (bba1bca)
  • core: updated experiment.py to reinitialize runinfo.measured as an empty list before populating at the beginning of every experiment run. This was causing issues with running subsequent experiments with the same runinfo, and is necessary to prevent runinfo.measured from being reused if runinfo.measure_function changed between runs. (bbc1be8)

Reverts

  • Revert "fix(core): added a json converter class in json_encoder.py to pyscan/general. This is now implemented in the save_metadata method of abstract_experiment.py which enables numpy values to be used as data inputs before saving. The converter changes the numpy values to standard python values and no longer throws the same type error as before." (30dbdd5)
  • Revert "fix(core): corrected the issue plesiopterys identified with saving numpy data types and consolidated the json converter added in the last commit to the pre existing recursive_to_dict function which can now handle numpy data types for saving." (30c601d)
  • Revert "chore(core): removed old import from abstract_experiment." (9d7a10b)
  • Revert "chore(core): fix: fixed misuse of np.array n recursive_to_dict that was causing a type error." (a56704d)
  • Revert "fix(core): added working json converter for runinfo and devices metadata now implemented in abstract experiment's save_metadata method." (0d122b0)
  • Revert "docs(general): added doc string to json_encoder.py CustomJSONEncoder class." (1224b06)
  • Revert "chore(core): removed no longer used recursive_to_dict import from abstract expt." (7d5b6e9)
  • Revert "refactor(general): replaced recursive_to_item_attribute with json decoder item_attribute_object_hook." (6dcfdc1)
  • Revert "chore(general): updated the general init.py to account for the file changes from previous commits and import successfully with a new order since itemattribute is used in other pyscan/general modules now." (27ae91c)
  • Revert "chore(general): fixed improper spelling in the json_decoder." (205c33a)
  • Revert "chore(general): fixed improper spelling in the json_decoder." (6e5b788)
  • Revert "chore(general): fixed error breaking pytests with decoder referencing np.float_ which was removed in numpy 2.0." (0886669)
  • Revert "chore(general): fixed error breaking pytests with decoder referencing np.float_ which was removed in numpy 2.0." (a32e84d)