-
Notifications
You must be signed in to change notification settings - Fork 82
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #36 from dgasmith/docs
v0.6 release tweaks
- Loading branch information
Showing
32 changed files
with
825 additions
and
382 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -56,6 +56,7 @@ coverage.xml | |
|
||
# Sphinx documentation | ||
docs/_build/ | ||
docs/source/api/ | ||
|
||
# PyBuilder | ||
target/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
============ | ||
QCEngine API | ||
============ | ||
|
||
.. automodapi:: qcengine | ||
|
||
.. automodapi:: qcengine.compute | ||
|
||
.. automodapi:: qcengine.config | ||
|
||
.. automodapi:: qcengine.util | ||
|
||
.. automodapi:: qcengine.programs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
Environment Detection | ||
====================== | ||
|
||
QCEngine can inspect the current compute environment to determine the resources available to it. | ||
|
||
Node Description | ||
---------------- | ||
|
||
QCEngine can detect node descriptions to obtain general information about the current node. | ||
|
||
.. code:: python | ||
>>> qcng.config.get_node_descriptor() | ||
<NodeDescriptor hostname_pattern='*' name='default' scratch_directory=None | ||
memory=5.568 memory_safety_factor=10 ncores=4 jobs_per_node=2> | ||
Config | ||
------ | ||
|
||
The configuration file operated based on the current node descriptor and can be overridden: | ||
|
||
.. code:: python | ||
>>> qcng.get_config() | ||
<JobConfig ncores=2 memory=2.506 scratch_directory=None> | ||
>>> qcng.get_config(local_options={"scratch_directory": "/tmp"}) | ||
<JobConfig ncores=2 memory=2.506 scratch_directory='/tmp'> | ||
>>> os.environ["SCRATCH"] = "/my_scratch" | ||
>>> qcng.get_config(local_options={"scratch_directory": "$SCRATCH"}) | ||
<JobConfig ncores=2 memory=2.506 scratch_directory='/my_scratch'> | ||
Global Environment | ||
------------------- | ||
|
||
The global environment can also be inspected directly. | ||
|
||
.. code:: python | ||
>>> qcng.config.get_global() | ||
{ | ||
'hostname': 'qcarchive.molssi.org', | ||
'memory': 5.568, | ||
'username': 'user', | ||
'ncores': 4, | ||
'cpuinfo': { | ||
'python_version': '3.6.7.final.0 (64 bit)', | ||
'brand': 'Intel(R) Core(TM) i7-7820HQ CPU @ 2.90GHz', | ||
'hz_advertised': '2.9000 GHz', | ||
... | ||
}, | ||
'cpu_brand': 'Intel(R) Core(TM) i7-7820HQ CPU @ 2.90GHz' | ||
} |
Oops, something went wrong.