Comments (5)
I also want this behavior, but I also want db[-1]
to return the latest dataset regardless of filter settings. In other words, I would like the fact that the slicing is being done on filtered data to be explicit to the user. I
I see big problems otherwise, where some filter is set and users are not getting data that they are expecting and going nutso.
from databroker.
I see big problems otherwise, where some filter is set and users are not getting data that they are expecting and going nutso.
We saw the same problem. Filters do not affect slicing, and in order to avoid said "nutso" feeling, it is impossible to make them. Can't have cake and eat it too in this case.
from databroker.
P.S. Of course, can always do:
db.add_filter(bt_piLast='Billinge')
db()[-1]
from databroker.
Is it possible to get back all the records as a generator? That way we don't look at everything at once.
from databroker.
I realized no one answer your last question here. It is not currently possible using the public API, but a separate query method could be added. We chose to be non-lazy here to make the common case (fetching a normal number of headers) more accessible. A compromise that shows the difficulty of building a library and a "user friendly" CLI into the same package.
from databroker.
Related Issues (20)
- Ensure compatibility with bluesky-widgets databroker search widget
- fix memory issue with mongo_normalized when called by Tiled
- Revisit custom queries
- Reading configuration of devices in a run doesn't work with tiled server HOT 5
- Searches for uid on results of other searches fails when not looking for latest
- type of `db.reg.root_map` changed
- Address bit rot in archiver code HOT 1
- Handling "Ragged Arrays" HOT 1
- DatasetFromDocuments missing sort method
- 2.0.0 release blocker: first non-alpha tiled release HOT 1
- Handle event streams with 0 events HOT 1
- Investigate failing config_data test
- conda install -c nsls2forge databroker failed on ubuntu 22.04 HOT 1
- import databroker.tutorial_utils fails to locate 'databroker.core' package HOT 1
- import databroker.tutorial_utils fails after issue [776] updated instruction
- Deprecated distutils import from upstream dependency in v1.2.5 HOT 1
- Support updating metadata from Tiled client
- FutureWarning: xarray --return type of Dataset.dims will be changed
- Remove unused `resource_roundtrip()` from test suite? HOT 2
- SQLite cursor timeout in tests HOT 2
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 databroker.