Replies: 3 comments 12 replies
-
Sounds good to me. Consider writing tests as you go. For the tutorial I don't think you should require people to download and set up Pycharm. I think Jupyter notebooks might be a good way of doing this - see https://github.com/atcollab/at/tree/master/jupyter. |
Beta Was this translation helpful? Give feedback.
-
I have some things I have noticed related to encouraging beginners to use pyAT in case it helps. First, the need for a lattice file. To be able to import mat files is nice, but most people seem so used to having a text based lattice file that they can make changes to directly that they prefer to work that way. They don't want to first have to write a m file, produce a mat file and then import it. If they need to do that they just stick with using AT. They want a text based lattice file that can be read directly into pyAT. So in case that doesn't already exist now, I think a good step would be to implement that. I haven't used pyCharm, but I use Spyder. Not sure how different the installation and set up is between the two, but I usually find Spyder to be easy. Jupyter notebooks are good for showing examples, but for a tutorial I think people would like examples of real simulations (many particles, many turns etc) that they can translate to their lattice and I don't think anyone does that using Jupyter? One advantage with AT/pyAT over other codes is the possibility to look at variables during the execution, which you can do in Spyder in the same way as in Matlab and I think it would be good to highlight that. Otherwise I think Elegant is a good example. Elegant has a very steep learning curve, but they still attract a lot of new users. Partly because of all the functionality they have implemented, but I think also because of the resources available for the users. Things like a manual, user forum and a lot of examples that you can download and modify for your machine. Those things take a lot of time to build up, but perhaps with a good structure for how to do it pyAT can also get there with time? Especially having a user forum I think could be useful because then more people can contribute to provide support for new users. |
Beta Was this translation helpful? Give feedback.
-
It's similar to the Matlab .m lattice file, it's just a list of python commands as they would be interpreted at the command line.
Here is an example corresponding to the 'hmba.mat' example (remove the .txt extension): [test.repr.txt]
Note that is has a lot of unnecessary attributes inherited from the .mat file, you just need to specify the non-default attributes. However the .repr format is very simple and does not offer the possibilities of other languages. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Dear all, (@lfarv , @willrogers , @swhite2401 , @T-Nicholls , @carmignani )
I wanted to start a list of small improvements / bug fixes/ minor additional features to pyat. It seems github does not have the todo list capability (unlike gitlab) so a discussion is the most relevant place for it.
I am sure there are others that I have forgotten. But once I remember them I can update them here. I am interested to know if you have any thoughts or comments on this.
Cheers,
Lee
Beta Was this translation helpful? Give feedback.
All reactions