Skip to content

Commit

Permalink
[get_started/writing_scripts] Updated Testing Local Scripts section w…
Browse files Browse the repository at this point in the history
…ith new dev_root parameter.
  • Loading branch information
bicarlsen committed May 13, 2021
1 parent 4d0e0fc commit 7824bc3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/get_started/writing_scripts.rst
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ It is conventient to test your analysis script on a specific Contain to ensure i
# for local projects only
from thot import ThotProject
thot = ThotProject( 'path/to/test/container' )
thot = ThotProject( dev_root = 'path/to/test/container' )
However with this arrangement, the script will always use the given Container as the root. Instead, we want to use the designated path only for testing, but allow Thot to set the root Container during the actual analysis. ``ThotProject`` has a ``dev_mode()`` method which allows the script to distinguish if Thot is running an analysis, or if you are just testing the script. You can initialize a ``ThotProject`` with the ``dev_root`` parameter for testing, and use the ``dev_mode`` method to only perform certain actions during testing.

Expand Down

0 comments on commit 7824bc3

Please sign in to comment.