Comments (11)
@licode Can you have a look into this ?
from csxtools.
sure, I am on this.
from csxtools.
I think this should work
slicerator = get_fastccd_images(db[old_scan_no], (db[old_scan_no-1,old_scan_no+1]))
(db[old_scan_no-1,old_scan_no+1], None, None) is not 1d tuple.
from csxtools.
Since the notebook server is down, I can't check, but from inspecting the code isn't the problem that the code assumes that the first element of the tuple is a header object?
When called in either of our examples it tried to access {1st element of tuple}.table()
db[old_scan_no-1,old_scan_no+1] returns a list and the code fails because it tries to access the .table() method on this list?
from csxtools.
yep. This is exactly what error complains about.
AttributeError: 'list' object has no attribute 'db'
from csxtools.
I think we're in agreement. The code was changed from using the get_table function imported at the start of the module to access the same functionality via the .table() attribute of the input object.
Maybe there are some speed or other reasons for this? If not, my instinct would be to put it back as it was?
from csxtools.
This is the feature provided in new databroker. We will use header.db.get_images, header.db.get_table, instead of importing at the beginning. The reason is we will have multiple db later, i.e., different db links to different mongo back end. hdr.db provides an easy way to sort out this requirements.
Here is the new doc. http://nsls-ii.github.io/databroker/tutorial.html
from csxtools.
That sounds like a reasonable way to do it. So should the CSX tool fix would be some try: except: ArributeError blocks to handle either a single dark image or multiple dark images? This functionality was previously in the imported function.
from csxtools.
sounds good. hdr.db.get_images should work with multiple headers, because nothing changed in db.get_images, we just linked it back to hdr. We only need a quick fix in csxtools. I am working a PR on this.
from csxtools.
This should be fixed on
#61
from csxtools.
Tested
/opt/conda_envs/analysis-2018-2.1)
csxtools: '0.1.13'
tested before debian 7 upgrade to 8 and it still seemed problematic.
tested this week after debian upgrade to 8 on all 3 servers and not this functionality appears to work without issue.
from csxtools.
Related Issues (20)
- make csx tools load multiple scan_ids HOT 6
- image_stack_to_movie is broken HOT 1
- get_fastccd_images cannot process all instances of recorded data HOT 2
- roi argument for get_fastccd_images() is broken ... plus some flatfield dependency discussion HOT 23
- KeyError: 'AD_HDF5' for 1.14 for get_fastccd_flatfield() and get_fastccd_images() HOT 7
- Should we change default behavior get_fastccd_images to use a flatfield of (almost) all ones? HOT 3
- get_fastccd_images() does not work with roi given as input HOT 3
- swmr says it is enabled but it doesn't seem to work HOT 1
- Strange error related to dark image scan with x2 gain HOT 3
- Logging module no longer works
- fccd flatfield function doesn't handle the broken part of the camera very well HOT 5
- Remove hard-coded rows and columns because this changes HOT 1
- Potential place for controlling dark image searching HOT 1
- flat field issue HOT 3
- conda packaging for Python 3.10 HOT 2
- Fix deprecation warnings on tests. HOT 6
- ENH more automation of flatfield correction HOT 1
- homework for new helpers modules HOT 1
- helpers.overscan copy-paste error for right-side of detector
- flake8 style needed for new modules
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from csxtools.