Closed licode closed 6 years ago
If no conflict, this is to be merged soon.
Can you address why spec.SpecFile
now errors?
Ok, work on new comments
@danielballan where did you fixes to livespec from CHX end up?
Currently xf11id-ws1:~xf11id/Repos/suitcase
Do you want to send a PR for that fix?
I will take care of that fix.
I appreciate that offer, but I left a mixture of necessary and (we later learned) unnecessary changes. I had better sort through them myself.
I don't think I can do this confidently without testing at CHX one more time. Let's punt this to Tuesday or Wednesday -- depending on how things go at CMS.
ok, I will review the pr when it is ready. After those fixes, we can add a new version number here.
@licode any progress on fixing the spec related code?
This is waiting on me to extract and review the hotfix I deployed at CHX. Li dutifully reminded me of this -- totally my fault that it hasn't gotten done yet.
@danielballan , want to quickly check this? I am going to squash commits.
This should be a high priority. I think CHX is having problems that are fixed by this PR.
If this PR is too long, could we add the hdf5 fix separately? LIX also needs this. I added a dirty fix for them but I'd rather not keep it long. thanks :-)
@jrmlhermitte Can you hoist that "dirty fix" into a PR on here?
@danielballan the dirty fix was a personalized fix.
What was happening is that currently suitcase calls fill_event
which relies on the legacy db
.
At LIX, they had to write a custom handler to handle all cases of their file format, which we added to the db
used (db = Broker.from_config(lix_config)
). Basically, I add this custom handler to the legacy db
:
from databroker.databroker import DataBroker as db2
db2.reg.register_handler("AD_CBF", PilatusCBFHandler, overwrite=True)
we make sure to call it db2
so as to not conflict with the existing db
. Also, this db2
I believe reads from _legacy_config.yml
and not the same config that is used in the startup file but I have made sure they're the same. Small point but I thought I would point that out. I don't recommend PR'ing this.
I can ask Lin to update his profiles to github so we can keep track of this change.
(https://www.github.com/nsls-ii-lix/profile_processing)
EDIT: Modified the fix code, should import DataBroker
not databroker
Codecov Report
100% <100%> (ø)
100% <100%> (ø)
94.39% <100%> (-3.55%)
79.59% <100%> (-10.41%)
85.1% <100%> (-7.21%)
93.23% <100%> (-2.53%)
95% <100%> (-3.27%)
Continue to review full report at Codecov.