-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
v0.6.2. Fix bug in API to set bus angle in deg. Update class STEPS to…
… add parallel_thread_number and its set/get function. APIs are added to set and get toolkit's parallel_thread_number. Remove environment variable dependency in dynamic simulator. Upgrade stepspy to 0.7.1 to include the APIs to set/get parallel thread number.
- Loading branch information
Showing
17 changed files
with
3,030 additions
and
22 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
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 @@ | ||
MIT License | ||
|
||
Copyright (c) 2019 Changgang Li | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. |
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,72 @@ | ||
# stepspy | ||
|
||
> stepspy | ||
stepspy is a Python module of Simulation Toolkit for Electrical Power Systems (STEPS). | ||
|
||
## Table of Contents | ||
|
||
- [Background](#background) | ||
- [Release Note](#release-note) | ||
- [Install](#install) | ||
- [Usage](#usage) | ||
- [Examples](#examples) | ||
- [Maintainers](#maintainers) | ||
- [Contributing](#contributing) | ||
- [License](#license) | ||
|
||
## Background | ||
|
||
stepspy is a Python module of Simulation Toolkit for Electrical Power Systems (STEPS). It provides wrapper of APIs of STEPS in a dynamic library. | ||
|
||
STEPS is a simulation toolkit for powerflow and dynamic simulation of large-scale power systems. It provides detailed models of bus, line, transformer, HVDC, generator, wind turbine generator, load, and fixed shunt. For more information about STEPS, see (https://github.com/changgang/steps). | ||
|
||
## Realse Note | ||
|
||
- 0.7.1. Sep. 18, 2019. Fix API to set and get parallel thread number. | ||
- 0.7.0. Sep. 18, 2019. Add new API to set parallel thread number. Update README. | ||
- 0.6.1. Aug. 27, 2019 | ||
- 0.6.0. Aug. 25, 2019 | ||
|
||
|
||
## Install | ||
|
||
### Install stepspy | ||
|
||
To install stepspy, you can run the following codes on your computer or server: | ||
|
||
```python | ||
python -m pip install stepspy | ||
``` | ||
|
||
If you want to manually install stepspy, follow the instructions: | ||
|
||
1. Go to https://github.com/changgang/steps to download or fork the latest version of STEPS. | ||
2. Go to python/ folder of STEPS, and copy the latest version of stepspy/ to PYTHONPATH/Lib/site-packages/. | ||
|
||
### Install dynamic library | ||
|
||
After install the stepspy, you still need to compile and install the dynamic library of STEPS. | ||
|
||
1. Go to [steps](https://github.com/changgang/steps) to download or fork the latest version of STEPS. The latest version is usually the [work] branch. | ||
2. Compile STEPS into dynamic library following instructions of STEPS. | ||
3, Move the dynamic library of STEPS to stepspy/libsteps/ in the PYTHONPATH/Lib/site-packages/. | ||
4, If the VC runtime is missing, download and install Microsoft Visual C++ 2017 Redistributable of 32 or 64 bit version. | ||
5, If VC runtime or Mingw Runtime is missing, install vcredit or copy libwinpthread-1.dll from mingw compiler/bin/ to c:/windows/system32 and c:/windows/SysWOW64 | ||
|
||
## Usage | ||
|
||
## Examples | ||
|
||
|
||
## Maintainers | ||
|
||
[@changgang](https://github.com/changgang) <[email protected]> from the School of Electrical Engineering, Shandong University, China | ||
|
||
## Contributing | ||
|
||
Feel free to dive in! [Open an issue](https://github.com/changgang/steps/issues/new). | ||
|
||
## License | ||
|
||
[MIT](LICENSE) @ Changgang Li |
Oops, something went wrong.