From e0e11c397b47b81d09cded305bd7e982bdf367ef Mon Sep 17 00:00:00 2001
From: Hans van den Heuvel <hans1.vandenheuvel@wur.nl>
Date: Tue, 6 Jul 2021 14:34:55 +0200
Subject: [PATCH] Updated code and readme

---
 .../Convert-EUProcessingFactorsDB.py                         | 4 ++--
 Convert-EUProcessingFactorsDB/README.md                      | 2 +-
 Convert-EUProcessingFactorsDB/requirements.txt               | 5 +++++
 3 files changed, 8 insertions(+), 3 deletions(-)
 create mode 100644 Convert-EUProcessingFactorsDB/requirements.txt

diff --git a/Convert-EUProcessingFactorsDB/Convert-EUProcessingFactorsDB.py b/Convert-EUProcessingFactorsDB/Convert-EUProcessingFactorsDB.py
index 335a792..0399fc7 100644
--- a/Convert-EUProcessingFactorsDB/Convert-EUProcessingFactorsDB.py
+++ b/Convert-EUProcessingFactorsDB/Convert-EUProcessingFactorsDB.py
@@ -321,7 +321,7 @@ min_nr_of_mismatches = int(5)
 mismatch_table_string = report_sheet[
     (report_sheet['Number of KeyFacets Codes'] >= min_nr_of_mismatches) &
     (report_sheet['Number of Matrix FoodEx2 Codes'] >= min_nr_of_mismatches)
-    ].to_markdown(showindex=False)
+    ].to_markdown(index=False)
 
 # Dump the mismatch file
 # We want a specific order in the columns:
@@ -422,7 +422,7 @@ Below a list with the most (more than '''+str(
 Substance conversion duplicates
 ===============================
 
-'''+double_types.to_markdown(showindex=False)+r'''
+'''+double_types.to_markdown(index=False)+r'''
 
 '''
 dataset.references.close()
diff --git a/Convert-EUProcessingFactorsDB/README.md b/Convert-EUProcessingFactorsDB/README.md
index f2c49e1..80aa748 100644
--- a/Convert-EUProcessingFactorsDB/README.md
+++ b/Convert-EUProcessingFactorsDB/README.md
@@ -4,7 +4,7 @@
 
 ### Solve all dependencies
 ```
-pip install pandas xlrd tabulate openpyxl requests
+pip install -r requirements.txt
 ```
 
 ### Run the script in trial (-x) and verbose (-v) mode
diff --git a/Convert-EUProcessingFactorsDB/requirements.txt b/Convert-EUProcessingFactorsDB/requirements.txt
new file mode 100644
index 0000000..3cc119d
--- /dev/null
+++ b/Convert-EUProcessingFactorsDB/requirements.txt
@@ -0,0 +1,5 @@
+pandas
+xlrd
+tabulate
+openpyxl
+requests
\ No newline at end of file
-- 
GitLab