Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-04-09 07:58:33

0001 #!/usr/bin/env python
0002 #
0003 # Licensed under the Apache License, Version 2.0 (the "License");
0004 # You may not use this file except in compliance with the License.
0005 # You may obtain a copy of the License at
0006 # http://www.apache.org/licenses/LICENSE-2.0OA
0007 #
0008 # Authors:
0009 # - Wen Guan, <wen.guan@cern.ch>, 2020 - 2023
0010 
0011 # from enum import Enum
0012 
0013 from idds.common.dict_class import DictMetadata, DictBase
0014 
0015 
0016 class IDDSDict(dict):
0017     def __setitem__(self, key, value):
0018         if key == 'test':
0019             pass
0020         else:
0021             super().__setitem__(key, value)
0022 
0023 
0024 class IDDSMetadata(DictMetadata):
0025     def __init__(self):
0026         super(IDDSMetadata, self).__init__()
0027 
0028 
0029 class Base(DictBase):
0030     def __init__(self, loading=False):
0031         super(Base, self).__init__(loading=loading)
0032         pass