Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
resite_ip
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
smart_grids
public
resite_ip
Commits
9fe90366
Commit
9fe90366
authored
3 years ago
by
David Radu
Browse files
Options
Downloads
Patches
Plain Diff
updated readme and requirements
parent
17ceab1e
Branches
feature-ol
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
README.md
+1
-1
1 addition, 1 deletion
README.md
config_model.yml
+5
-5
5 additions, 5 deletions
config_model.yml
requirements.yml
+5
-2
5 additions, 2 deletions
requirements.yml
src/main.py
+1
-1
1 addition, 1 deletion
src/main.py
with
12 additions
and
9 deletions
README.md
+
1
−
1
View file @
9fe90366
...
...
@@ -5,7 +5,7 @@ for the max k-multicover problem introduced in the following publication: "Sitin
## Setup
This module runs in
any 3.x version of
Python. The Python packages required to run this module are listed
This module runs in
`
Python
3.6`
. The Python packages required to run this module are listed
in the
`requirements.yml`
file included in the repository. Their installation can be easily achieved via the the following
command that builds a separate environment for this module from the
`yml`
file:
...
...
This diff is collapsed.
Click to expand it.
config_model.yml
+
5
−
5
View file @
9fe90366
# Path to data folder (where input/output data is stored - not necessarily the src folder)
data_path
:
'
D:/ULg_PhD_work/datasets/resite_ip/
'
data_path
:
'
path/to/data
'
# Path to the maxk_multicover algorithms.jl file (might need an updated PYTHONPATH for this one
julia_models_path
:
'
../..
/maxk_multicover/src/algorithms.jl'
julia_models_path
:
'
/path/to
/maxk_multicover/src/algorithms.jl'
# Spatial resolution (in degrees) of the ERA5 data (depends on what data was downloaded via era5data.py script)
spatial_resolution
:
0.25
# Start time and end time of the analysis (again, depends on what coverage is available based on download)
time_slice
:
[
'
2018-01-01T00:00'
,
'
2018-01-
31
T23:00'
]
time_slice
:
[
'
2018-01-01T00:00'
,
'
2018-01-
07
T23:00'
]
# Region (ISO2) to cover within the ERA5 dataset. This key is basically retrieving the shape of the underlying region
# (e.g., if "DE" is given, the shapefile of the German territory is used to identify which ERA5 points fall within
regions
:
[
'
E
U
'
]
regions
:
[
'
D
E'
]
# Technology to consider (for now limited to one technology only, available choices: 'wind_onshore', 'wind_offshore',
# 'pv_utility', 'pv_residential').
technologies
:
[
'
wind_onshore'
]
# Number of deployments to consider (integer value)
deployments
:
[[
56
0
]]
deployments
:
[[
2
0
]]
siting_params
:
# Time-window length (any integer value smaller than the length of the time horizon)
...
...
This diff is collapsed.
Click to expand it.
requirements.yml
+
5
−
2
View file @
9fe90366
...
...
@@ -3,9 +3,9 @@ channels:
-
conda-forge
-
defaults
dependencies
:
-
python=3.6
-
pip
-
bottleneck
-
cdsapi
-
dask
-
scipy
-
toolz
...
...
@@ -15,6 +15,9 @@ dependencies:
-
xlrd
-
geopy
-
shapely
-
pycountry
-
pyyaml
-
pip
:
-
julia
\ No newline at end of file
-
julia
-
windpowerlib
\ No newline at end of file
This diff is collapsed.
Click to expand it.
src/main.py
+
1
−
1
View file @
9fe90366
...
...
@@ -5,7 +5,6 @@ from os import makedirs
from
numpy
import
float64
from
time
import
strftime
import
julia
from
julia
import
Main
from
helpers
import
read_inputs
,
custom_log
,
xarray_to_ndarray
,
\
generate_jl_input
,
get_deployment_vector
...
...
@@ -50,6 +49,7 @@ if __name__ == '__main__':
jl_dict
=
generate_jl_input
(
deployment_dict
,
site_coordinates
)
j
=
julia
.
Julia
(
compiled_modules
=
False
)
from
julia
import
Main
Main
.
include
(
julia_path
)
custom_log
(
f
"
{
siting_parameters
[
'
algorithm
'
]
}
chosen to solve the instance.
"
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment