Skip to content

CBC-Engineers/hoc-crawler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

hoc_crawler

Figure out the height of cover limits (for buried pipes).

Usage

Iterate over heights of cover, inclusively. range isn't so great because it doesn't allow for inclusivity or for open-ended ranges.

Example usage:

from hoc_crawler import crawl, InvalidHOC

def my_pipe_cover_check(H):
    if H <= 10:
        return "OK"
    raise InvalidHOC(f"{H} is too much")

max_cover = crawl(my_pipe_cover_check, target="Max")

The maximum cover height will be returned as 10.

About

Figure out the height of cover limits for buried pipes.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages