-
Notifications
You must be signed in to change notification settings - Fork 19
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
LAMA to Dask: managing default(-argument) Data
instance
#378
Comments
Hi Sadie, I think I'd rather make |
Sure, that's actually that's fine by me without the need for any debate! So I guess this issue becomes that of raising an appropriate exception rather than the error it presently runs into, as above. I'll change the title of this Issue to reflect that. |
Data
instanceData
instance
@davidhassell this Issue, which boils down now to:
should be added to the list of tasks to do towards #182, since we agreed on applying that behaviour (see comments above!) and forgot about it, I guess! It's pretty trivial to implement, and concerns Assuming you agree with the above, do you want to tackle this, or shall I? (FYI the underlying problem raised in the initial comment here is still true on our current |
Thanks - All yours! |
Fixed by #491 |
Hmm, this change causes a unit test to fail ( |
The new PR #551 changes tack, in that it allows a no-arg initialisation ( This makes the |
This new approach is fine by me, assuming:
is the true motivation to change tack and not just that it is a convenient change in order to bypass the breaking of the docstring rewriting on the initial one! Which is definitely the case, I am sure... 😄 (Also it does seem theoretically nice to allow the no-argument initialisation.) Thanks for putting up the associated PR. I'll review it in a moment. |
We have settled, for now on letting all classes have a no-arg init, so closing. |
(Opening as a general issue since
__init__
isn't listed under our table of methods in #295, so I am not sure of the migration status ofData
initialisation.) Whilst I was trying to create diverse cases of instances ofData
(in the context of #376 (comment)), I noticedcf.Data()
initialised as-is, i.e. with no arguments, which is seemingly documented as being valid (initial argumentarray=None
witharray: optional
stated), runs into an error:The fix is probably a quite simple adaptation, though I don't have time to look into it now; once I have finished reviewing my backlog of Dask migration PRs I will sort this, if you haven't already tackled it @davidhassell.
The text was updated successfully, but these errors were encountered: