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

Features/stats export #264

Closed
wants to merge 231 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
231 commits
Select commit Hold shift + click to select a range
5e28b15
Merge pull request #261 from openego/dev
boltbeard Jun 8, 2018
19750c3
Fixes to include weather cell ids and use GeneratorFluctuatingDing0 O…
Jun 14, 2018
7ea422c
modifications to include metadata as an output which goes into oedb o…
Jun 19, 2018
a740703
Added function to grant access to ding0 db tables
Jun 20, 2018
1f213ae
Fixed bug with writing ding0 versioning data
Jun 21, 2018
308c13f
Modifications to Grant access Database, Todo: Test if it properly wor…
Jun 21, 2018
b4b7b71
Merge branch 'dev' into features/stats-export
Jun 27, 2018
84d9944
Remove 'run_id' from results folder path
Jun 28, 2018
567d15c
Add weather cell only if at least one generator exists
Jun 28, 2018
15fdc78
Upgrade to DP v0.4.2
Jun 28, 2018
f385fd0
Merge branch 'dev' into fix/#265-generators-individual-export
Jul 6, 2018
370a65b
Export aggregated generators individually
Jul 6, 2018
2b22ff0
Remove commented lines
Jul 9, 2018
6126851
Adapt OEDB export according to changes in
Jul 9, 2018
5f4f033
Let IDs be IDs (and don't mix with other information)
Jul 9, 2018
9735f01
Replace string in MV/LV_grid_id_db by int
Jul 9, 2018
3807a2c
Revert "Replace string in MV/LV_grid_id_db by int"
Jul 9, 2018
5c0fd43
Revert "Let IDs be IDs (and don't mix with other information)"
Jul 9, 2018
d822430
Add Line Geoms
Jul 11, 2018
9c97c88
Removed geom from LV grids, as there are no geo_data stored in adj_no…
Jul 11, 2018
14524b4
Formatting corrections
Jul 12, 2018
1547820
Make usage of ids and names consistent
Jul 12, 2018
18c34d7
Adapt table descriptions in docs (only partially)
Jul 12, 2018
2869dac
Bring the oedb export back to working order, added LineString Geometr…
Jul 17, 2018
2f91ce0
Merge branch 'features/stats-export' of github.com:openego/dingo into…
Jul 18, 2018
911b653
Merge branch 'fix/labels-ids-csv-oedb-export' into features/stats-export
Jul 18, 2018
5f913f2
Change name attribute for CSV/OEDB export
Jul 19, 2018
f1d06bd
Adapt ding0 csv/oedb exporter
Jul 31, 2018
35bec46
#268 changed column names according to proposal
jh-RLI Jul 31, 2018
13144a8
#268 eDisGo - changed the description of the tables in the documentation
jh-RLI Jul 31, 2018
567277b
Revert "#268 eDisGo - changed the description of the tables in the do…
jh-RLI Jul 31, 2018
36562ea
Revert "#268 changed column names according to proposal"
jh-RLI Jul 31, 2018
615a9a0
#268 changed column names according to proposal (id_db)
jh-RLI Jul 31, 2018
f0da0f0
jh-RLI/ding0#268 changed column names in the documentation (id_db)
jh-RLI Jul 31, 2018
37b980e
#269 changed column names in the documentation (id_db)
jh-RLI Jul 31, 2018
0f09591
#269 Updated description table (id_db)
jh-RLI Jul 31, 2018
ef854ab
Merge remote-tracking branch 'origin/fix/#268-column-improvement' int…
jh-RLI Jul 31, 2018
aaecc72
fixed grant_db_access
Aug 13, 2018
ab18b2e
#269 Updated description changed grid_id_db to id_db
jh-RLI Aug 14, 2018
781ae01
#269 Updated description fixed description up to MV-Generators
jh-RLI Aug 14, 2018
a067ee9
#269 Updated description, fixed description up to MV-Stations
jh-RLI Aug 14, 2018
3a88e91
#269 Updated description, fixed all
jh-RLI Aug 14, 2018
9e0fa12
#269 Updated description, minor changes
jh-RLI Aug 15, 2018
d97c0c9
fix DB export of MVGD which have no genos of GeneratorFlucuatingDing0
nesnoj Aug 20, 2018
a0c0b68
jh-RLI/ding0#270 initial commit
jh-RLI Aug 23, 2018
d4db646
jh-RLI/ding0#270 minor changes
jh-RLI Aug 23, 2018
136a5c3
#270 initial commit
jh-RLI Aug 23, 2018
17ecc79
#270 minor changes
jh-RLI Aug 23, 2018
a2f0447
#270 minor changes
jh-RLI Aug 23, 2018
a2fb5c1
#270 minor changes
jh-RLI Aug 23, 2018
b2c36e0
Merge remote-tracking branch 'origin/feature/#270-ding0_grid_metadata…
jh-RLI Aug 23, 2018
5698a63
Merge branch 'dev' into features/stats-export
Sep 6, 2018
896ffa7
restructuring of export functions (taken out of results.py), first dr…
Sep 6, 2018
33e48a9
example of moving away from orm to direct sql definitions
Sep 10, 2018
3ca8042
move input output related files to io director
Sep 10, 2018
768c6c3
#270 added all ding0 tables to create_ding0_sql_tables
jh-RLI Sep 10, 2018
bc13bd9
#270 changed func. name to export_data_to_db and minor changes to func.
jh-RLI Sep 10, 2018
0a81fce
Minor fixes
Sep 11, 2018
89c5c4c
#270 updated metadatastring rdy to apply to db
jh-RLI Sep 12, 2018
05caf26
#270 minor changes to metadata
jh-RLI Sep 12, 2018
790d384
#270 minor changes
jh-RLI Sep 12, 2018
8f04370
#270 added read metadata file fnc in new file
jh-RLI Sep 12, 2018
1d38c74
#270 added new fnc. for metadatafile import
jh-RLI Sep 13, 2018
e419e35
#270 verified all metadatastrings included in branch
jh-RLI Sep 13, 2018
b1b716b
#270 minor changes
jh-RLI Sep 13, 2018
13a8b78
#270 completed fnc. to commit a metadata string as comment on table
jh-RLI Sep 13, 2018
3a1337a
#270 added comments for explanation
jh-RLI Sep 13, 2018
a056d95
#270 fixed string syntax for comment on table, included pretty print
jh-RLI Sep 13, 2018
fb1ff49
#270 minor changes
jh-RLI Sep 13, 2018
0aa404d
#270 minor changes
jh-RLI Sep 14, 2018
846a464
#270 minor changes
jh-RLI Sep 16, 2018
128e144
reverted changes on results.py back to commit #5f913f22d54bce1c326755…
Sep 17, 2018
49aad98
Merge branch 'feature/#270-ding0_grid_metadatastring' of github.com:o…
Sep 17, 2018
156bd57
Merge pull request #272 from openego/feature/#270-ding0_grid_metadata…
jh-RLI Sep 17, 2018
311b8cd
#270 included read_metadata_file.py in db_export
jh-RLI Sep 17, 2018
dc49c6f
#270 minor changes
jh-RLI Sep 17, 2018
72f3ea0
#270 minor changes
jh-RLI Sep 17, 2018
18d1899
#270 restructured file and stated to work on export_to_db()
jh-RLI Sep 17, 2018
5a0d732
#270 minor changes
jh-RLI Sep 17, 2018
77423a1
#270 include example data frame, outlined some tables for testing
jh-RLI Sep 20, 2018
f187ed3
#270 committed first data frames to database
jh-RLI Sep 21, 2018
6d4f822
#270 add data frames to table decide by tabletype
jh-RLI Sep 21, 2018
0f95146
#270 minor changes
jh-RLI Sep 21, 2018
189afc5
#270 minor changes
jh-RLI Sep 21, 2018
c3ab009
#270 minor changes
jh-RLI Sep 21, 2018
c343825
#270 minor changes
jh-RLI Sep 21, 2018
0e9426e
#270 included ding0.io.export, added parm. to export_network_to_db an…
jh-RLI Sep 21, 2018
a20c52e
#270 added metadata_json witch can be any list of Ding0Network must c…
jh-RLI Sep 22, 2018
22c67b3
#270 new fnc.: export_df_to_db selects the table by tabletype where t…
jh-RLI Sep 22, 2018
c6e9928
#270 minor changes
jh-RLI Sep 22, 2018
e3ac0b1
#270 included json dump fnc, added parm. to fnc. run_id_in_db and ext…
jh-RLI Sep 23, 2018
c97ad28
#270 included code documentation for better understanding, completed …
jh-RLI Sep 24, 2018
edd3b12
#270 changed path
jh-RLI Sep 24, 2018
7c8ffef
#270 minor changes
jh-RLI Sep 24, 2018
a0a9096
#270 included NetworkDing0 and export_network(), added second engine …
jh-RLI Sep 24, 2018
c6a8ea2
#270 restructured func for new input Pandas data frames from db_expor…
jh-RLI Sep 25, 2018
f965d33
#270 successfully tested fnc.: drop_ding0_db_tables()
jh-RLI Sep 25, 2018
dda2228
#270 minor changes for testing
jh-RLI Sep 25, 2018
c93a6b8
#270 added new fnc.: execute_export_network_to_db()
jh-RLI Sep 25, 2018
8323a2b
#270 minor changes
jh-RLI Sep 26, 2018
5da4b4e
Added an if __name__== "__main__" block for better testing and import…
Sep 26, 2018
750bfcb
Changed location and renamed metadatastring json files
Sep 26, 2018
1bf7c7a
included metadata version in config files
Sep 26, 2018
f4ec1f6
modified to use internal ding0 path to get the metadata strings from …
Sep 26, 2018
3e649d2
Changed Base and metadata to GLOBAL PEP8 as BASE and METADATA
Sep 26, 2018
77fc5ed
minor bug fixes, spelling mistakes, PEP8 fixes
Sep 26, 2018
be3aaac
#270 fixed func. load_json_files(), added missing table definition, r…
jh-RLI Sep 27, 2018
3bdbcdf
#270 included GeoAlchemy2.WKTElement, fixed metadatastring import, ne…
jh-RLI Oct 11, 2018
66f7703
#270 changed mv_load table geom type to GEOMETRY, modified func. crea…
jh-RLI Oct 11, 2018
99a3a1b
#270 handled geom:GEOMETRY
jh-RLI Oct 12, 2018
9c6f972
#270 added some docstring information, cleaned code
jh-RLI Oct 12, 2018
635b877
#270 included a second grid_district to test the import functions,
jh-RLI Oct 16, 2018
8dbd074
#270 included a second grid_district to test the import functions,
jh-RLI Oct 16, 2018
45b36d4
Revert "#270 included a second grid_district to test the import funct…
jh-RLI Oct 16, 2018
112e79e
#270 included a second grid_district to test the import functions,
jh-RLI Oct 16, 2018
c1021e3
#270 updated docstring with instructions on how tho use the script
jh-RLI Oct 17, 2018
51de9cb
#270 updated docstring
jh-RLI Oct 17, 2018
c04e8eb
#270 removed done ToDo´s
jh-RLI Oct 17, 2018
4b2e2ef
#275 added the SCHEMA to __main__ and changed the parameter ding0_sc…
jh-RLI Oct 17, 2018
75fe933
#275 SA Table definition: changed length of column "subtype" for the …
jh-RLI Oct 17, 2018
8cdaad5
Changed names of tables to reflect appropriate naming in oedb
Oct 17, 2018
473fe79
Merge branch 'features/stats-export' of github.com:openego/ding0 into…
Oct 17, 2018
ca6ca4e
#275 changed schema in metadata_string.json files, added script for v…
jh-RLI Oct 19, 2018
7c1552b
#270 added schema to has_table()
jh-RLI Oct 19, 2018
cef0813
#270 changed grid
jh-RLI Oct 19, 2018
3031d90
#270 added new script in order to insert values to the scenario_log
jh-RLI Oct 22, 2018
ea13556
#270 to ego_dp_versioning.py added func. for migrate_tables_to_destin…
jh-RLI Oct 22, 2018
acc666c
#270 added further description, cleaned script from testing code
jh-RLI Oct 24, 2018
fb0bf58
added conda env .yml, added description how to setup the conda env
jh-RLI Feb 6, 2019
628f4b5
fixex typo, minor changes caused by inputs added for testing, added f…
jh-RLI Feb 7, 2019
e1a4db4
Merge branch 'features/stats-export' of https://github.com/openego/di…
jh-RLI Feb 7, 2019
3d5edd4
extending funktionality in order to integrate df export form pickel f…
jh-RLI Feb 14, 2019
f92263c
added nametupel to export_network func now the pandas dataframes can …
jh-RLI Feb 14, 2019
40de1d0
fixed wrong useage of metadata_json
jh-RLI Feb 14, 2019
139db15
fixed typo metadata to metadata_json
jh-RLI Feb 14, 2019
b3c8cfa
parse the run_id provided by network.metadata_json to integer
jh-RLI Feb 14, 2019
5739bb8
load the metadatajson for further usage
jh-RLI Feb 14, 2019
6ff90c5
fixed missing key for run id in metadata_json, deleted unused variables
jh-RLI Feb 14, 2019
db0515e
hard set srid in func create_wkt_element, added parameter srid to pas…
jh-RLI Feb 15, 2019
d07a7d1
added missing srid parameter
jh-RLI Feb 15, 2019
182d81e
added func export_all_pkl_to_db() to handel the different requirement…
jh-RLI Feb 15, 2019
6044c8c
fixed wrong usage of pritn() and format
jh-RLI Feb 15, 2019
4a4c3fc
provide run id as parameter for all pickled grid districts
jh-RLI Feb 15, 2019
1181bfa
first try fixing problem with different run id for every pickle file
jh-RLI Feb 15, 2019
6720e25
set the provided run id in metadata_json
jh-RLI Feb 15, 2019
beb2811
set the provided run id in metadata_json
jh-RLI Feb 15, 2019
3123556
set the provided run id in metadata_json
jh-RLI Feb 15, 2019
c3c2c62
set the provided run id in metadata_json
jh-RLI Feb 15, 2019
3ad8763
test export with other grid districts
jh-RLI Feb 16, 2019
b092940
print run id for testing
jh-RLI Feb 16, 2019
41f9c12
testing other run id
jh-RLI Feb 16, 2019
ba4eb40
set the provided run id in nw.metadata
jh-RLI Feb 16, 2019
f2f4e9c
set the provided run id in nw.metadata
jh-RLI Feb 16, 2019
c2959ba
insert testing prints
jh-RLI Feb 16, 2019
4c2082c
insert testing prints
jh-RLI Feb 16, 2019
7e771e9
insert testing prints
jh-RLI Feb 16, 2019
ed79d81
change nw.metadata after pickle import
jh-RLI Feb 16, 2019
981b597
change nw.metadata(run id)
jh-RLI Feb 16, 2019
8d7ac1f
change metadata_json runid
jh-RLI Feb 16, 2019
c07586d
fixed wrong usage of nw.metadata()
jh-RLI Feb 16, 2019
aaabeeb
provide correct run id for pickle export
jh-RLI Feb 18, 2019
9dfd96c
testing another run id
jh-RLI Feb 18, 2019
35f580a
testing another run id
jh-RLI Feb 18, 2019
ea1a653
testing another run id, insert else option for setting the run id in …
jh-RLI Feb 18, 2019
12729e9
insert print(run id) for testing
jh-RLI Feb 18, 2019
39801b5
overwrite run id
jh-RLI Feb 18, 2019
07f25bb
overwrite run id in metadata_json
jh-RLI Feb 18, 2019
ee86be0
json needs to be string
jh-RLI Feb 18, 2019
669af17
minor change
jh-RLI Feb 18, 2019
384b58a
handel provided run_id
jh-RLI Feb 18, 2019
b1825d5
show run id for every grid district wich currently gets exported
jh-RLI Feb 18, 2019
31c0b5f
ding0_grid_district 42 (pickle file) does not exists, set the startin…
jh-RLI Feb 19, 2019
615f773
ding0_grid_district 62 (pickle) not present, change grid districht st…
jh-RLI Feb 19, 2019
7dd1304
ding0_grid_district 69 (pickle-file) not present, change grid distric…
jh-RLI Feb 19, 2019
f330efa
grid districht (pickle-file) 154 not present, test logger for missing…
jh-RLI Feb 20, 2019
4a0805b
parse grid_no to string
jh-RLI Feb 20, 2019
7db04fe
grid districht (pickle-file) 197 not present, test logger for missing…
jh-RLI Feb 20, 2019
7f8cce5
test logger with standart file handler for missing grid districhts
jh-RLI Feb 20, 2019
87f591c
handel non existing pickle files, added logger(to file) for non exist…
jh-RLI Feb 20, 2019
675d6d0
continue to netxt grid dirstricht if log entry done
jh-RLI Feb 20, 2019
d273647
new line in log file
jh-RLI Feb 20, 2019
489a76f
set new griddistrict range
Mar 4, 2019
3ffa4c3
change tablenames for tetsing
jh-RLI Mar 4, 2019
241d241
changed lv_edges branch dict access in order to get the right value, …
jh-RLI Mar 6, 2019
c890500
merge changes
jh-RLI Mar 6, 2019
45e0a3c
set griddist to test range
jh-RLI Mar 6, 2019
14d316f
add all griddist., changed geometry Type of lv_grid tabele, now hande…
jh-RLI Mar 6, 2019
61970e1
c.typo
jh-RLI Mar 20, 2019
ffb4b6d
adjust grid range for export
Mar 20, 2019
99f5643
Merge branch 'features/stats-export' of https://github.com/openego/di…
Mar 20, 2019
a9e3fff
try exporting grid 1658 2. time
jh-RLI Mar 20, 2019
becce7e
test export grid 1658 3. time
jh-RLI Mar 20, 2019
17a500a
insert new run id to migrate recent exported ding0 data
jh-RLI Mar 20, 2019
d8dcbfb
Merge branch 'dev' into features/stats-export
boltbeard Apr 3, 2019
5bcf425
added dingo network as nametupe, tables can be accessed as tupels, tu…
jh-RLI May 3, 2019
e316c3b
set up pkl file logger, logs all missing pkl files
jh-RLI May 3, 2019
7e25da1
Merge branch 'features/stats-export' of https://github.com/openego/di…
jh-RLI May 3, 2019
4854a1d
removed metadata.json creaton due to missing permission in dir
jh-RLI May 3, 2019
ba5e149
changed destination folder for testing csv creation
jh-RLI May 3, 2019
c73b53c
changed path to access the folder not file
jh-RLI May 3, 2019
b95a7e1
minor changed, fixed programming error
jh-RLI May 3, 2019
e054e8c
changed destination_path
jh-RLI May 3, 2019
6c97565
added another griddistricts for testing
jh-RLI May 3, 2019
81709d5
changed destination_path
jh-RLI May 3, 2019
87b3ac5
basicly working now, changed destination path, added advise, mind met…
jh-RLI May 3, 2019
2feb89e
create config file to outsource inputs from code
jh-RLI Jul 12, 2019
2915741
New settings file to store io specific settings and paths
jh-RLI Jul 12, 2019
a85fbfb
New ding_db_tables file. outsource table definition and table metadat…
jh-RLI Jul 12, 2019
8c944fe
Dropped unused imports, Added initail SRID variable with no value, Cr…
jh-RLI Jul 12, 2019
5b3281a
renamed variable SRID to PICKLE_SRID
jh-RLI Jul 12, 2019
e4f22ea
add further description in docstring, added grid_no to dataframe expo…
jh-RLI Jul 16, 2019
8cd7120
Add missing package
jh-RLI Jul 16, 2019
f4f2e99
add further information in docstring
jh-RLI Jul 16, 2019
8259f28
remove incorrect information
jh-RLI Jul 16, 2019
c1002fb
describe the ding0 exporter and provide information on what io functi…
jh-RLI Jul 16, 2019
d7fea0b
enhanced usage description on the ding0 exporter
jh-RLI Aug 5, 2019
32b0bf5
added new entry for future implementation
jh-RLI Aug 5, 2019
4ebf3ae
added description on the ding0 related sql table structure.
jh-RLI Aug 6, 2019
a8f9233
Idea on how to improve the code structure when exporting all df to db
jh-RLI Aug 6, 2019
d8ceda3
Attempt to fix display markdown table in RST file
jh-RLI Aug 6, 2019
3a8f166
replace .md format table with .rst formatted table
jh-RLI Aug 22, 2019
8fa0eae
remove missleading .json from table name
jh-RLI Aug 22, 2019
304e794
fix formation, add link to metadata template, add information about t…
jh-RLI Aug 22, 2019
e3cf1d3
fix hyperlink
jh-RLI Aug 22, 2019
4dfe058
add description on how to update the provided information on all ding…
jh-RLI Aug 22, 2019
0ba5126
update author
jh-RLI Aug 22, 2019
da80519
added usage description on the csv file exporter
jh-RLI Aug 22, 2019
044a45c
added description on ding0 table, resturctured file, added usage desc…
jh-RLI Aug 22, 2019
8bc1e17
Add code examples for better understanding, Fix some typos
jh-RLI Sep 2, 2019
8ddd96b
Imporve codeblock contend
jh-RLI Sep 2, 2019
dba000f
Imporve codeblock contend
jh-RLI Sep 2, 2019
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
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ target/

# OWN STUFF
#.gitignore
ding0/examples/ding0_grids_example.pkl
.idea/
ding0/output/
/Line_loading_feed-in_case.png
Expand Down
5 changes: 4 additions & 1 deletion ding0/config/config_files.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,7 @@ model_grids_lv_apartment_string = model_grids-lv_relation_apartment_string.csv
animation_file_prefix = mv-routing_ani_
nd_pickle = ding0_grids_{}.pkl
edges_stats = mvgd_edges_stats_{}.csv
nodes_stats = mvgd_nodes_stats_{}.csv
nodes_stats = mvgd_nodes_stats_{}.csv

[metadata_strings]
version = 1.3
10 changes: 10 additions & 0 deletions ding0/config/exporter_config.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
[EXPORTER_DB]
SCHEMA = model_draft

[DING0_TABLE]
SRID = ''
METADATA_FOLDER = ''

[GRID_DISTRICT_RANGE]
START = ''
END = ''
2 changes: 1 addition & 1 deletion ding0/examples/example_single_grid_district.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
# ===== MAIN =====

# database connection/ session
engine = db.connection(section='oedb')
engine = db.connection(section='oedb_vpn')
session = sessionmaker(bind=engine)()

# instantiate new ding0 network object
Expand Down
Empty file added ding0/io/__init__.py
Empty file.
39 changes: 39 additions & 0 deletions ding0/io/confirm_existing_gd_in_pkl_dir.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
import os
import logging
from ding0.tools.results import load_nd_from_pickle

# LOG_FILE_PATH = 'pickle_log'
LOG_FILE_PATH = os.path.join(os.path.expanduser("~"), '.ding0_log', 'pickle_log')

# does the file exist?
if not os.path.isfile(LOG_FILE_PATH):
print('ding0 log-file {file} not found. '
'This might be the first run of the tool. '
.format(file=LOG_FILE_PATH))
base_path = os.path.split(LOG_FILE_PATH)[0]
if not os.path.isdir(base_path):
os.mkdir(base_path)
print('The directory {path} was created.'.format(path=base_path))

with open(LOG_FILE_PATH, 'a') as log:
log.write("List of missing grid districts:\n")
pass


# logging.basicConfig(filename=LOG_FILE_PATH, level=logging.DEBUG)

# pickle file locations path to RLI_Daten_Flex01 mount
pkl_filepath = "/home/local/RL-INSTITUT/jonas.huber/rli/Daten_flexibel_01/Ding0/20180823154014"

# choose MV Grid Districts to import
grids = list(range(61, 70))

for grid_no in grids:
try:
nw = load_nd_from_pickle(os.path.join(pkl_filepath, 'ding0_grids__{}.pkl'.format(grid_no)))
except:
# logging.debug('ding0_grids__{}.pkl not present to the current directory'.format(grid_no))
with open(LOG_FILE_PATH, 'a') as log:
log.write('ding0_grids__{}.pkl not present to the current directory\n'.format(grid_no))
pass
continue
Loading