Skip to content
Open
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
15 changes: 8 additions & 7 deletions pysplit/traj.py
Original file line number Diff line number Diff line change
Expand Up @@ -439,13 +439,14 @@ def moisture_uptake(self, precipitation, evaporation, interval=6,

if self.uptake.loc[w, 'dq_initial'] < precipitation:
# Adjust previous fractions
self.uptake.loc[is_below, 'dq'] = (
self.uptake.loc[is_below, 'below'] *
self.uptake.loc[w, 'q'])

self.uptake.loc[is_above, 'dq'] = (
self.uptake.loc[is_above, 'above'] *
self.uptake.loc[w, 'q'])
if self.uptake.loc[w, 'Timestep'] != 0:
self.uptake.loc[is_below, 'dq'] = (
self.uptake.loc[is_below, 'below'] *
self.uptake.loc[w, 'q'])

self.uptake.loc[is_above, 'dq'] = (
self.uptake.loc[is_above, 'above'] *
self.uptake.loc[w, 'q'])

def load_clippedtraj_data(self, clipped_dir='default',
fname_end='CLIPPED'):
Expand Down