Coverage for ase/_4/plugins/legacy_plugins.py: 100.00%

4 statements  

« prev     ^ index     » next       coverage.py v7.16.2, created at 2026-11-27 15:21 +0000

1"""Legacy ExternalIOFormatPlugin are imported to this namespace 

2 

3From there they are exposed to the new plugin system 

4""" 

5 

6from importlib.metadata import entry_points 

7 

8from .io import LegacyIOFormatPlugin 

9 

10legacy_entry_points = entry_points(group='ase.ioformats') 

11 

12__ase_plugins__ = { 

13 LegacyIOFormatPlugin.from_legacy_entry_point(entry_point) 

14 for entry_point in legacy_entry_points 

15}