This repository has been 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
TagGroup
keys and string values and unescaping
them in python again to prevent DigitalMicrograph crashing due to encoding problems - Removing deprecated structure definition of
TagGroup
s andTagList
s - Adding conversion support from
dm-script
UInt32 to pythonint
anddm-script
UInt16 to python
int
Adding get_persistent_tag() and remove_global_tag() function
- Adding
remove_global_tag()
with example in README - Adding
debug_file
can be any file object which includessys.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
TagGroup
s orTagList
s in the
readvars
in theexec_dmscript()
function
Improving convert_to_taggroup()
- Adding
invalid_taggroup_key_characters
tuple that contains character that are invalid for
DigitalMicrograph TagGroup key names - Adding
replace_invalid_chars
parameter 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.start
and@execdmscript.ignore.end
to allow code
that is only executed in direct dm-script calls - Adding
convert_from_taggroup()
function that convertsDigitalMicrograph.Py_TagGroup
to
dict
s,list
s 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 convertsdict
s,list
s andtuple
s to a
DigitalMicrograph.Py_TagGroup
directly. - Changing imports in
__init__.py
to import everything
Fix synchronizing of invalid TagGroups
- Fixing error when synchronizing
TagGroup
s and theTagGroup
is 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_thread
option 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