Skip to content

Commit

Permalink
Sort files. os.walk functions differently on Linux apparently, creati…
Browse files Browse the repository at this point in the history
…ng issues.
  • Loading branch information
MaximeAgez committed Aug 17, 2023
1 parent 60dac44 commit 6547d13
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
8 changes: 2 additions & 6 deletions doc/demo.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,7 @@
{
"cell_type": "code",
"execution_count": 2,
"metadata": {
"scrolled": false
},
"metadata": {},
"outputs": [
{
"name": "stderr",
Expand Down Expand Up @@ -6317,9 +6315,7 @@
{
"cell_type": "code",
"execution_count": 12,
"metadata": {
"scrolled": true
},
"metadata": {},
"outputs": [
{
"data": {
Expand Down
1 change: 1 addition & 0 deletions openIO.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ def __init__(self, folder_path, exiobase_folder, endogenizing_capitals=False):

files = [i for i in os.walk(folder_path)]
files = [i for i in files[0][2] if i[:2] in self.matching_dict.keys() and 'SUT' in i]
files.sort()
self.year = int(files[0].split('SUT_C')[1].split('_')[0])

try:
Expand Down

0 comments on commit 6547d13

Please sign in to comment.