Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
7 changes: 0 additions & 7 deletions django_project/cplus_api/serializers/scenario.py
Original file line number Diff line number Diff line change
Expand Up @@ -217,8 +217,6 @@ class ScenarioInputSerializer(serializers.Serializer):
snap_layer_uuid = serializers.CharField(
required=False, validators=[validate_layer_uuid], allow_blank=True
)
pathway_suitability_index = serializers.IntegerField(
required=False, default=DEFAULT_VALUES.pathway_suitability_index)
carbon_coefficient = serializers.FloatField(
required=False, default=DEFAULT_VALUES.carbon_coefficient)
snap_rescale = serializers.BooleanField(
Expand Down Expand Up @@ -286,11 +284,6 @@ class Meta:
title='Snap layer UUID',
type=openapi.TYPE_STRING
),
'pathway_suitability_index': openapi.Schema(
title='Pathway suitability index',
type=openapi.TYPE_INTEGER,
default=DEFAULT_VALUES.pathway_suitability_index
),
'carbon_coefficient': openapi.Schema(
title='Carbon coefficient',
type=openapi.TYPE_NUMBER,
Expand Down
4 changes: 2 additions & 2 deletions django_project/cplus_api/tests/factories.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ class Meta:
],
"snap_layer": "",
"snap_layer_uuid": "",
"pathway_suitability_index": 0,
"snap_rescale": False,
"snap_method": "0",
"sieve_enabled": False,
Expand Down Expand Up @@ -197,7 +196,8 @@ class Meta:
"Final_Alien_Invasive_Plant_priority_norm.tif"
),
"layer_type": 0,
"carbon_paths": []
"carbon_paths": [],
"suitability_index": 0.0
}
],
"priority_layers": [
Expand Down
Loading
Loading