diff --git a/README.md b/README.md index 6a32ab4..a29e576 100644 --- a/README.md +++ b/README.md @@ -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] @@ -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 *dexpi2graphML-ad@TUDO.py* from main directory and starts the converter. ## How to Use: The *DEXPI2graphML converter* consists a graphical user interface (GUI) shown in Figure 2. diff --git a/dexpi2graph_python/dexpi2graphML-ad@TUDO.py b/dexpi2graph_python/dexpi2graphML-ad@TUDO.py index 82f25b0..e37abbe 100644 --- a/dexpi2graph_python/dexpi2graphML-ad@TUDO.py +++ b/dexpi2graph_python/dexpi2graphML-ad@TUDO.py @@ -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]) diff --git a/environment.yml b/environment.yml new file mode 100644 index 0000000..5470947 --- /dev/null +++ b/environment.yml @@ -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