FAQ
| This is a
LIVE
service |
Changelog
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
ews-coordinator
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Package Registry
Container Registry
Operate
Terraform modules
Analyze
Contributor analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Gilligan Lab for Epidemiology and Modelling
Wheat rusts
ews-coordinator
Commits
0f8c1e13
Commit
0f8c1e13
authored
1 year ago
by
Dr T. Mona
Browse files
Options
Downloads
Patches
Plain Diff
fix: handle KEY columns
parent
dba46b94
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
coordinator/ProcessorSurveysWRSIS.py
+2
-4
2 additions, 4 deletions
coordinator/ProcessorSurveysWRSIS.py
with
2 additions
and
4 deletions
coordinator/ProcessorSurveysWRSIS.py
+
2
−
4
View file @
0f8c1e13
...
...
@@ -104,6 +104,7 @@ def nested_to_flattened(df):
'
Rust Details
'
,
'
Other Disease
'
,
'
Sample Details
'
,
'
Survey Details.Survey No
'
,
'
Survey Details.Latitude
'
,
'
Survey Details.First Rust Observation Date
'
,
'
Survey Details.Longitude
'
,
...
...
@@ -163,7 +164,6 @@ def nested_to_flattened(df):
'
live_stemrust_samples_count
'
,
'
dead_yellowrust_samples_count
'
,
'
SET-OF-live_leafrust_samples
'
,
'
KEY
'
,
'
other_diseases_group-other_diseases
'
,
'
survey_infromation-location-Altitude
'
,
'
SET-OF-dead_stemrust_samples
'
,
...
...
@@ -178,9 +178,6 @@ def nested_to_flattened(df):
for
i
in
NEW_COLUMNS
:
df
[
i
]
=
""
#TODO: replace with a better KEY column
df
[
"
KEY
"
]
=
df
.
index
# add dedicated rust columns, with default values
NEW_RUST_COLUMNS
=
{
"
Stem Rust.Incident
"
:
"
none
"
,
"
Stem Rust.Severity
"
:
"
-9
"
,
"
Stem Rust.Reaction
"
:
"
na
"
,
"
Leaf Rust.Incident
"
:
"
none
"
,
"
Leaf Rust.Severity
"
:
"
-9
"
,
"
Leaf Rust.Reaction
"
:
"
na
"
,
...
...
@@ -221,6 +218,7 @@ def get_WRSIS_form_as_csv(form_credentials: dict, jobPath: str, config: dict, st
'
Rust Details
'
:
'
None
'
,
'
Other Disease
'
:
'
None
'
,
'
Sample Details
'
:
'
None
'
,
'
Survey Details.Survey No
'
:
'
KEY
'
,
'
Survey Details.Latitude
'
:
'
survey_infromation-location-Latitude
'
,
'
Survey Details.First Rust Observation Date
'
:
'
None
'
,
'
Survey Details.Longitude
'
:
'
survey_infromation-location-Longitude
'
,
...
...
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