Comments (17)
It looks like there is an installation problem. How did you install SMT?
from smt.
I downloaded the files and using Anaconda environment used pip install. If there anotherway PL let me know, I will un-install and re-install. However, some of the other cases worked .
from smt.
If you have installed following the Readme here (pip install -e smt_dir
) RMTB and RMTC are compiled on your machine during installation. Maybe something went wrong.
You can uninstall and then try to install from pypi directly with pip install smt
.
from smt.
from smt.
That was exactly what I suggested. As you use Windows you can get binary distribution with:
pip install smt
Downloading the code followed by pip install -e
is for development mode i.e. when you want to develop within SMT library. If you just want to use SMT, direct install from Pypi with pip install smt
is simpler (and does not require compilation on Windows).
from smt.
See also documentation here
from smt.
Hi,
Did as instructed (uninstalled and installed again) and ran 'testflo'. While some tests ran OK some did not go through. As before I tried running CRM wing example and got a different error. I am attaching the testflo report as well as the screen shot of error message.
testflo_report.txt
Thanks for looking into my issues,
Narahari
from smt.
First, two remarks:
- Installation with
pip install smt
will work without compilation only with Python 3, but I noticed you are still using Python 2.7. In that case, it may work with a previous version of smt:pip install smt==0.2.2
- I noticed you have an smt-master directory like you downloaded a zip then install from the zip file which will fail to compile RMTB or RMTC surrogates if you do not have the right C++ compiler.
So, please just try: pip install smt==0.2.2
If it installs smt 0.2.2 successfully then you can use the code from the smt zip file you downloaded to run the crm wing example.
python examples\rans_crm_wing\run_rans_crm_wing_rmtb.py
do not execute from smt-master\smt directory, it might mess with the smt code present in the directory and smt code installed on your system.
from smt.
Tried that but got this message
from smt.
I was using Python 3.6 but had to change to 2.7 as a couple of other packages run only on that. Can I have both versions of python (on different drives) working in the same laptop ? if so I may do that
from smt.
You can have several installations of Python. Then you just have to manage your paths consistently. The easier way to do that is to use Anaconda distribution with environments.
from smt.
I realize that what I suggest depends on the hardware architecture as well and will only work with a windows amd_64 (which is the architecture of my machine with which I generate SMT binaries).
Otherwise you have to compile SMT successfully. Again for that, I would suggest to install Anaconda distribution.
from smt.
I have installed Anaconda with python 3.73 (have another environment for 2.7) , installed SMT using 'pip install smt' . Whn I run some of the cases in the tutorial (LS, QP, Krigging) it runs fine , but stops when I run the RMTB case. I am attaching the sc
ree shot , as you can see .pyc files are there , but the error I get is 'smt.examples' module not found.
from smt.
Examples are not meant to be installed (the smt.examples package is not found hence the error). It works when installing in development mode pip install -e smt_folder
because the code is in the smt_folder.
If you want to make it work, copy rans_crm_wing.py
and run_rans_crm_wing_rmtb.py
in a directory, go in that directory, replace from smt.examples.rans_crm_wing.rans_crm_wing ...
by from rans_crm_wing ...
then just execute python run_rans_crm_wing_rmtb.py
from smt.
That is it ! working now. I guess I need to do the same for all the other cases in 'examples' directory. Btw, there are plot commands in the file but I did not see any plots, shoild I remove the 'agg' option in the Mathplotlib?
from smt.
Indeed, comment out the matplotlib.use("Agg")
line and you should see the plots.
from smt.
from smt.
Related Issues (20)
- Hessian computation/Compatibility with dual numbers HOT 4
- SIGBUS (Misaligned Address Error) HOT 1
- negative axis 1 index
- Training two samples take ~480 seconds HOT 3
- OOB access in RMTB HOT 1
- SGP Gradients unsupported HOT 1
- Relevance of the warning `R is too ill conditioned...` HOT 3
- ConfigSpace vs Numpy 2.0 compatibility HOT 1
- Document parameters to improve accuracy of SGP
- Recommendation for surrogate optimization
- Multi-Fidelity Models with Variable Design Spaces
- KeyError: 'C' HOT 2
- Question About KeyError: 'design_space' HOT 1
- How to package a trained Surrogate model into an FMU?
- ConfigSpace error with Python 3.12 - TypeError: Expected float, got numpy.float64 HOT 2
- Documentation hyperlink failing HOT 1
- RMTS issue with scipy < 1.12 HOT 1
- KPLSK is badly implemented
- Error with the prediction of variance derivatives in GPX HOT 1
- Wrong code in [7] to plot the Rosenbrock function ? 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 smt.