Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added environment for conda env #2

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 8 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@ A application for Windows 10 will be available soon.

### Python installation
1. Install Python (anaconda) from https://www.anaconda.com/products/individual
2. Load the following python libraries
2. Download the folder dexpi2graph_python.
3. Load the following python libraries
- [NetworkX](https://networkx.org/) (vers. 2.4) [2]
- [Matplotlib](https://matplotlib.org/) (vers. 3.2.2) [3]
- [Pandas](https://pandas.pydata.org/) (vers. 1.0.5) [4]
Expand All @@ -42,8 +43,12 @@ A application for Windows 10 will be available soon.
- [PySimpleGUI](https://pysimplegui.readthedocs.io/en/latest/) (vers. 4.56.0) [7]
- [lxml](https://lxml.de/) (vers. 4.5.2) [8]
- [openpyxl]() (vers. 3.0.9) [9]
3. Download the folder dexpi2graph_python.
4. Running the script *dexpi2graphML.py* starts the converter.

or create a new conda environment via
```
conda env create --name envname --file=environment.yml
```
4. Running the script *[email protected]* from main directory and starts the converter.

## How to Use:
The *DEXPI2graphML converter* consists a graphical user interface (GUI) shown in Figure 2.
Expand Down
2 changes: 1 addition & 1 deletion dexpi2graph_python/[email protected]
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@
window.FindElement('_output_').Update('')
file = values['selected_plot'][0][:-4]
error_file = './Output/errorLog/'+file+'_ErrorLog.xlsx'
error_df = pd.read_excel(error_file)
error_df = pd.read_excel(error_file, engine='openpyxl')
for i in range(0, len(error_df)):
print(error_df['Warning'][i])
print(error_df['Node(s)'][i])
Expand Down
13 changes: 13 additions & 0 deletions environment.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
channels:
- conda-forge
- defaults
dependencies:
- python=3.7
- networkx=2.4
- matplotlib=3.2.2
- pandas=1.0.5
- nltk=3.5
- pillow=7.2.0
- pysimplegui=4.56.0
- lxml=4.5.2
- openpyxl=3.0.9