-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Migrate variable-naming-conventions to own docs page (#124)
- Loading branch information
1 parent
c3994b6
commit c5cb044
Showing
4 changed files
with
32 additions
and
26 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
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,21 @@ | ||
.. _variable-guidelines: | ||
|
||
Variable naming conventions | ||
=========================== | ||
|
||
A variable name should adhere to the following conventions: | ||
|
||
* A *|* (pipe) character indicates levels of hierarchy. | ||
* Do not use spaces before and after the *|* character, but add a | ||
space between words (e.g., *Primary Energy|Non-Biomass Renewables*). | ||
* Do not use abbreviations (e.g, *PHEV*) unless strictly necessary. | ||
* Do not use abbreviations of statistical operations (*min*, *max*, | ||
*avg*) but always spell out the word. | ||
* All words must be capitalised (except for *and*, *w/*, *w/o*, etc.). | ||
* Add hierarchy levels where it might be useful in the future, e.g., | ||
use *Electric Vehicle|Plugin-Hybrid* instead of *Plugin-Hybrid | ||
Electric Vehicle*. | ||
* Do not include words like *Level* or *Quantity* in the variable, | ||
because this should be clear from the context or unit. | ||
|
||
Read more about the required/expected attributes of a :ref:`variable`. |