-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Updating `OpenDSSDirect.py` and `dssdata` version. * Adding development guideline * Adding Code of conduct * Adding Quick Start and other references
- Loading branch information
1 parent
c0f31fb
commit 21ace4e
Showing
5 changed files
with
137 additions
and
16 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 |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# DSSData's code of conduct | ||
|
||
We expected that each people that interact with this project follows these basics guidelines inspired by the [Julia Community - Standards](https://julialang.org/community/standards/): | ||
|
||
## Be respectful and inclusive | ||
|
||
Do not use overtly sexual language or imagery. Do not attack anyone based on any aspect of personal identity, including gender, sexuality, politics, religion, ethnicity, race, age, or ability. Keep in mind that what you write or say in public is read or heard by many people who don't know you personally, so please refrain from making prejudiced or sexual jokes and comments – even ones that you might consider acceptable in private. Ask yourself if a comment or statement might make someone feel unwelcomed or like an outsider. | ||
|
||
## Give credit | ||
|
||
All contributors are expected to respect copyright laws and ethical attribution standards. This applies to both code and written materials, such as documentation or blog posts. Materials that violate the law, are plagiaristic, or ethically dubious in some way will be removed from officially-maintained lists of resources. | ||
|
||
If you believe one of these standards has been violated, you can file an issue on this repository or confidentially contact the manteiner Felipe Monteiro at fmarkson@outlook.com. Keep in mind that most mistakes are due to ignorance rather than malice. | ||
|
||
## Be concise | ||
|
||
Constructive criticism and suggestions are welcome, but longer issues report or the missing of a [Minimal reproducible example](https://en.wikipedia.org/wiki/Minimal_reproducible_example) only difficuts the problem addressment. Consider writing a blog post if you feel that you have enough to say on a particular subject. | ||
|
||
## Follow the [Golden Rule](https://en.wikipedia.org/wiki/Golden_Rule) | ||
|
||
- Treat others as you would like others to treat you. | ||
- Do not treat others in ways that you would not like to be treated. | ||
- What you wish upon others, you wish upon yourself. | ||
|
||
## Any concern? | ||
|
||
If you have a conflict or concern that requires resolution, please contact with the manteiner Felipe Monteiro at fmarkson@outlook.com. |
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,61 @@ | ||
# Development of the DSSData | ||
|
||
## How the project is organized | ||
|
||
The [SystemClass](https://felipemarkson.github.io/dssdata/tutorial/#loading-your-dss-file) has only the responsibility to process the ```.dss``` file. | ||
|
||
The [Power flow modes](https://felipemarkson.github.io/dssdata/tutorial/#run-power-flow) has only the responsibility to configure and run a power flow mode with Actions and Tools. | ||
|
||
The [Actions](https://felipemarkson.github.io/dssdata/tutorial/#creating-your-first-action) has only the responsibility to change the distribution system state temporarily. | ||
|
||
The [Tools](https://felipemarkson.github.io/dssdata/tutorial/#creating-your-first-tool) has only the responsibility to get data information from the current state of the distribution system. | ||
|
||
The [Reduction](https://felipemarkson.github.io/dssdata/tutorial/#creating-your-first-reduction) has only the responsibility to transform various tool's returns in a DataFrame. | ||
|
||
See the package [documentation](https://felipemarkson.github.io/dssdata/) for more details | ||
|
||
## The dependence manager and development environment | ||
|
||
We use [Poetry](https://python-poetry.org/) to manage the dependencies. | ||
|
||
You can quickly get all the development environment run the following commands: | ||
``` bash | ||
$ git clone https://github.com/felipemarkson/dssdata.git | ||
$ cd dssdata | ||
$ poetry install | ||
$ poetry shell | ||
``` | ||
**_Make sure that you have installed the [Python version required](https://felipemarkson.github.io/dssdata/#requirements)._** | ||
|
||
## Linting | ||
[Flake8](https://flake8.pycqa.org/en/latest/) in default configuration. | ||
|
||
## Documentation | ||
|
||
We use [Google's Style Guide](http://google.github.io/styleguide/pyguide.html#38-comments-and-docstrings) for docstrings documentation. | ||
|
||
All public functions must be documented at last with docstrings. | ||
|
||
You can see more details to how to simulate the documentation on #72. | ||
|
||
### How to run the documentation | ||
|
||
```console | ||
$ mkdocs serve | ||
``` | ||
|
||
### How to deploy the documentation | ||
```console | ||
$ mkdocs gh-deploy | ||
``` | ||
|
||
## Tests and CI | ||
|
||
We use the [unittest](https://docs.python.org/3/library/unittest.html) for our functional tests. We know that it is not the best choice, but it works fine. | ||
|
||
```console | ||
$ python -m unittest | ||
``` | ||
|
||
If you have other suggestions on how to build our tests, please tell us in an Issue. | ||
|
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