Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
PASE
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
DEAL public
PASE
Commits
ec2482ec
Commit
ec2482ec
authored
2 months ago
by
Lemaire Louis
Browse files
Options
Downloads
Patches
Plain Diff
[feature] Add save_csv() call to example.py
Function call example is now available
parent
668410cc
Branches
main
Tags
v1.2.0
1 merge request
!30
Draft: Resolve "[feature] Save time series of mean variables in a csv file"
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
example.py
+9
-0
9 additions, 0 deletions
example.py
with
9 additions
and
0 deletions
example.py
+
9
−
0
View file @
ec2482ec
...
...
@@ -11,6 +11,7 @@ import pickle
from
MODULES.user_support_tools
import
PASE_Logger
from
MODULES.DATA_MANAGEMENT.yaml_inputs_provider
import
YAML_Inputs_provider
,
Inputs_aggregator
from
MODULES.DATA_MANAGEMENT.weather_data_provider
import
Weather_data
from
MODULES.DATA_MANAGEMENT.output.save_csv
import
save_csv
from
MODULES.PHOTOVOLTAICS.configuration
import
PV_Configuration_3D
from
MODULES.ENVIRONMENT.light
import
Sun_positions_sampled
,
Sun_positions
,
Light
from
MODULES.ENVIRONMENT.light
import
show_light_map2
,
Ray_casting_scene
...
...
@@ -130,3 +131,11 @@ show_light_map2(L.sourcepoints[:,:-1],
Crop_plot
.
nyears_data
[
'
2005
'
][
'
Dry_yield
'
][
'
2005-10-10 00:00:00
'
]
/
100
,
PV_1_3Dconfig
.
PV_central_PD
,
"
Dry yield SIMPLE 2005 [t/ha]
"
)
###################
# Post-processing #
###################
# Save mean time series of desired variables as csv
save_csv
(
filename
=
'
mean_data.csv
'
,
nyears_data
=
Crop_plot
.
nyears_data
,
variables
=
[
'
Biomass
'
,
'
Dry_yield
'
])
\ No newline at end of file
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