Skip to content

Commit

Permalink
training works. Checking now for many timesteps
Browse files Browse the repository at this point in the history
  • Loading branch information
taddyb committed Jul 12, 2023
1 parent 5a02e4e commit efb2560
Show file tree
Hide file tree
Showing 30 changed files with 3 additions and 1,221,591 deletions.
175,298 changes: 0 additions & 175,298 deletions data/LittleWashita/PET.csv

This file was deleted.

70,088 changes: 0 additions & 70,088 deletions data/LittleWashita/Q.csv

This file was deleted.

43,082 changes: 0 additions & 43,082 deletions data/LittleWashita/ars_a134_RAIN.csv

This file was deleted.

43,082 changes: 0 additions & 43,082 deletions data/LittleWashita/ars_a134_VW05.csv

This file was deleted.

43,082 changes: 0 additions & 43,082 deletions data/LittleWashita/ars_a134_VW25.csv

This file was deleted.

43,082 changes: 0 additions & 43,082 deletions data/LittleWashita/ars_a134_VW45.csv

This file was deleted.

43,082 changes: 0 additions & 43,082 deletions data/LittleWashita/ars_a149_RAIN.csv

This file was deleted.

43,082 changes: 0 additions & 43,082 deletions data/LittleWashita/ars_a149_VW05.csv

This file was deleted.

43,082 changes: 0 additions & 43,082 deletions data/LittleWashita/ars_a149_VW25.csv

This file was deleted.

43,082 changes: 0 additions & 43,082 deletions data/LittleWashita/ars_a149_VW45.csv

This file was deleted.

175,298 changes: 0 additions & 175,298 deletions data/LittleWashita/basin-averaged/PET.csv

This file was deleted.

Binary file removed data/LittleWashita/basin-averaged/PET.png
Binary file not shown.
70,088 changes: 0 additions & 70,088 deletions data/LittleWashita/basin-averaged/Q.csv

This file was deleted.

70,130 changes: 0 additions & 70,130 deletions data/LittleWashita/basin-averaged/ars_RAIN.csv

This file was deleted.

Binary file removed data/LittleWashita/basin-averaged/ars_RAIN.png
Binary file not shown.
70,130 changes: 0 additions & 70,130 deletions data/LittleWashita/basin-averaged/ars_VW05.csv

This file was deleted.

Binary file removed data/LittleWashita/basin-averaged/ars_VW05.png
Binary file not shown.
70,130 changes: 0 additions & 70,130 deletions data/LittleWashita/basin-averaged/ars_VW25.csv

This file was deleted.

Binary file removed data/LittleWashita/basin-averaged/ars_VW25.png
Binary file not shown.
70,130 changes: 0 additions & 70,130 deletions data/LittleWashita/basin-averaged/ars_VW45.csv

This file was deleted.

Binary file removed data/LittleWashita/basin-averaged/ars_VW45.png
Binary file not shown.
52,633 changes: 0 additions & 52,633 deletions data/LittleWashita/basin-depth-averaged/little_washita_2006_2012.csv

This file was deleted.

52,633 changes: 0 additions & 52,633 deletions data/LittleWashita/basin-depth-averaged/test_sm_basinavg.csv

This file was deleted.

366 changes: 0 additions & 366 deletions data/observations/ET_location134_all.csv

This file was deleted.

7 changes: 0 additions & 7 deletions data/soil_columns/OK_points_soiltextures_index_transpose.csv

This file was deleted.

1 change: 0 additions & 1 deletion dpLGAR/agents/DifferentiableLGAR.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,6 @@ def train_one_epoch(self):
self.y_t = y_t_[warmup:]
# If there is no gradient (i.e. no runoff), then we shouldn't validate
self.validate()
# self.model.update_soil_parameters()

# Commenting out until we get the normal model to work
# def train_one_epoch(self):
Expand Down
Binary file modified dpLGAR/agents/__pycache__/DifferentiableLGAR.cpython-310.pyc
Binary file not shown.
2 changes: 1 addition & 1 deletion dpLGAR/models/config/shorter_subcycle.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ subcycle_length_h: ??? #[hr]
num_subcycles: ???
#num_time_step: 90000 # total simulation time is this number times the time_step_s
#endtime: 372.0 #[hr]
endtime: 744.0 #[hr]
endtime: 3000.0 #[hr]
endtime_s: ???
forcing_resolution_h: ???
time_per_step: ???
Expand Down
4 changes: 2 additions & 2 deletions dpLGAR/models/physics/layers/Layer.py
Original file line number Diff line number Diff line change
Expand Up @@ -1520,16 +1520,16 @@ def insert_water(
else:
# if it got to this point, no ponding is allowed, either infiltrate or runoff
# order is important here; assign zero to ponded depth once we compute volume in and runoff
#TODO TEST THIS MORE
infiltration = torch.min(ponded_depth, fp_cm)
# if ponded_depth < fp_cm:
# runoff = torch.tensor(0.0, device=self.global_params.device)
# else:
# runoff = ponded_depth - infiltration
# ponded_depth = torch.tensor(0.0, device=self.global_params.device)
ponded_depth = ponded_depth_temp
_runoff_ = ponded_depth - infiltration
ponded_depth = self.global_params.ponded_depth_max
runoff = torch.clamp(_runoff_, min=0.0)
_x_ = "test"

return runoff, infiltration, ponded_depth

Expand Down
Binary file modified dpLGAR/models/physics/layers/__pycache__/Layer.cpython-310.pyc
Binary file not shown.

0 comments on commit efb2560

Please sign in to comment.