-
Notifications
You must be signed in to change notification settings - Fork 22
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
Abstraction #14
Comments
Current input parameters would go into these classes:
Most of the |
At the moment, One of the reasons why I chose to do it that way is that I think code like this is so much easier to understand by someone coming new to a project. Easier to read, easier to understand, easier to follow. Almost all arguments are passed explicitly, you know exactly what goes into a function. With some lists and dicts this isn't strictly true either, but for instance in It probably goes a bit along the lines of the controversy talk by Jack Diederich: https://www.youtube.com/watch?v=o9pEzgHorH0 (PYCON US 2012). Now, I am thinking that Now, I am not sure yet if I follow this road, if I will change everything under the hood for more abstractions, and what an eventual timeline would look like. I am merely at a brainstorming point. |
More and more I think this is not the way to go.
So I think the functional approach is appropriate, good enough, or just fine for its purpose. However, one thing to think about is using the new
to
or similar. |
Also, |
It stays mostly as it is. |
All settings (`xdirect`, `ht`, `htarg`, `ft`, `ftarg`, `loop`, `verb`) are now extracted from `kwargs`. This makes it possible that all model-functions take the same keyword-arguments; warnings are raised if a particular parameter is not used in this function, but it doesn't fail (it fails, however, for unknown parameters). Pure positional calls including those parameters will therefore not work any longer. Closes #14
Create main classes
survey
,model
, andsettings
,where
settings
might be part ofsurvey
. Have a look at SimPEG and a chat with the SimPEG folks to discuss this.The text was updated successfully, but these errors were encountered: