Comments (5)
Yeah, this is a really good idea. Maybe we could implement an option for no output, printed output, or log output. Definitely something good for v2.
from pykrige.
@basaks I'm not sure about this. Wouldn't just printing and rasing warning be enough? And then let logging be handled by the user application?
For instance, numpy, scipy, scikit-learn don't use the logging module in the core library, which allows more flexibility for the end user to use this logging module or not in their code and also keeps things simpler...
from pykrige.
Well, the logging module allows great flexibility and makes things easier. You can choose an arbitrary name, e.g. logging.getLogger("bsmurphy/PyKrige")
and then disable propagation. That way you will never interfere with whatever choices the end user does for their application. But the end user can choose what they want to log and where it should be logged. Printing the output is a less-favorable solution because unlike logging it is not possible for the end user to control the output at a later stage.
from pykrige.
@1kastner I see your point. For reporting "events that occur during normal operation of a program" cf logging docs that currently use print
when verbose=True
this would indeed be better. For warnings though, warnings.warn
might be more appropriate. Pull Requests welcome )
from pykrige.
I agree that warnings.warn
is more suitable than logging.warning
in this context.
from pykrige.
Related Issues (20)
- Bug: Problem with exact_values when ordinary kriging with backend = 'C' HOT 2
- search radius HOT 3
- Bug: pykrige.ok using deprecated function from SciPy 1.7.0 HOT 1
- Excessive memory use creating OrdinaryKriging object (even if not estimating variogram) HOT 1
- Memory Issue with Large Dataset
- How do you save a model once you fit it
- kr and ck are not imported in __init__.py HOT 1
- `x0` is infeasible.
- uk3d.execute prints statement of 'Executing Ordinary Kriging' HOT 1
- The result is very difference with arcmap, and result grid missing maximum value.
- Can variogram start at zero distance?
- Bug variogram_model parameter ? HOT 1
- zero-size array Erro in OrdinaryKriging HOT 1
- Questions about setting the search range for regular kriging
- Kriging with external drift for temperature interpolation using elevation... again
- regression and kriging, rk.py
- Attempt at using pyKrige.ok3d with xarray.apply_ufunc to reduce memory issues
- Variogram in Universal Kriging
- Cannot find reference 'OK' in 'pykrige.py | __init__.py' HOT 1
- Ignore – sorry devs!
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 pykrige.