From 7af01db5d18a53f15a0e61ee7b36a1ebbe1b0b24 Mon Sep 17 00:00:00 2001 From: John Chapman <jchapman@cern.ch> Date: Mon, 25 Nov 2019 17:57:22 +0100 Subject: [PATCH] More fixes for writing pkl files --- DetectorDescription/RegionSelector/python/RegSelConfig.py | 2 +- .../G4Atlas/G4AtlasServices/test/G4AtlasServicesConfig_test.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/DetectorDescription/RegionSelector/python/RegSelConfig.py b/DetectorDescription/RegionSelector/python/RegSelConfig.py index ad732614900..506891c1881 100644 --- a/DetectorDescription/RegionSelector/python/RegSelConfig.py +++ b/DetectorDescription/RegionSelector/python/RegSelConfig.py @@ -165,7 +165,7 @@ if __name__ == "__main__": cfg.getService("IOVDbSvc").OutputLevel=DEBUG - cfg.store( file( "test.pkl", "wb" ) ) + cfg.store( open( "test.pkl", "wb" ) ) print("used flags") ConfigFlags.dump() cfg.run(0) diff --git a/Simulation/G4Atlas/G4AtlasServices/test/G4AtlasServicesConfig_test.py b/Simulation/G4Atlas/G4AtlasServices/test/G4AtlasServicesConfig_test.py index a15b67aa6d1..58f97be2290 100755 --- a/Simulation/G4Atlas/G4AtlasServices/test/G4AtlasServicesConfig_test.py +++ b/Simulation/G4Atlas/G4AtlasServices/test/G4AtlasServicesConfig_test.py @@ -55,7 +55,7 @@ if __name__ == '__main__': ConfigFlags.dump() - f=open("test.pkl","w") + f=open("test.pkl","wb") cfg.store(f) f.close() -- GitLab