Skip to content
This repository has been archived by the owner on Feb 1, 2023. It is now read-only.

Releases: miile7/execdmscript

Using UUIDs for unique tagnames

18 Mar 14:32
Compare
Choose a tag to compare
  • Changing creation of unique persistent tag names from timestamp with milliseconds to using uuids to fix tag collision in parallel threads or immediately consecutive calls

Escaping non-ascii characters

17 Dec 14:16
Compare
Choose a tag to compare
  • Escaping synchronized non-ascii characters in TagGroup keys and string values and unescaping
    them in python again to prevent DigitalMicrograph crashing due to encoding problems
  • Removing deprecated structure definition of TagGroups and TagLists
  • Adding conversion support from dm-script UInt32 to python int and dm-script UInt16 to python
    int

Adding get_persistent_tag() and remove_global_tag() function

19 Nov 10:57
Compare
Choose a tag to compare
  • Adding remove_global_tag() with example in README
  • Adding debug_file can be any file object which includes sys.stdout to directly print out the
    code to execute
  • Adding get_persistent_tag() with example in README
  • Adding deprecation warning when defining the strucutre of TagGroups or TagLists in the
    readvars in the exec_dmscript() function

Improving convert_to_taggroup()

11 Nov 11:12
Compare
Choose a tag to compare
  • Adding invalid_taggroup_key_characters tuple that contains character that are invalid for
    DigitalMicrograph TagGroup key names
  • Adding replace_invalid_chars parameter to convert_to_taggroup() to offer automatic replacing
    of invalid TagGroup key names
  • Improving raised errors and their message in convert_to_taggroup() to explain better what the
    error is about
  • Improve doc comment of convert_to_taggroup()
  • Fix convert_to_taggroup() function by fixing call of a non-existing function due to a typo

Adding convert_from_taggroup() function

21 Oct 11:06
Compare
Choose a tag to compare
  • Adding __file__ variable is now always given in dm-script containing the current dm-script file
    path
  • Adding ingore markers @execdmscript.ignore.start and @execdmscript.ignore.end to allow code
    that is only executed in direct dm-script calls
  • Adding convert_from_taggroup() function that converts DigitalMicrograph.Py_TagGroup to
    dicts, lists which is the opposite function to convert_to_taggroup()
  • Adding helper documentation in README
  • Adding examples for get_dm_type() and get_python_type()
  • Adding examples for escape_dm_variable() and escape_dm_string()
  • Adding examples for convert_from_taggroup() and convert_to_taggroup()

Adding convert_to_taggroup() function

10 Sep 10:42
Compare
Choose a tag to compare
  • Adding convert_to_taggroup() function that converts dicts, lists and tuples to a
    DigitalMicrograph.Py_TagGroup directly.
  • Changing imports in __init__.py to import everything

Fix synchronizing of invalid TagGroups

09 Sep 12:52
Compare
Choose a tag to compare
  • Fixing error when synchronizing TagGroups and the TagGroup is invalid in dm-script

Improving Readme and examples

09 Sep 11:15
Compare
Choose a tag to compare
  • Rewriting big parts of the README to make it more understandable
  • Adding more and easier examples

Big thanks to BmyGuest

Add separate dm-script thread execution

09 Sep 11:12
Compare
Choose a tag to compare
  • Adding __version__ to module
  • Adding VERSION file
  • Adding separate_thread option to allow execution of dm-script in a separate dm-script thread

Improve dm-script errors

02 Sep 07:28
Compare
Choose a tag to compare
  • Adding new error class DMScriptError
  • Checking dm-script execution on runtime dm-script errors, displaying them to the user with
    corrected line numbers