Skip to content

CLI can now parse scientific notation integers #69

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

Merged
merged 4 commits into from
Sep 26, 2022
Merged

CLI can now parse scientific notation integers #69

merged 4 commits into from
Sep 26, 2022

Conversation

lobis
Copy link
Member

@lobis lobis commented Sep 24, 2022

lobis Ok: 20

Now you can pass values such as -n 1E5 etc to the CLI and it will be correctly interpreted. It is supported both for the -n and -e option.

@lobis lobis marked this pull request as ready for review September 24, 2022 13:39
@lobis lobis requested review from jgalan and juanangp September 24, 2022 13:40
@lobis lobis added enhancement New feature or request development labels Sep 24, 2022
@lobis lobis requested a review from a team September 26, 2022 07:55
@jgalan
Copy link
Member

jgalan commented Sep 26, 2022

Don't understand too much the description, could you give an illustrative example?

@lobis
Copy link
Member Author

lobis commented Sep 26, 2022

Don't understand too much the description, could you give an illustrative example?

You can use restG4 -n 1E4 instead of restG4 -n 10000 for instance.

@jgalan
Copy link
Member

jgalan commented Sep 26, 2022

Ok, because sometime ago we discussed about the potential to use resG4 or restManager command line to modify any parameter given at the RML in a generic way. Something like:

restG4 --TRestGeant4Metadata::fNevents=1000 --TRestGeant4Metadata::fGDMLFilename=geometry/setup.gdml

@lobis
Copy link
Member Author

lobis commented Sep 26, 2022

Ok, because sometime ago we discussed about the potential to use resG4 or restManager command line to modify any parameter given at the RML in a generic way. Something like:

restG4 --TRestGeant4Metadata::fNevents=1000 --TRestGeant4Metadata::fGDMLFilename=geometry/setup.gdml

Yes that would be nice, but I still think it would be nice to have shortcuts for most used parameters such as -n

@lobis lobis merged commit 7d194ca into master Sep 26, 2022
@lobis lobis deleted the lobis-cli branch September 26, 2022 09:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
development enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants