Comments (4)
Something like os.getcwd().find(os.path.abspath(os.path.split(os.path.split(pymc.__file__)[0])[0]))>-1
?
from pymc.
Yes, though that would require "pymc" to have already been imported, no?
from pymc.
This patch works when pymc is installed with setupegg.py develop on a Mac. Does anyone have it installed with setup.py install?
diff --git a/pymc/__init__.py b/pymc/__init__.py
index af76150..cec84d5 100755
--- a/pymc/__init__.py
+++ b/pymc/__init__.py
@@ -16,10 +16,9 @@ except ImportError:
# Core modules
from threadpool import *
-try:
- import Container_values
- del Container_values
-except ImportError:
+import os
+import pymc
+if os.getcwd().find(os.path.abspath(os.path.split(os.path.split(pymc.__file__)[0])[0]))>-1:
raise ImportError, 'You seem to be importing PyMC from inside its source tree. Please change to another directory a
from Node import *
from Container import *
from pymc.
OK, I added this in 70ceab1
from pymc.
Related Issues (20)
- BUG: pm.Data does not accept dtype argument HOT 1
- New progressbar not showing divergences? HOT 1
- Implement `set_data` as a model transformation HOT 2
- ENH: Overloading of the `TensorVariable` CLass add(+) operator(or new attributes) HOT 13
- DOC: format of the initial values for the sample_smc function HOT 1
- BUG: Forward sampling with dims fails when mode="JAX" HOT 7
- BUG: NaNs in logp mess up resampling step in SMC HOT 6
- BUG: Slicing after adstock transformation not working HOT 3
- Implement `Ordered` distribution factory HOT 6
- Add PyArrow backend
- Runtime error windows. Anaconda HOT 1
- BUG: NotConstantValueError when using coordinates observed data with missing values with pymc==5.14.0 HOT 3
- BUG: passing the 'max_n_steps' parameter as kwarg to HurdleNegativeBinomial distribution does not work HOT 2
- Refactor/Upgrade `find_MAP` HOT 1
- ENH: Update reported sampler diagnostics for `pm.Slice()` step method HOT 2
- BUG: Adding a Deterministic results in the error: `All variables needed to compute inner-graph must be provided as inputs under strict=True` HOT 8
- Test `freeze_rv_and_dims` with `PartiallyObservedRV` HOT 1
- ENH: Customizable plate labels HOT 11
- First time congratulatory message images are huge HOT 8
- DOC: Plots squished in the documentation page 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 pymc.