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

rewrite dialect input with exec() statements. #39

Open
stefanfluck opened this issue Apr 12, 2021 · 1 comment
Open

rewrite dialect input with exec() statements. #39

stefanfluck opened this issue Apr 12, 2021 · 1 comment
Labels
enhancement New feature or request

Comments

@stefanfluck
Copy link
Owner

Currently, each new dialect requires 1) a dialect.py file in the dicts folder and 2) a couple of lines in the make_static routine. automate that with exec('command as string'). Therefore, any kind of string can be supplied in the namelist, and just the file can be supplied in the dicts folder.

alternative: make path of dicts folder/file also an input in the namelist. if none provided -> use current path as it is now.

@stefanfluck stefanfluck added the enhancement New feature or request label Apr 12, 2021
@stefanfluck
Copy link
Owner Author

use mpd = importlib.import_module('palmpy.staticcreation.dictfolder.'+dialectvar')

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

No branches or pull requests

1 participant