GithubHelp home page GithubHelp logo

hplgit / parampool Goto Github PK

View Code? Open in Web Editor NEW
23.0 23.0 12.0 3.92 MB

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

Python 89.27% CSS 0.51% JavaScript 7.61% HTML 2.61%

parampool's People

Contributors

hplgit avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

parampool's Issues

Other packages that need installed

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:

Python

  • matplotlib
    • $ conda install matplotlib
  • nose
    • $ conda install nose
  • pillow
    • $ conda install pillow

Other packages

  • imagemagick
    • $ brew install imagemagick

odespy

  • Comment: to install 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.

I cannot run the parampool examples :(

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

Python 3 compatibility?

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?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.