pymad / cpymad

cPyMAD is a python interface to Mad-X using cython and libmadx
http://cern.ch/pymad
Apache License 2.0
3 stars 3 forks source link

retrieve MAD-X version #68

Closed coldfix closed 9 years ago

coldfix commented 10 years ago

I think there should be a way to retrieve the MAD-X version programmatically. If possible the revision number would be even better.

Eothred commented 10 years ago

Yes, there is a header generated during configuration. Mad_version.h or something... Check the cmake scripts for madx.

Cheers, Yngve

Sent from phone with miniscule keyboard, please excuse my brevity. On 30 Jun 2014 15:02, "Thomas G." notifications@github.com wrote:

I think there should be a way to retrieve the MAD-X version programmatically. If possible the revision number would be even better.

— Reply to this email directly or view it on GitHub https://github.com/pymad/cpymad/issues/68.

coldfix commented 10 years ago

Hey,

The closest thing I found so far is in the file mad_gcst.h, which exports version_name and version_date_mod (although unfortunately intermixed with some useless string constants).

I will propbably open an issue and propose a patch.

coldfix commented 9 years ago

Handled in fork based on newer MAD-X revision.