Comments (3)
I'm now back into win7 and get rid of scientific linux because it cracked again.
I didn't try scientific linux so far, but I had no problems on other distributions (ubuntu, mint, debian, arch). I think, I'd recommend mint for beginners.
I have succeeded installing cpymad on my thinkpad with 64bits win7. The process is very successful and no problem has been happened.
Great.
First, I can't modify the assignment to command_log. I want to store command history to my desired place.
`madx=Madx(command_log='E:\cython_madx\test\log.madx')
The backslash \
is an escape character inside strings, e.g. '\t'
stands for <Tab>
and '\\'
stands for a literal backslash. The error message ([...] or filename: 'E:\\cython_madx\test\\log.madx'
, you can see that only the first and last backslash got recognized as path separators. If you don't want to use double '\\'
inside your strings, prefix the first quote by an 'r'. E.g.:
madx = Madx(command_log=r'E:\cython_madx\test\log.madx')
Second, I can't find any MadX file in my disk. I remeber, that there exist amount of MadX examples in linux. What happened to this?
Are you talking about the models which were previously distributed inside cpymad or about log files? As for the models: I cut them out, their license is difficult, I don't want to maintain them, I'm not affiliated with CERN ;). And, as they are data files, they do not belong in a code repository.
Third, could you give me a complete example to begin cpymad?
You can ask me any specific question. The example in the README is examplatory for most of what cpymad can be used for.
Did you read python tutorials and MAD-X manual so far? Without knowledge about MAD-X and python, cpymad will not be useful. cpymad is a python-binding of MAD-X, i.e. it makes the MAD-X library accessible from python. If you don't plan to program in python or make use of data-analysis via scipy/numpy/matplotlib, it doesn't really make sense to use cpymad instead of plain MAD-X.
from cpymad.
Are you talking about the models which were previously distributed inside cpymad or about log files? As for the models: I cut them out, their license is difficult, I don't want to maintain them, I'm not affiliated >with CERN ;). And, as they are data files, they do not belong in a code repository.
I mean, .madx file can't be found in my disk anyway. For linux, many examples such as .madx file can be found in some folder. I think this is due to installing libmadx in linux but not for windows, right?
Did you read python tutorials and MAD-X manual so far? Without knowledge about MAD-X and python, cpymad will not be useful. cpymad is a python-binding of MAD-X, i.e. it makes the MAD-X library accessible from python. If you don't plan to program in python or make use of data-analysis via >scipy/numpy/matplotlib, it doesn't really make sense to use cpymad instead of plain MAD-X.
Yes, I have read python tutorials and programmed few pieces of codes via function_based program and object- oriented program is the next plan.
I am reading MAD-X manual and have even not used it.
My goal is to call madx via python and Visualise scientific data.
Currently, I want to make a match for optimizing beam spot at a fixed position by adjusting only few magnets.
from cpymad.
Hey, I hope you are fine with the solution I gave you and hence closing this for now as I don't see an open question. Reopen if needed.
from cpymad.
Related Issues (20)
- Differences in cpymad `table.twiss` and madx `table(twiss, X, X)` when running `use` HOT 7
- Twiss at certain positions HOT 13
- Element redefinition and twiss HOT 5
- Add support to release Linux AArch64 wheels HOT 7
- EMIT module output is displayed with "delay" HOT 2
- TWISS: no beta0 found HOT 1
- New functions
- Can't run madx instance. TypeError HOT 5
- Build error on Win10 Anaconda 2022.5 HOT 11
- What is the preferred way to retrieve the command (string) with which an Element was created? HOT 3
- libmadx error installing on M1/M2 Apple Silicon HOT 7
- Pitfalls on compiling libmadx/cpymad on Linux HOT 5
- Proposal: specialize tables HOT 8
- Wheel for M1 apple? HOT 2
- Python 3.11 Wheels HOT 4
- Error building cpymad on M1 Apple Silicon - "-march=core2" not supported HOT 5
- call does not work when double slash is present in file path HOT 2
- access default beam HOT 1
- ValueError: TypeError: write() argument must be str HOT 4
- Python 3.12 wheels HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cpymad.