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

v0.1.10 #31

Merged
merged 5 commits into from
Jan 9, 2024
Merged

v0.1.10 #31

merged 5 commits into from
Jan 9, 2024

Conversation

spapa013
Copy link
Collaborator

@spapa013 spapa013 commented Jan 9, 2024

Major changes

  • adds FieldDict to misc_utils.py
    from microns_utils.misc_utils import FieldDict
    FieldDict is an enhanced dictionary that allows attribute-style access 
    to its keys, in addition to the standard dictionary-style access. 
    It also automatically converts nested dictionaries to FieldDict instances, 
    enabling recursive attribute-style access.
    
    Example:
        fd = FieldDict(a=1, b={'c': 2, 'd': {'e': 3}})
        print(fd.a)  # Outputs 1
        print(fd.b.d.e)  # Outputs 3
    
    Attributes are accessed just like dictionary keys. If an attribute does not exist,
    AttributeError is raised.
    

Minor changes

  • changes use of logging to module-specific logger in version_utils.py
  • adds return_as_list flag to misc_utils.wrap
  • adds enforce_one_item flag to misc_utils.unwrap
  • adds run_method_from_parts and get_from_parts methods to datajoint_utils.py
  • adds lcn and sharpen_2pimage methods to transform_utils.py

@spapa013 spapa013 merged commit 736c548 into cajal:main Jan 9, 2024
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.

1 participant