hplgit / parampool Goto Github PK
View Code? Open in Web Editor NEWSet and retrieve parameters for simulation models using diverse interfaces (command line, web GUI, file)
Home Page: http://hplgit.github.io/parampool/doc/web/index.html
Set and retrieve parameters for simulation models using diverse interfaces (command line, web GUI, file)
Home Page: http://hplgit.github.io/parampool/doc/web/index.html
Following the instructions in the documentation in the Appendix, I installed the following (I'm on Mac OS 10.12.4):
$ conda create -n parampool python=2.7 numpy Flask progressbar Flask-WTF Flask-SQLAlchemy Flask-Login Flask-Mail
$ source activate parampool
In trying example flask_pool3
I found I had to install the following additional packages:
$ conda install matplotlib
$ conda install nose
$ conda install pillow
$ brew install imagemagick
odespy
odespy
from github, a fortran compiler must be present.
$ brew install gcc
# includes gfortran
pip install -e git+https://github.com/hplgit/odespy.git#egg=odespy
It might be good to update Appendix.
Once I did the above, the example worked perfectly.
Hello,
I am sorry, but on page 5 the images are missing: https://hplgit.github.io/parampool/doc/pub/._pp004.html
Dear Hans Petter Langtangen,
I am extremely interested in parampool! I am trying to make a Keplerian fitting program for radial velocity data and it seems that your work is exactly what I need.
(I tried web4sciapps-master - works fine, except that I cannot make the login page for some reason)
However, at the moment I feel like an idiot. I am reading the manual and still I cannot run even the parampool examples. I don’t know if the problem is in me or something is wrong with the code.
(I am using ubuntu 15.04)
For example if I try to generate flask1:
tito@terminator:~/web_plot/parampool-master/parampool/tests$ python generate_flask1.py
*** Warning:
mysimplefunc has positional arguments.
We recommend to use keyword arguments only since this
generator can then detect the type of each argument and
assign the proper form field type.
The default form field for the positional arguments is
FloatField, which requires explicit conversion
for all arguments that are not of this type.
See controller.py, # Convert data ... for what type
of code that may be needed.
Flask main application written to controller.py.
Usage: python controller.py
then running controller.py:
tito@terminator:~/web_plot/parampool-master/parampool/tests$ python controller.py
Traceback (most recent call last):
File "controller.py", line 5, in
from model import Mysimplefunc
File "/home/tito/web_plot/parampool-master/parampool/tests/model.py", line 2, in
from parampool.html5.flask.fields import HTML5FloatField
File "/usr/local/lib/python2.7/dist-packages/parampool/html5/flask/fields.py", line 10, in
from parampool.menu.DataItem import DataItem
ImportError: No module named menu.DataItem
So here some modules are missing?
I am not able to run the rest at all (Django1,2 and flask2)
Example for django2:
tito@terminator:~/web_plot/parampool-master/parampool/tests$ python generate_django2.py
sh: 1: django-admin.py: not found
Traceback (most recent call last):
File "generate_django2.py", line 3, in
generate(myfunc)
File "/usr/local/lib/python2.7/dist-packages/parampool/generator/django/generator.py", line 71, in generate
start_all(projectname, appname, project_dir, enable_login)
File "/usr/local/lib/python2.7/dist-packages/parampool/generator/django/django_setup.py", line 204, in start_all
os.chdir(projectname)
OSError: [Errno 2] No such file or directory: 'myfunc'
but myfunc is defined in compute.py
Please give me more detailed step by step instructions, I guess I am doing something wrong.
All the best,
Trifon
I just read through pp.pdf, and this looks like a really nice project that I would find useful. However, over the last few years I have transitioned all of the work of my research group to Python 3, and am reluctant to use a python 2.7-only tool. Is there a plan to update to Python 3? If so, any idea when that might happen? If not, do you have a sense of how big a job it would be to update to python 3?
Regarding the folder structure and how to execute the code in a step by step fashion, could you please provide more details on that
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.