Coder Social home page Coder Social logo

zhangt58 / beamline Goto Github PK

View Code? Open in Web Editor NEW
4.0 4.0 5.0 71.14 MB

Accelerator online modeling and visualization package

Home Page: https://archman.github.io/beamline/

License: MIT License

Python 74.80% Shell 0.42% Jupyter Notebook 24.78%
accelerator epics lattice-visualization model python

beamline's People

Contributors

smartsammler avatar zhangt58 avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

beamline's Issues

test_lattice.py File2jsonTest fails on Python 2.7.12

test_lattice.py fails with the File2jsonTest.
The JSON outputs/files differ in the following point:

1095d1094
<     "_epics": {},
1097,1098c1096,1097
<         "% 0 sto csr_on_off",
<         "% 0 sto lsc_on_off"

---
>         "% 0.0 sto csr_on_off",
>         "% 0.0 sto lsc_on_off"

Firstly the "_epics": {} is missing in the reference/test JSON and secondly the 0 is float and not string.

PEP8/FLAKE8 compatibility

There's no document for the preferred coding style, therefore I ask you if I might submit pull requests with changes (most often done by my editor) to make the modules PEP 8 conform and make pycodestyle and Flake8 warn one less.
Typical changes would be no space at the end of a line, spaces after commas, no unnecessary blank lines, etc.

Todo list

beamline is designed to be an online modeling package for EPICS-control based accelerator, below is the subject that should be done or improved:

  1. Documentation still need to be improved, especially the API section, i.e. better docstring is required;
  2. Unit test, some testing scripts were inconsistent with the recent version of beamline, which should be fixed, and more testing scripts should be written to make the unit test completed;
  3. MadParser class to handle lattice file according to MAD(8,X) convention, PR is created now;
  4. The approach to handle EPICS interface variables in the lattice file should be improved, especially the Model class;
  5. to be continued

Python3 (again!)

As I wrote for pyrpn, I was wondering if there was anything that prevented this being expanded to allow use with python3?
(As before, I'm more than willing to do the work myself if you don't see any major stumbling blocks.)

matchutils missing in the public repo

The import of ParseParams, BeamMatch, FELSimulator and parseLattice fails, because matchutils can't be imported, because it is missing in the github repo.

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.