Skip to content

New path to McStas installation #90

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

Open
kinetik161 opened this issue Feb 13, 2025 · 1 comment
Open

New path to McStas installation #90

kinetik161 opened this issue Feb 13, 2025 · 1 comment

Comments

@kinetik161
Copy link

When installing McStas in Debian using the recommended way:

cd /etc/apt/sources.list.d
sudo wget https://packages.mccode.org/debian/mccode.list
sudo apt update
sudo apt install mcstas-suite-python-ng

the paths in the configurator of McStasScript need to be set as:

configurator.set_mcrun_path('/usr/bin/')
configurator.set_mcstas_path('/usr/share/mcstas/resources/')

and not ones with an explicit version number as stated in the McStasScript documentation like /usr/share/mcstas/3.x/.
Version of McStas is 3.5.16.

I suppose the default installation path of McStas has been changed?

@mads-bertelsen
Copy link
Collaborator

There have been changes in how McStas is installed, and even how McStasScript is configured. Now McStasScript actually looks for the $MCSTAS environment variable and use that accordingly, making configuration not even necessary in most cases. That too should be updated in the documentation! Thanks for bringing it to my attention.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants