This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import math | |
from random import random | |
from abc import ABC | |
__all__ = [ | |
'Thing', 'battle' | |
] | |
class Thing(ABC): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# region --- Imports --------------------------------------------------------------------------------------------------- | |
from sympy import * # symbolical algebra library | |
from numbers import Real | |
import math | |
from fractions import Fraction | |
from functools import wraps | |
from typing import Any, TypeVar, Callable, Optional, Final, TypeAlias | |
from enum import Enum, auto |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
Duct sizing functions based on ASHRAE with extentions for Darcy/Colebrook formulas from Niazkar. | |
""" | |
# fmt: off | |
from datetime import date | |
__author__ = 'David Stein <dstein@ventrop.com>' | |
__date__ = date.fromisoformat('2022-11-09') | |
__company__ = 'Ventrop ECG, PLLC' | |
# __all__ = ["find_hydraulic_diameter", "find_second_dimension", "get_all_possible_dims", "minimum_ventilation_rates", "run"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from duct_sizer import * | |
# region --- Makeup air ------------------------------------------------------------------------------------------------ | |
MA_A1_dryers = Diversity_Riser({0: 2, 1: 0, 2: 0, 3: 0, 4: 0, 5: 0, 6: 0}, 200) | |
MA_A1_kitchens = Diversity_Riser({0: 0, 1: 1, 2: 0, 3: 1, 4: 1, 5: 1, 6: 1}, 250) | |
MA_A1_cfms = np.asarray(MA_A1_dryers.cfms) + np.asarray(MA_A1_kitchens.cfms) | |
MA_A2_dryers = Diversity_Riser({0: 2, 1: 0, 2: 0, 3: 0, 4: 0, 5: 1, 6: 0, }, 200) | |
MA_A2_kitchens = Diversity_Riser({0: 0, 1: 1, 2: 0, 3: 0, 4: 0, 5: 1, 6: 1,}, 250) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
Duct sizing functions based on ASHRAE with extentions for Darcy/Colebrook formulas from Niazkar. | |
""" | |
# fmt: off | |
from datetime import date | |
__author__ = 'David Stein <dstein@ventrop.com>' | |
__date__ = date.fromisoformat('2022-11-09') | |
__company__ = 'Ventrop ECG, PLLC' | |
# __all__ = ["find_hydraulic_diameter", "find_second_dimension", "get_all_possible_dims", "minimum_ventilation_rates", "run"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
Duct sizing functions based on ASHRAE with extentions for Darcy/Colebrook formulas from Niazkar. | |
""" | |
# fmt: off | |
from datetime import date | |
__author__ = 'David Stein <dstein@ventrop.com>' | |
__date__ = date.fromisoformat('2022-11-09') | |
__company__ = 'Ventrop ECG, PLLC' | |
__all__ = ["find_hydraulic_diameter", "find_second_dimension", "get_all_possible_dims", "minimum_ventilation_rates", "run"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
Duct sizing functions based on ASHRAE with extentions for Darcy/Colebrook formulas from Niazkar. | |
""" | |
# fmt: off | |
from datetime import date | |
__author__ = 'David Stein <dstein@ventrop.com>' | |
__date__ = date.fromisoformat('2022-11-09') | |
__company__ = 'Ventrop ECG, PLLC' | |
__all__ = ["find_hydraulic_diameter", "find_second_dimension", "get_all_possible_dims", "minimum_ventilation_rates", "run"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
Duct sizing functions based on ASHRAE with extentions for Darcy/Colebrook formulas from Niazkar. | |
""" | |
# fmt: off | |
from datetime import date | |
__author__ = 'David Stein <dstein@ventrop.com>' | |
__date__ = date.fromisoformat('2022-11-07') | |
__company__ = 'Ventrop ECG, PLLC' | |
__all__ = ["find_hydraulic_diameter", "find_second_dimension", "get_all_possible_dims", "minimum_ventilation_rates", "run"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from sympy import * # symbolical algebra library | |
from enum import Enum, auto | |
from typing import * | |
from numbers import Number | |
from fractions import Fraction | |
import math | |
import inspect | |
from functools import partial, wraps |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local sense=-20 | |
local speed = mp.get_property("speed") | |
local detect = false | |
function f(msg) | |
if string.find(msg.text, "silence_end") and detect then | |
mp.set_property("speed",speed) | |
endmsg=msg.text | |
detect = false | |
--print("end") | |
elseif string.find(msg.text, "silence_start") and detect==false then |
NewerOlder