Skip to content

42 multiple instances of hdfloader contain the same local namespace#43

Merged
DanPorter merged 3 commits intomasterfrom
42-multiple-instances-of-hdfloader-contain-the-same-local-namespace
Apr 7, 2026
Merged

42 multiple instances of hdfloader contain the same local namespace#43
DanPorter merged 3 commits intomasterfrom
42-multiple-instances-of-hdfloader-contain-the-same-local-namespace

Conversation

@DanPorter
Copy link
Copy Markdown
Collaborator

hdfmap_class.py

  • add __slots__
  • add local_data and prefer_local as inputs to eval and format_hdf

reloader_class.py

  • add __contains__
  • add add_local() and live_mode()
  • add _local_data and _prefer_local_data attributes
  • use these in eval and format

eval_functions.py

  • replace expression.replace with regex method
  • add tests

All tests pass

Fix for #42

hdfmap_class.py
 - add __slots__
 - add local_data and prefer_local as inputs to eval and format_hdf

reloader_class.py
 - add __contains__
 - add add_local() and live_mode()
 - add _local_data and _prefer_local_data attributes
 - use these in eval and format
eval_functions.py
 - replace expression.replace with ast.NodeTransformer method
 - add tests

Tests don't pass as AST method incorrectly formats the strings.
Will use regex instead.
eval_functions.py
 - replace expression.replace with regex method
 - add tests

All tests pass
@DanPorter DanPorter linked an issue Apr 7, 2026 that may be closed by this pull request
@DanPorter DanPorter merged commit ef8cb44 into master Apr 7, 2026
10 checks passed
@DanPorter DanPorter deleted the 42-multiple-instances-of-hdfloader-contain-the-same-local-namespace branch April 7, 2026 12:12
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.

Multiple instances of HdfLoader contain the same local namespace

1 participant