Skip to content
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

Provide filenames and strigns #21

Open
mads-bertelsen opened this issue Jul 26, 2019 · 0 comments
Open

Provide filenames and strigns #21

mads-bertelsen opened this issue Jul 26, 2019 · 0 comments

Comments

@mads-bertelsen
Copy link
Collaborator

Currently filenames need two levels of ", as in filename = ""PSD.dat"".

The type of the variable is known, so if "PSD.dat" is given, the extra layer could be added automatically. Then however it is not possible to distinguish between a string variable and a filename. McStasScript does however have a dict of all defined parameters, and can test if this would be allowed. The only potential problem is if a variable exists with the same exact name as what is entered, but it was meant as text.

It would be worthwhile to have this system to simplify common tasks.

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

1 participant