Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

processor.__version__ is missing #107

Open
MichaelHeber opened this issue Dec 7, 2021 · 1 comment
Open

processor.__version__ is missing #107

MichaelHeber opened this issue Dec 7, 2021 · 1 comment

Comments

@MichaelHeber
Copy link
Collaborator

MichaelHeber commented Dec 7, 2021

At the read-in of old format data the error below.

I thing in init.py file of src/processor
version='xxx'
is missing.

I am not sure why this only happen with the old read-in

~/hextof-processor/src/processor/DldFlashDataframeCreator.py in readData(self, runNumber, pulseIdInterval, path)

    231         # print("Number of electrons: {0:,}; {1:,} e/Mb ".format(self.numOfElectrons, self.electronsPerMacrobunch))
--> 232         if not bool(self.metadata):
    233             self.metadata = self.update_metadata()

~/hextof-processor/src/processor/DldProcessor.py in metadata(self)
    222         if self._metadata is None:
--> 223             md = self.update_metadata()

~/hextof-processor/src/processor/DldProcessor.py in update_metadata(self, compute_histograms, fast_mode)
    261         metadata['DAQ channels'] = dict(self.settings._sections['DAQ channels'])#misc.parse_category('DAQ channels')
--> 262         metadata['hextof-processor'] = {'version':processor.__version__}

AttributeError: module 'processor' has no attribute '__version__'
@zain-sohail
Copy link
Member

The new dataframe creator is not reterocompatible so the old format can not be loaded with it. You can download the release 1.0.4 and that should work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants