-
Notifications
You must be signed in to change notification settings - Fork 0
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
Add support for iterating EXtra-data SourceData objects #14
base: master
Are you sure you want to change the base?
Conversation
Codecov Report
@@ Coverage Diff @@
## master #14 +/- ##
==========================================
- Coverage 91.34% 89.07% -2.27%
==========================================
Files 5 5
Lines 358 366 +8
==========================================
- Hits 327 326 -1
- Misses 31 40 +9
Continue to review full report at Codecov.
|
🤔 I wouldn't encourage people to depend on it, especially passing lots of parameters. I try to avoid breaking even private things if practical, but e.g. I changed the meaning of the second parameter in 1.10 (European-XFEL/EXtra-data#274) in a way that would probably break something like this. And I can imagine that the 'origins' idea we talked about earlier today might involve further changes. |
Indeed, I thought I remember the initializer differently 😉 Ultimately I would like to move the |
Can we design it so that pasha can recognise EXtra-data objects without either having to import the other? E.g. IPython looks for a |
Of course, that was the intent. |
I see, so it needs to return something with If |
c4cec68
to
769f086
Compare
While
extra_data.SourceData
does not have native support for iterating yet, I figured it's actually fairly easy to do on thepasha
side. This has the upsides that it will continue to work for older versions even once added there.@takluyver While not really part of the public API, would you consider the initializer of
DataCollection
private?