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

Issue with timestamp #72

Open
giadarol opened this issue Feb 11, 2020 · 1 comment
Open

Issue with timestamp #72

giadarol opened this issue Feb 11, 2020 · 1 comment

Comments

@giadarol
Copy link

~/miniconda3/lib/python3.7/site-packages/pytimber/pytimber.py in getLHCFillData(self, fill_number, unixtime)
    568             return {
    569                 'fillNumber': data.getFillNumber(),
--> 570                 'startTime': self.fromTimestamp(data.getStartTime(), unixtime),
    571                 'endTime': self.fromTimestamp(data.getEndTime(), unixtime),
    572                 'beamModes': [{

~/miniconda3/lib/python3.7/site-packages/pytimber/pytimber.py in fromTimestamp(self, ts, unixtime)
    123             return None
    124         else:
--> 125             t = ts.fastTime / 1000.0 + ts.getNanos() / 1.0e9
    126             if unixtime:
    127                 return t

AttributeError: 'java.sql.Timestamp' object has no attribute 'fastTime'
@giadarol
Copy link
Author

The issue is not observed when cloning from github. It is present when doing pip install from pypi

@giadarol giadarol changed the title Issue with timestamp - this is blocking :-( Issue with timestamp Feb 11, 2020
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

1 participant