diff --git a/src/cal_tools/agipdlib.py b/src/cal_tools/agipdlib.py
index 4c2b3d895dc824d87215c7ac6ee93e517db81f47..d8fdc59167b181fe59e142e399f9de5c67542e9a 100644
--- a/src/cal_tools/agipdlib.py
+++ b/src/cal_tools/agipdlib.py
@@ -1,7 +1,6 @@
 import os
-import posixpath
 import zlib
-from dataclasses import dataclass, field
+from dataclasses import dataclass
 from datetime import datetime
 from logging import warning
 from multiprocessing import Manager
@@ -27,9 +26,9 @@ from cal_tools.agipdutils import (
     melt_snowy_pixels,
 )
 from cal_tools.enums import AgipdGainMode, BadPixels, SnowResolution
-from cal_tools.h5_copy_except import h5_copy_except_paths
 from logging import warning
 
+
 @dataclass
 class AgipdCtrl:
     """Access AGIPD control parameters from a single run.