Skip to content

Commit

Permalink
sync with pcse 4ef02c7
Browse files Browse the repository at this point in the history
  • Loading branch information
Michiel Kallenberg committed Jun 11, 2024
1 parent 0b36b3d commit c385749
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pcse_gym/envs/configs/agro/wheat_cropcalendar.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
- 2007-01-01:
CropCalendar:
crop_name: wheat
variety_name: Winter_wheat_lintul
variety_name: Winter_wheat_102
crop_start_date: 2007-01-01
crop_start_type: emergence
crop_end_date: 2007-09-01
Expand Down
9 changes: 9 additions & 0 deletions pcse_gym/envs/sb3.py
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,15 @@ def _apply_action(self, action):
amount=amount,
recovery=recovery_rate,
)
self._model._send_signal(
signal=pcse.signals.apply_npk,
N_amount=amount * 10,
N_recovery=recovery_rate,
P_amount = 100,
P_recovery = 1.0,
K_amount=100,
K_recovery=1.0,
)

def _get_reward(self):
# Reward gets overwritten in step()
Expand Down

0 comments on commit c385749

Please sign in to comment.