





'''simple docstring'''






from collections import namedtuple

__UpperCamelCase										=  namedtuple("from_to", "from_ to")

__UpperCamelCase										=  {
    "atm": from_to(1, 1),
    "pascal": from_to(0.0_00_00_98, 101325),
    "bar": from_to(0.98_69_23, 1.0_13_25),
    "kilopascal": from_to(0.00_98_69_23, 101.325),
    "megapascal": from_to(9.8_69_23, 0.10_13_25),
    "psi": from_to(0.06_80_46, 14.69_59),
    "inHg": from_to(0.0_33_42_11, 29.92_13),
    "torr": from_to(0.00_13_15_79, 760),
}







def 				_a	(					_lowerCamelCase						,  _lowerCamelCase						,  _lowerCamelCase   )   ->							float:



			"""simple docstring"""


			if from_type not in PRESSURE_CONVERSION:
						raise ValueError(
						    F'''Invalid \'from_type\' value: {from_type!r}  Supported values are:\n'''
						    + """, """.join(_lowerCamelCase   )   )
			if to_type not in PRESSURE_CONVERSION:
						raise ValueError(
						    F'''Invalid \'to_type\' value: {to_type!r}.  Supported values are:\n'''
						    + """, """.join(_lowerCamelCase   )   )
			return (
			    value * PRESSURE_CONVERSION[from_type].from_ * PRESSURE_CONVERSION[to_type].to
			)


if __name__ == "__main__":
	import doctest

	doctest.testmod()










'''simple docstring'''






from typing import TYPE_CHECKING

from ...utils import OptionalDependencyNotAvailable, _LazyModule, is_torch_available, is_vision_available


__UpperCamelCase										=  {
    "configuration_swin2sr": ["SWIN2SR_PRETRAINED_CONFIG_ARCHIVE_MAP", "Swin2SRConfig"],
}


try:
	if not is_torch_available():
		raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
	pass
else:
	__UpperCamelCase										=  [
	    "SWIN2SR_PRETRAINED_MODEL_ARCHIVE_LIST",
	    "Swin2SRForImageSuperResolution",
	    "Swin2SRModel",
	    "Swin2SRPreTrainedModel",
	]


try:
	if not is_vision_available():
		raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
	pass
else:
	__UpperCamelCase										=  ["Swin2SRImageProcessor"]


if TYPE_CHECKING:
	from .configuration_swinasr import SWIN2SR_PRETRAINED_CONFIG_ARCHIVE_MAP, SwinaSRConfig

	try:
		if not is_torch_available():
			raise OptionalDependencyNotAvailable()
	except OptionalDependencyNotAvailable:
		pass
	else:
		from .modeling_swinasr import (
		    SWIN2SR_PRETRAINED_MODEL_ARCHIVE_LIST,
		    SwinaSRForImageSuperResolution,
		    SwinaSRModel,
		    SwinaSRPreTrainedModel,
		)

	try:
		if not is_vision_available():
			raise OptionalDependencyNotAvailable()
	except OptionalDependencyNotAvailable:
		pass
	else:
		from .image_processing_swinasr import SwinaSRImageProcessor


else:
	import sys

	__UpperCamelCase										=  _LazyModule(__name__, globals()["__file__"], _import_structure, module_spec=__spec__)


