Skip to content

Commit

Permalink
Revert "Delete src/hdmf/build/map.py (#1221)"
Browse files Browse the repository at this point in the history
This reverts commit 6396a81.
  • Loading branch information
rly committed Dec 20, 2024
1 parent 6396a81 commit a814b44
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
1 change: 0 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

### Deprecations
- The following classes have been deprecated and removed: Array, AbstractSortedArray, SortedArray, LinSpace, Query, RegionSlicer, ListSlicer, H5RegionSlicer, DataRegion, RegionBuilder. The following methods have been deprecated and removed: fmt_docval_args, call_docval_func, get_container_cls, add_child, set_dataio (now refactored as set_data_io). We have also removed all early development for region references. @mavaylon1, @rly [#1998](https://github.com/hdmf-dev/hdmf/pull/1198), [#1212](https://github.com/hdmf-dev/hdmf/pull/1212)
- Importing from hdmf.build.map is no longer supported. Import from hdmf.build instead. @rly [#1221](https://github.com/hdmf-dev/hdmf/pull/1221)
- Python 3.8 has been deprecated. Python 3.9 is the new minimum with support for Python 3.13. @mavaylon1 [#1209](https://github.com/hdmf-dev/hdmf/pull/1209)

### Enhancements
Expand Down
7 changes: 7 additions & 0 deletions src/hdmf/build/map.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# this prevents breaking of code that imports these classes directly from map.py
from .manager import Proxy, BuildManager, TypeSource, TypeMap # noqa: F401
from .objectmapper import ObjectMapper # noqa: F401

import warnings
warnings.warn('Classes in map.py should be imported from hdmf.build. Importing from hdmf.build.map will be removed '
'in HDMF 3.0.', DeprecationWarning, stacklevel=2)

0 comments on commit a814b44

Please sign in to comment.