Skip to content

Commit

Permalink
update resource
Browse files Browse the repository at this point in the history
  • Loading branch information
LongxingTan committed Sep 16, 2023
1 parent 949b4bd commit 5b9dbb2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lekin/lekin_struct/resource.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

import math
from typing import Any, Callable, Dict, Generator, List, Optional, Tuple, Type, Union

import numpy as np
import pandas as pd

Expand Down Expand Up @@ -72,7 +73,6 @@ def get_latest_available_time(self, duration=None, end=None):
self.update_continuous_empty_hours()
return max([i + 1 for (i, v) in enumerate(self.continuous_empty_hours[:end]) if v >= duration])


def update_continuous_empty_hours(self):
if len(self.available_hours) != len(self._available_timeslots):
pass
Expand Down

0 comments on commit 5b9dbb2

Please sign in to comment.