-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Profile examples using urllib and numpy file reading #9
Comments
Should I add new python file like examples.py and write a script for getting data from URL and testing curve&profile (I could also make a separate class to store data and provide some tests as methods of this class) or I should rather figure out how to use urllib and put the tests in curve.py and profile.py ? |
I think that example using urllib should contain not more than 3-4 lines of the code. What user installs ad pip package shouldn't contain any example. First let's see how does it go this way. If there will be some surpises on the way I could change my mind. |
Already got familiar with urllib library, now I need to find a way to parse the data and what is going to be even harder: a nice example I could use. It probably wont take more then 2 hours. Also if you know some nice examples of profiles that could be used - let me know. |
Need some help here
|
Ad 1) Use your google skills. If you don't find the "beam profile" - try with another profile. It can be:
Ad 2) If you are parsing HTML - this is bad idea. I was thinking about sth like the example from here:
Ad 3) Yes. In fact you can even try to make it working directly with online files. Documentation says:
|
Check how it is done in pandas tutorial: Loading data - 2 lines. |
Provide getting examples of profiles directly from the web using python urllib and numpy.
Recieved data should be 2D or 3D array that can be directly used to create a profile with beprof tools.
The text was updated successfully, but these errors were encountered: