Please sign in to comment.
Merge pull request #307 from nextstrain/setrecursionlimit
augur/__init__.py: set recursion limit from env variable
- Loading branch information...
Showing with 26 additions and 4 deletions.
|@@ -0,0 +1,19 @@|
|Augur's behaviour can be globally modified by the values of some specific environment variables.|
|These can be especially useful in the context of an entire pipeline or workflow which uses Augur, as the environment variables can be set once for all Augur commands at the start of the pipeline.|
|If set to a non-empty value, all JSON output produced by Augur will be minified by omitting indentation and newlines.|
|Minifying the JSON will substantially reduce file sizes, which is helpful for large, deeply nested trees.|
|If set to a non-empty value, the Python recursion limit will be set to the given value early in Augur's execution by calling :func:`sys.setrecursionlimit`.|
|Generally there is no need to set this environment variable.|
|You may need to if you find yourself encountering :class:`RecursionError` while processing a very unbalanced tree.|