This repository was archived by the owner on Feb 1, 2023. It is now read-only.
Releases: miile7/execdmscript
Releases · miile7/execdmscript
Using UUIDs for unique tagnames
Escaping non-ascii characters
- Escaping synchronized non-ascii characters in
TagGroupkeys and string values and unescaping
them in python again to prevent DigitalMicrograph crashing due to encoding problems - Removing deprecated structure definition of
TagGroups andTagLists - Adding conversion support from
dm-scriptUInt32 to pythonintanddm-scriptUInt16 to python
int
Adding get_persistent_tag() and remove_global_tag() function
- Adding
remove_global_tag()with example in README - Adding
debug_filecan be any file object which includessys.stdoutto directly print out the
code to execute - Adding
get_persistent_tag()with example in README - Adding deprecation warning when defining the strucutre of
TagGroups orTagLists in the
readvarsin theexec_dmscript()function
Improving convert_to_taggroup()
- Adding
invalid_taggroup_key_characterstuple that contains character that are invalid for
DigitalMicrograph TagGroup key names - Adding
replace_invalid_charsparameter toconvert_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
- Adding
__file__variable is now always given in dm-script containing the current dm-script file
path - Adding ingore markers
@execdmscript.ignore.startand@execdmscript.ignore.endto allow code
that is only executed in direct dm-script calls - Adding
convert_from_taggroup()function that convertsDigitalMicrograph.Py_TagGroupto
dicts,lists which is the opposite function toconvert_to_taggroup() - Adding helper documentation in README
- Adding examples for
get_dm_type()andget_python_type() - Adding examples for
escape_dm_variable()andescape_dm_string() - Adding examples for
convert_from_taggroup()andconvert_to_taggroup()
Adding convert_to_taggroup() function
- Adding
convert_to_taggroup()function that convertsdicts,lists andtuples to a
DigitalMicrograph.Py_TagGroupdirectly. - Changing imports in
__init__.pyto import everything
Fix synchronizing of invalid TagGroups
- Fixing error when synchronizing
TagGroups and theTagGroupis invalid in dm-script
Improving Readme and examples
- 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
- Adding
__version__to module - Adding VERSION file
- Adding
separate_threadoption to allow execution of dm-script in a separate dm-script thread
Improve dm-script errors
- Adding new error class
DMScriptError - Checking dm-script execution on runtime dm-script errors, displaying them to the user with
corrected line numbers