exceltogdx-0.0.6
توضیحات
A simple python tool to extract sets and parameters from excel files by creating GDX files for GAMS
| ویژگی | مقدار |
|---|---|
| سیستم عامل | POSIX |
| نام فایل | exceltogdx-0.0.6 |
| نام | exceltogdx |
| نسخه کتابخانه | 0.0.6 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Carlos Gaete |
| ایمیل نویسنده | cdgaete@gmail.com |
| آدرس صفحه اصلی | - |
| آدرس اینترنتی | https://pypi.org/project/exceltogdx/ |
| مجوز | MIT License Copyright (c) 2021 Carlos Gaete-Morales 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. |
# Excel to gdx
A simple python tool to extract sets and parameters from excel files by creating GDX files for GAMS
See sheet name 'py' in the excel files that describes sets and parameters settings. Similar approach for https://www.gams.com/latest/docs/T_GDXXRW.html
Particularly useful for linux and ios where GDXXRW.exe is not compatible, see here: https://forum.gamsworld.org/viewtopic.php?t=10418#p24019
### NEW FEATURE (v0.0.5):+INF, -INF, EPS
### NEW FEATURE (v0.0.6): gams_dir as new argument.
Required library:
- gdxpds
- pandas
- numpy
- openpyxl
- GAMS API for python
Installation
pip install exceltogdx
Delete
pip uninstall exceltogdx
See notebook [example.ipynb](https://github.com/diw-berlin/exceltogdx/tree/master/notebooks) and download the excel file [test.xlsx](https://github.com/diw-berlin/exceltogdx/tree/master/notebooks)
```
from exceltogdx import exceltogdx
frames = exceltogdx('test.xlsx','test.gdx', gams_dir=None)
```
Repository: https://github.com/diw-berlin/exceltogdx
If you find and error in the code, please raise an issue or solve it by pushing a commit.
نیازمندی
| مقدار | نام |
|---|---|
| - | pandas |
| - | numpy |
| - | openpyxl |
| - | gdxpds |
نحوه نصب
نصب پکیج whl exceltogdx-0.0.6:
pip install exceltogdx-0.0.6.whl
نصب پکیج tar.gz exceltogdx-0.0.6:
pip install exceltogdx-0.0.6.tar.gz