TGTGInsighttelegram intelligenceLIVE / telegram public index
← Python Заметки

TGINSIGHT SIMILAR POSTS

Најди сличен содржај

Изворен канал @pythonotes · Post #201 · 13 јан.

Мы уже знаем, что на текущую сессию интерпретатора изменение PYTHONPATH никак не повлияет. Но если вы запустите дочерний процесс, то он унаследует окружение текущего процесса, а значит и изменения в любых переменных будут на него влиять. Вот небольшой пример: Объявляем переменную user@host:~$ export PYTHONPATH=/path1 Запускаем интерпретатор user@host:~$ python3 Проверим что в sys.path >>> import sys >>> print(sys.path) ['', '/path1', '/usr/lib/...', ...] Добавляем что-то в переменную >>> import os >>> os.emviron['PYTHONPATH'] = '/path1:/path2' >>> print(sys.path) ['', '/path1', '/usr/lib/...', ...] Изменений нет. Но давайте запустим дочерний процесс и посмотрим там >>> os.system('python3') # теперь мы находимся в другом процессе >>> import sys >>> print(sys.path) ['', '/path1', '/path2', '/usr/lib/...', ...] Тоже самое будет и с subprocess, так как по умолчанию текущее окружение тоже наследуется. >>> import subprocess >>> subprocess.call(['python3', '-c', 'import sys;print(sys.path)']) ['', '/path1', '/path2', '/usr/lib/...', ...] ______________________ Лучшей практикой является передача энвайронмента явно через аргумент env! import subprocess subprocess.call(cmd, env={'PYTHONPATH': '...'}) Это поможет точно понимать какое окружение будет у запускаемого процесса и при этом не изменять окружение текущего процесса. #basic

Hashtags

Резултати

Пронајдени 3 слични објави

Пребарај: #medicaltech

当前筛选 #medicaltech清除筛选
AI & Law

@ai_and_law · Post #95 · 27.08.2023 г., 08:48

🌟AI Sunday Wonders: Breakthrough in AI-Assisted Communication for Paralysis Patients Hello everybody! This Sunday we explore new studies published in Nature showcase groundbreaking advances in brain implants, offering hope to individuals with paralysis or speech impairments. Led by Dr. Jaimie Henderson and his team at Stanford Medicine, the studies highlight neuroprostheses that can decode neural activity into words on a computer screen, audio speech, or animated avatars. The implants were tested on patients like Pat Bennett, diagnosed with amyotrophic lateral sclerosis (ALS) affecting her speech. By recording neural activity during speech attempts and decoding it into words, researchers achieved promising results. A 50-word vocabulary saw a 9.1% error rate during vocalization days, and a 125,000-word vocabulary had a 23.8% error rate. These findings indicate the potential to restore fluent conversation for paralysis patients. Dr. Henderson emphasized the transformative impact on communication, with a promising future where those unable to speak can stay connected with the world. Although the studies are proof of concept and require further testing, they pave the way for future breakthroughs, offering a glimpse of technology's potential to bridge communication gaps. #AI#MedicalTech#Neuroprosthetics#Paralysis#Communication#Breakthrough#AIInnovation

Venture Village Wall 🦄

@venturevillagewall · Post #4210 · 21.02.2025 г., 16:00

Latest Funding Rounds in Tech & Agri Funding highlights: - Johnvents Industries: $40.5M - Indigenous agribusiness in Africa. Read more - Valencia Technologies: $35M - Focused on tech innovations. Read more - Certn: $30M - Efficient background screening solutions. Read more - EG 427: $28.17M - DNA medicines for chronic diseases. Read more - Methuselah: $27.46M - Medical technology advancements. Read more - Spore.bio: $23M - Innovations in microbiology. Read more - Avandra Imaging: $17.75M - Imaging technology developments. Read more - Nuveen Green Capital: $15M - Sustainable real estate financing. Read more - METYCLE: $14.71M - Supplier access and product sales. Read more - fileAI: $14M - AI file automation solutions. Read more #Funding#Agribusiness#Tech#Sustainable#BackgroundCheck#Healthcare#MedicalTech#Microbiology#RealEstate#AI

🩻From Diamond Mines to Saving Lives! South African company Lodox Systems has developed a unique full-body X-ray scanner — the Lodox Statscan. It can capture a full-body image in just 13 seconds, while delivering 10 times less radiation than a standard X-ray. 📜 The technology dates back to the 1990s, when engineers at De Beers, a diamond mining company, designed the scanner to detect diamonds being smuggled out of mines. Later, this same technology was adapted for medical use — allowing for rapid and low-dose full-body imaging in emergency situations. 📍 The first Statscan installation outside South Africa was in 2003. Today, Lodox systems are used in hospitals and trauma centers around the world. #SouthAfrica#Innovation#MedicalTech#Lodox#Radiology#TraumaCare#AfricaInTheWorld#Xray#HealthTech