WorldWideScience

Sample records for python python molurus

  1. Ultrasonographic anatomy of the coelomic organs of boid snakes (Boa constrictor imperator, Python regius, Python molurus molurus, and Python curtus).

    Science.gov (United States)

    Banzato, Tommaso; Russo, Elisa; Finotti, Luca; Milan, Maria C; Gianesella, Matteo; Zotti, Alessandro

    2012-05-01

    To determine the ultrasonographic features of the coelomic organs of healthy snakes belonging to the Boidae and Pythonidae families. 16 ball pythons (Python regius; 7 males, 8 females, and 1 sexually immature), 10 Indian rock pythons (Python molurus molurus; 5 males, 4 females, and 1 sexually immature), 12 Python curtus (5 males and 7 females), and 8 boa constrictors (Boa constrictor imperator; 4 males and 4 females). All snakes underwent complete ultrasonographic evaluation of the coelomic cavity; chemical restraint was not necessary. A dorsolateral approach to probe placement was chosen to increase image quality and to avoid injury to the snakes and operators. Qualitative and quantitative observations were recorded. The liver, stomach, gallbladder, pancreas, small and large intestines, kidneys, cloaca, and scent glands were identified in all snakes. The hemipenes were identified in 10 of the 21 (48%) male snakes. The spleen was identified in 5 of the 46 (11%) snakes, and ureters were identified in 6 (13%). In 2 sexually immature snakes, the gonads were not visible. One (2%) snake was gravid, and 7 (15%) had small amounts of free fluid in the coelomic cavity. A significant positive correlation was identified between several measurements (diameter and thickness of scent glands, gastric and pyloric walls, and colonic wall) and body length (snout to vent) and body weight. The study findings can be used as an atlas of the ultrasonographic anatomy of the coelomic cavity in healthy boid snakes. Ultrasonography was reasonably fast to perform and was well tolerated in conscious snakes.

  2. Acariasis on pet Burmese python, Python molurus bivittatus in Malaysia

    Institute of Scientific and Technical Information of China (English)

    Mariana A; Vellayan S; Halimaton I; Ho TM

    2011-01-01

    Objective:To identify the acari present on pet Burmese pythons in Malaysia and to determine whether there is any potential public health risk related to handling of the snakes. Methods:Two sub-adult Burmese pythons kept as pets for a period of about 6 to 7 months by different owners, were brought to an exotic animal practice for treatment. On a complete medical examination, some ticks and mites (acari) were detected beneath the dorsal and ventral scales along body length of the snakes. Ticks were directly identified and mites were mounted prior to identification. Results:A total of 12 ticks represented by 3 males, 2 females and 7 nymphal stages of Rhipicephalus sanguineus (R. sanguineus) were extracted from the first python while the other one was with 25 female Ophionyssus natricis (O. natricis) mesostigmatid mites. Only adult female mites were found. These mites are common ectoparasites of Burmese pythons. Conclusions:Both the acarine species found on the Burmese pythons are known vectors of pathogens. This is the first record that R. sanguineus has been reported from a pet Burmese python in Malaysia.

  3. Acariasis on pet Burmese python, Python molurus bivittatus in Malaysia.

    Science.gov (United States)

    Mariana, A; Vellayan, S; Halimaton, I; Ho, T M

    2011-03-01

    To identify the acari present on pet Burmese pythons in Malaysia and to determine whether there is any potential public health risk related to handling of the snakes. Two sub-adult Burmese pythons kept as pets for a period of about 6 to 7 months by different owners, were brought to an exotic animal practice for treatment. On a complete medical examination, some ticks and mites (acari) were detected beneath the dorsal and ventral scales along body length of the snakes. Ticks were directly identified and mites were mounted prior to identification. A total of 12 ticks represented by 3 males, 2 females and 7 nymphal stages of Rhipicephalus sanguineus (R. sanguineus) were extracted from the first python while the other one was with 25 female Ophionyssus natricis (O. natricis) mesostigmatid mites. Only adult female mites were found. These mites are common ectoparasites of Burmese pythons. Both the acarine species found on the Burmese pythons are known vectors of pathogens. This is the first record that R. sanguineus has been reported from a pet Burmese python in Malaysia. Copyright © 2011 Hainan Medical College. Published by Elsevier B.V. All rights reserved.

  4. Postprandial increase of oleoylethanolamide mobilization in small intestine of the Burmese python (Python molurus)

    DEFF Research Database (Denmark)

    Astarita, Giuseppe; Rourke, Bryan C; Andersen, Johnnie Bremholm

    2006-01-01

    to the induction of between-meal satiety. Here we examined whether feeding-induced OEA mobilization also occurs in Burmese pythons (Python molurus), a species of ambush-hunting snakes that consumes huge meals after months of fasting and undergoes massive feeding-dependent changes in gastrointestinal hormonal...... release and gut morphology. Using liquid-chromatography/mass-spectrometry (LC/MS), we measured OEA levels in the gastrointestinal tract of fasted (28 days) and fed (48h after feeding) pythons. We observed a nearly 300-fold increase in OEA levels in the small intestine of fed compared to fasted animals......-unsaturated, but not polyunsaturated fatty-acid ethanolamides (FAE) in the small intestine of fed pythons. The identification of OEA and other FAEs in the gastrointestinal tract of Python molurus suggests that this class of lipid messengers may be widespread among vertebrate groups and may represent an evolutionarily ancient means...

  5. Postprandial increase of oleoylethanolamide mobilization in small intestine of the Burmese python (Python molurus)

    DEFF Research Database (Denmark)

    Astarita, Giuseppe; Rourke, Bryan C; Andersen, Johnnie Bremholm

    2006-01-01

    to the induction of between-meal satiety. Here we examined whether feeding-induced OEA mobilization also occurs in Burmese pythons (Python molurus), a species of ambush-hunting snakes that consumes huge meals after months of fasting and undergoes massive feeding-dependent changes in gastrointestinal hormonal...... release and gut morphology. Using liquid-chromatography/mass-spectrometry (LC/MS), we measured OEA levels in the gastrointestinal tract of fasted (28 days) and fed (48h after feeding) pythons. We observed a nearly 300-fold increase in OEA levels in the small intestine of fed compared to fasted animals......-unsaturated, but not polyunsaturated fatty-acid ethanolamides (FAE) in the small intestine of fed pythons. The identification of OEA and other FAEs in the gastrointestinal tract of Python molurus suggests that this class of lipid messengers may be widespread among vertebrate groups and may represent an evolutionarily ancient means...

  6. Computed tomography for the diagnosis and treatment monitoring of bacterial pneumonia in Indian pythons (Python molurus).

    Science.gov (United States)

    Pees, M; Kiefer, I; Oechtering, G; Krautwald-Junghanns, M-E

    2008-08-02

    Eight Indian pythons (Python molurus) with clinical and microbiological evidence of pneumonia were examined by computed tomography (ct) before and after treatment. The results were assessed subjectively and measurements were taken following a standard protocol. Changes in the lung tissue of all the pythons were diagnosed, and the extent of the disease could be assessed. ct examinations after treatment showed an improvement in the six pythons whose clinical condition had improved, but in the other two pythons they demonstrated the severity of the disease. The subjective assessments were superior to the evaluation of measurements of attenuation in regions of interest. However, the average and the maximum attenuation provided additional information on the extent of the disease. Except for one python with only mild clinical signs, the attenuation after successful treatment was still higher than in healthy pythons.

  7. A field test of attractant traps for invasive Burmese pythons (Python molurus bivittatus) in southern Florida

    Science.gov (United States)

    Reed, Robert N.; Hart, Kristen M.; Rodda, Gordon H.; Mazzotti, Frank J.; Snow, Ray W.; Cherkiss, Michael; Rozar, Rondald; Goetz, Scott

    2011-01-01

    Context: Invasive Burmese pythons (Python molurus bivittatus) are established over thousands of square kilometres of southern Florida, USA, and consume a wide range of native vertebrates. Few tools are available to control the python population, and none of the available tools have been validated in the field to assess capture success as a proportion of pythons available to be captured. Aims: Our primary aim was to conduct a trap trial for capturing invasive pythons in an area east of Everglades National Park, where many pythons had been captured in previous years, to assess the efficacy of traps for population control. We also aimed to compare results of visual surveys with trap capture rates, to determine capture rates of non-target species, and to assess capture rates as a proportion of resident pythons in the study area. Methods: We conducted a medium-scale (6053 trap nights) experiment using two types of attractant traps baited with live rats in the Frog Pond area east of Everglades National Park. We also conducted standardised and opportunistic visual surveys in the trapping area. Following the trap trial, the area was disc harrowed to expose pythons and allow calculation of an index of the number of resident pythons. Key results: We captured three pythons and 69 individuals of various rodent, amphibian, and reptile species in traps. Eleven pythons were discovered during disc harrowing operations, as were large numbers of rodents.

  8. Identification and characterization of two closely related unclassifiable endogenous retroviruses in pythons (Python molurus and Python curtus).

    Science.gov (United States)

    Huder, Jon B; Böni, Jürg; Hatt, Jean-Michel; Soldati, Guido; Lutz, Hans; Schüpbach, Jörg

    2002-08-01

    Boid inclusion body disease (BIBD) is a fatal disorder of boid snakes that is suspected to be caused by a retrovirus. In order to identify this agent, leukocyte cultures (established from Python molurus specimens with symptoms of BIBD or kept together with such diseased animals) were assessed for reverse transcriptase (RT) activity. Virus from cultures exhibiting high RT activity was banded on sucrose density gradients, and the RT peak fraction was subjected to highly efficient procedures for the identification of unknown particle-associated retroviral RNA. A 7-kb full retroviral sequence was identified, cloned, and sequenced. This virus contained intact open reading frames (ORFs) for gag, pro, pol, and env, as well as another ORF of unknown function within pol. Phylogenetic analysis showed that the virus is distantly related to viruses from both the B and D types and the mammalian C type but cannot be classified. It is present as a highly expressed endogenous retrovirus in all P. molurus individuals; a closely related, but much less expressed virus was found in all tested Python curtus individuals. All other boid snakes tested, including Python regius, Python reticulatus, Boa constrictor, Eunectes notaeus, and Morelia spilota, were virus negative, independent of whether they had BIBD or not. Virus isolated from P. molurus could not be transmitted to the peripheral blood mononuclear cells of B. constrictor or P. regius. Thus, there is no indication that this novel virus, which we propose to name python endogenous retrovirus (PyERV), is causally linked with BIBD.

  9. Complete mitochondrial genome sequence from an endangered Indian snake, Python molurus molurus (Serpentes, Pythonidae).

    Science.gov (United States)

    Dubey, Bhawna; Meganathan, P R; Haque, Ikramul

    2012-07-01

    This paper reports the complete mitochondrial genome sequence of an endangered Indian snake, Python molurus molurus (Indian Rock Python). A typical snake mitochondrial (mt) genome of 17258 bp length comprising of 37 genes including the 13 protein coding genes, 22 tRNA genes, and 2 ribosomal RNA genes along with duplicate control regions is described herein. The P. molurus molurus mt. genome is relatively similar to other snake mt. genomes with respect to gene arrangement, composition, tRNA structures and skews of AT/GC bases. The nucleotide composition of the genome shows that there are more A-C % than T-G% on the positive strand as revealed by positive AT and CG skews. Comparison of individual protein coding genes, with other snake genomes suggests that ATP8 and NADH3 genes have high divergence rates. Codon usage analysis reveals a preference of NNC codons over NNG codons in the mt. genome of P. molurus. Also, the synonymous and non-synonymous substitution rates (ka/ks) suggest that most of the protein coding genes are under purifying selection pressure. The phylogenetic analyses involving the concatenated 13 protein coding genes of P. molurus molurus conformed to the previously established snake phylogeny.

  10. Predators in training: operant conditioning of novel behavior in wild Burmese pythons (Python molurus bivitattus).

    Science.gov (United States)

    Emer, Sherri A; Mora, Cordula V; Harvey, Mark T; Grace, Michael S

    2015-01-01

    Large pythons and boas comprise a group of animals whose anatomy and physiology are very different from traditional mammalian, avian and other reptilian models typically used in operant conditioning. In the current study, investigators used a modified shaping procedure involving successive approximations to train wild Burmese pythons (Python molurus bivitattus) to approach and depress an illuminated push button in order to gain access to a food reward. Results show that these large, wild snakes can be trained to accept extremely small food items, associate a stimulus with such rewards via operant conditioning and perform a contingent operant response to gain access to a food reward. The shaping procedure produced robust responses and provides a mechanism for investigating complex behavioral phenomena in massive snakes that are rarely studied in learning research.

  11. Humoral regulation of heart rate during digestion in pythons (Python molurus and Python regius).

    Science.gov (United States)

    Enok, Sanne; Simonsen, Lasse Stærdal; Pedersen, Signe Vesterskov; Wang, Tobias; Skovgaard, Nini

    2012-05-15

    Pythons exhibit a doubling of heart rate when metabolism increases several times during digestion. Pythons, therefore, represent a promising model organism to study autonomic cardiovascular regulation during the postprandial state, and previous studies show that the postprandial tachycardia is governed by a release of vagal tone as well as a pronounced stimulation from nonadrenergic, noncholinergic (NANC) factors. Here we show that infusion of plasma from digesting donor pythons elicit a marked tachycardia in fasting snakes, demonstrating that the NANC factor resides in the blood. Injections of the gastrin and cholecystokinin receptor antagonist proglumide had no effect on double-blocked heart rate or blood pressure. Histamine has been recognized as a NANC factor in the early postprandial period in pythons, but the mechanism of its release has not been identified. Mast cells represent the largest repository of histamine in vertebrates, and it has been speculated that mast cells release histamine during digestion. Treatment with the mast cell stabilizer cromolyn significantly reduced postprandial heart rate in pythons compared with an untreated group but did not affect double-blocked heart rate. While this study indicates that histamine induces postprandial tachycardia in pythons, its release during digestion is not stimulated by gastrin or cholecystokinin nor is its release from mast cells a stimulant of postprandial tachycardia.

  12. Experimentally derived salinity tolerance of hatchling Burmese pythons (Python molurus bivittatus) from the Everglades, Florida (USA)

    Science.gov (United States)

    Hart, Kristen M.; Schofield, Pamela J.; Gregoire, Denise R.

    2012-01-01

    In a laboratory setting, we tested the ability of 24 non-native, wild-caught hatchling Burmese pythons (Python molurus bivittatus) collected in the Florida Everglades to survive when given water containing salt to drink. After a one-month acclimation period in the laboratory, we grouped snakes into three treatments, giving them access to water that was fresh (salinity of 0, control), brackish (salinity of 10), or full-strength sea water (salinity of 35). Hatchlings survived about one month at the highest marine salinity and about five months at the brackish-water salinity; no control animals perished during the experiment. These results are indicative of a "worst-case scenario", as in the laboratory we denied access to alternate fresh-water sources that may be accessible in the wild (e.g., through rainfall). Therefore, our results may underestimate the potential of hatchling pythons to persist in saline habitats in the wild. Because of the effect of different salinity regimes on survival, predictions of ultimate geographic expansion by non-native Burmese pythons that consider salt water as barriers to dispersal for pythons may warrant re-evaluation, especially under global climate change and associated sea-level-rise scenarios.

  13. A postmortem experience of Indian rock python (Python molurus molurus that swallowed a whole barking deer

    Directory of Open Access Journals (Sweden)

    Amam Zonaed Siddiki

    2013-06-01

    Full Text Available The object of this study was to report a post mortem findings of a female Indian Rock Python with a length of 406 cm (13.32 feet and approximate weight of 60 kg (including a whole deer that was swallowed by the python, that was brought to the Teaching Veterinary Hospital, Chittagong Veterinary and Animal Sciences University (CVASU by the Forest Department of Kumira Range Office, Chittagong. The local inhabitants accidently found the python at the forest area of Kumira and they frightenedly injured and killed the snake eventually. The postmortem (PM examination was performed according to standard protocols. Gross examination revealed bloody discharge was come out through mouth and a couple of skin lacerations observed on the right dorso-lateral part of the abdominal region. The whole barrel-shaped body cavity was opened and whole deer (partially decomposed was recovered from the stomach. Furthermore, three fractured ribs were found on right thorax. The PM examination team believes that the possible cause of python death was traumatic injury inflicted by the local people. [Vet World 2013; 6(3.000: 163-165

  14. Osteitis deformans (Paget's disease) in a Burmese python (Python molurus bivittatus)--a case report.

    Science.gov (United States)

    Preziosi, Rosario; Diana, Alessia; Florio, Daniela; Gustinelli, Andrea; Nardini, Giordano

    2007-11-01

    Osteitis deformans (Paget's disease of bone) is a chronic focal disorder of bone remodelling characterized by an initial increase in osteoclast-mediated bone resorption, with subsequent compensatory increase in new bone formation, resulting in a disorganized mosaic of woven and lamellar bone. In the Burmese python (Python molurus bivittatus) of this report, multifocal gross swellings involving the proximal third of the vertebral spine were observed and associated with anorexia, a relative inability to move or to fully extend the body, and to strike at prey. Serum biochemistry revealed elevated alkaline-phosphatase activity. Radiographic changes (irregular bone proliferation along the vertebral margins), computed tomography scan results (abnormal mineral density), and histopathological features (generalized thickening of the bony trabeculae at the expense of the intertrabecular spaces and irregular patches of lamellar bone with a characteristic "mosaic" pattern) indicated osteitis deformans.

  15. Ultrasonographic diagnosis of an endocarditis valvularis in a Burmese python (Python molurus bivittatus) with pneumonia.

    Science.gov (United States)

    Schroff, Sandra; Schmidt, Volker; Kiefer, Ingmar; Krautwald-Junghanns, Maria-Elisabeth; Pees, Michael

    2010-12-01

    An 11-yr-old Burmese python (Python molurus bivittatus) was presented with a history of respiratory symptoms. Computed tomography and an endoscopic examination of the left lung were performed and revealed severe pneumonia. Microbiologic examination of a tracheal wash sample and an endoscopy-guided sample from the lung confirmed infection with Salmonella enterica ssp. IV, Enterobacter cloacae, and Klebsiella pneumoniae. Computed tomographic examination demonstrated a hyperattenuated structure within the heart. Echocardiographic examination revealed a hyperechoic mass at the pulmonic valve as well as a dilated truncus pulmonalis. As therapy for pneumonia was ineffective, the snake was euthanized. Postmortem examination confirmed pneumonia and infective endocarditis of the pulmonic valve caused by septicemia with Salmonella enterica ssp. IV. Focal arteriosclerosis of the pulmonary trunk was also diagnosed. The case presented here demonstrates the possible connection between respiratory and cardiovascular diseases in snakes.

  16. 75 FR 38069 - Injurious Wildlife Species; Listing the Boa Constrictor, Four Python Species, and Four Anaconda...

    Science.gov (United States)

    2010-07-01

    ... Constrictor, Four Python Species, and Four Anaconda Species as Injurious Reptiles AGENCY: Fish and Wildlife... regulations to add Indian python (Python molurus, including Burmese python Python molurus bivittatus), reticulated python (Broghammerus reticulatus or Python reticulatus), Northern African python (Python...

  17. 75 FR 11808 - Injurious Wildlife Species; Listing the Boa Constrictor, Four Python Species, and Four Anaconda...

    Science.gov (United States)

    2010-03-12

    ... Constrictor, Four Python Species, and Four Anaconda Species as Injurious Reptiles AGENCY: Fish and Wildlife... to add Indian python (Python molurus, including Burmese python Python molurus bivittatus), reticulated python (Broghammerus reticulatus or Python reticulatus), Northern African python (Python...

  18. Septicaemia secondary to infection by Corynebacterium macginleyi in an Indian python (Python molurus).

    Science.gov (United States)

    Martínez, Jorge; Segura, Pablo; García, David; Aduriz, Gorka; Ibabe, José C; Peris, Bernardo; Corpa, Juan M

    2006-09-01

    A seven-year-old female Indian python (Python molurus) weighing about 35kg was euthanased after several clinical episodes of stomatitis, pneumonia, ophthalmitis and dystocia over a period of four years. The animal had been maintained in a terrarium in a circus truck at an adequate temperature. During shows, however, the snake was considered to be exposed to stressful conditions for several hours at a time at low temperatures and with noise and bright lights. A post-mortem examination indicated ulcerative stomatitis, osteomyelitis, severe pneumonia and numerous granulomata and multifocal necrosis in stomach and spleen. Corynebacterium macginleyi was isolated in pure culture from the ulcerative stomatitis, and mixed with Stenotrophomonas maltophilia from the lungs and spleen. The findings indicated that the snake had died from a septicaemic process caused by C. macginleyi, probably originating from the stomatitis. The role of S. maltophilia as a secondary agent is discussed. The stress of the circus show and poor husbandry may have predisposed the animal to infection and septicaemia. This is the first report of C. macginleyi causing disease in a snake.

  19. Double valvular insufficiency in a Burmese python (Python molurus bivittatus, Linnaeus, 1758) suffering from concomitant bacterial pneumonia.

    Science.gov (United States)

    Schilliger, Lionel; Tréhiou-Sechi, Emilie; Petit, Amandine M P; Misbach, Charlotte; Chetboul, Valérie

    2010-12-01

    Ultrasonography, and, to a lesser extent, echocardiography are now well-established, noninvasive, and painless diagnostic tools in herpetologic medicine. Various cardiac lesions have been previously described in reptiles, but valvulopathy is rarely documented in these animals and, consequently, is poorly understood. In this report, sinoatrial and atrioventricular insufficiencies were diagnosed in a 5-yr-old captive dyspneic Burmese python (Python molurus bivittatus) on the basis of echocardiographic and Doppler examination. This case report is the first to document Doppler assessment of valvular regurgitations in a reptile.

  20. The big squeeze: scaling of constriction pressure in two of the world's largest snakes, Python reticulatus and Python molurus bivittatus.

    Science.gov (United States)

    Penning, David A; Dartez, Schuyler F; Moon, Brad R

    2015-11-01

    Snakes are important predators that have radiated throughout many ecosystems, and constriction was important in their radiation. Constrictors immobilize and kill prey by using body loops to exert pressure on their prey. Despite its importance, little is known about constriction performance or its full effects on prey. We studied the scaling of constriction performance in two species of giant pythons (Python reticulatus and Python molurus bivittatus) and propose a new mechanism of prey death by constriction. In both species, peak constriction pressure increased significantly with snake diameter. These and other constrictors can exert pressures dramatically higher than their prey's blood pressure, suggesting that constriction can stop circulatory function and perhaps kill prey rapidly by over-pressurizing the brain and disrupting neural function. We propose the latter 'red-out effect' as another possible mechanism of prey death from constriction. These effects may be important to recognize and treat properly in rare cases when constrictors injure humans.

  1. Characterization of carbonic anhydrase XIII in the erythrocytes of the Burmese python, Python molurus bivittatus.

    Science.gov (United States)

    Esbaugh, A J; Secor, S M; Grosell, M

    2015-09-01

    Carbonic anhydrase (CA) is one of the most abundant proteins found in vertebrate erythrocytes with the majority of species expressing a low activity CA I and high activity CA II. However, several phylogenetic gaps remain in our understanding of the expansion of cytoplasmic CA in vertebrate erythrocytes. In particular, very little is known about isoforms from reptiles. The current study sought to characterize the erythrocyte isoforms from two squamate species, Python molurus and Nerodia rhombifer, which was combined with information from recent genome projects to address this important phylogenetic gap. Obtained sequences grouped closely with CA XIII in phylogenetic analyses. CA II mRNA transcripts were also found in erythrocytes, but found at less than half the levels of CA XIII. Structural analysis suggested similar biochemical activity as the respective mammalian isoforms, with CA XIII being a low activity isoform. Biochemical characterization verified that the majority of CA activity in the erythrocytes was due to a high activity CA II-like isoform; however, titration with copper supported the presence of two CA pools. The CA II-like pool accounted for 90 % of the total activity. To assess potential disparate roles of these isoforms a feeding stress was used to up-regulate CO2 excretion pathways. Significant up-regulation of CA II and the anion exchanger was observed; CA XIII was strongly down-regulated. While these results do not provide insight into the role of CA XIII in the erythrocytes, they do suggest that the presence of two isoforms is not simply a case of physiological redundancy.

  2. Challenges to a molecular approach to prey identification in the Burmese python, Python molurus bivittatus

    Directory of Open Access Journals (Sweden)

    Bryan G. Falk

    2015-11-01

    Full Text Available Molecular approaches to prey identification are increasingly useful in elucidating predator–prey relationships, and we aimed to investigate the feasibility of these methods to document the species identities of prey consumed by invasive Burmese pythons in Florida. We were particularly interested in the diet of young snakes, because visual identification of prey from this size class has proven difficult. We successfully extracted DNA from the gastrointestinal contents of 43 young pythons, as well as from several control samples, and attempted amplification of DNA mini-barcodes, a 130-bp region of COX1. Using a PNA clamp to exclude python DNA, we found that prey DNA was not present in sufficient quality for amplification of this locus in 86% of our samples. All samples from the GI tracts of young pythons contained only hair, and the six samples we were able to identify to species were hispid cotton rats. This suggests that young Burmese pythons prey predominantly on small mammals and that prey diversity among snakes of this size class is low. We discuss prolonged gastrointestinal transit times and extreme gastric breakdown as possible causes of DNA degradation that limit the success of a molecular approach to prey identification in Burmese pythons.

  3. Challenges to a molecular approach to prey identification in the Burmese python, Python molurus bivittatus.

    Science.gov (United States)

    Falk, Bryan G; Reed, Robert N

    2015-01-01

    Molecular approaches to prey identification are increasingly useful in elucidating predator-prey relationships, and we aimed to investigate the feasibility of these methods to document the species identities of prey consumed by invasive Burmese pythons in Florida. We were particularly interested in the diet of young snakes, because visual identification of prey from this size class has proven difficult. We successfully extracted DNA from the gastrointestinal contents of 43 young pythons, as well as from several control samples, and attempted amplification of DNA mini-barcodes, a 130-bp region of COX1. Using a PNA clamp to exclude python DNA, we found that prey DNA was not present in sufficient quality for amplification of this locus in 86% of our samples. All samples from the GI tracts of young pythons contained only hair, and the six samples we were able to identify to species were hispid cotton rats. This suggests that young Burmese pythons prey predominantly on small mammals and that prey diversity among snakes of this size class is low. We discuss prolonged gastrointestinal transit times and extreme gastric breakdown as possible causes of DNA degradation that limit the success of a molecular approach to prey identification in Burmese pythons.

  4. Challenges to a molecular approach to prey identification in the Burmese python, Python molurus bivittatus

    Science.gov (United States)

    Falk, Bryan; Reed, Robert N.

    2015-01-01

    Molecular approaches to prey identification are increasingly useful in elucidating predator–prey relationships, and we aimed to investigate the feasibility of these methods to document the species identities of prey consumed by invasive Burmese pythons in Florida. We were particularly interested in the diet of young snakes, because visual identification of prey from this size class has proven difficult. We successfully extracted DNA from the gastrointestinal contents of 43 young pythons, as well as from several control samples, and attempted amplification of DNA mini-barcodes, a 130-bp region of COX1. Using a PNA clamp to exclude python DNA, we found that prey DNA was not present in sufficient quality for amplification of this locus in 86% of our samples. All samples from the GI tracts of young pythons contained only hair, and the six samples we were able to identify to species were hispid cotton rats. This suggests that young Burmese pythons prey predominantly on small mammals and that prey diversity among snakes of this size class is low. We discuss prolonged gastrointestinal transit times and extreme gastric breakdown as possible causes of DNA degradation that limit the success of a molecular approach to prey identification in Burmese pythons

  5. Rapid microsatellite marker development using next generation pyrosequencing to inform invasive Burmese python -- Python molurus bivittatus -- management

    Science.gov (United States)

    Hunter, Margaret E.; Hart, Kristen M.

    2013-01-01

    Invasive species represent an increasing threat to native ecosystems, harming indigenous taxa through predation, habitat modification, cross-species hybridization and alteration of ecosystem processes. Additionally, high economic costs are associated with environmental damage, restoration and control measures. The Burmese python, Python molurus bivittatus, is one of the most notable invasive species in the US, due to the threat it poses to imperiled species and the Greater Everglades ecosystem. To address population structure and relatedness, next generation sequencing was used to rapidly produce species-specific microsatellite loci. The Roche 454 GS-FLX Titanium platform provided 6616 di-, tri- and tetra-nucleotide repeats in 117,516 sequences. Using stringent criteria, 24 of 26 selected tri- and tetra-nucleotide loci were polymerase chain reaction (PCR) amplified and 18 were polymorphic. An additional six cross-species loci were amplified, and the resulting 24 loci were incorporated into eight PCR multiplexes. Multi-locus genotypes yielded an average of 61% (39%–77%) heterozygosity and 3.7 (2–6) alleles per locus. Population-level studies using the developed microsatellites will track the invasion front and monitor population-suppression dynamics. Additionally, cross-species amplification was detected in the invasive Ball, P. regius, and Northern African python, P. sebae. These markers can be used to address the hybridization potential of Burmese pythons and the larger, more aggressive P. sebae.

  6. Matched regulation of gastrointestinal performance in the Burmese python, Python molurus.

    Science.gov (United States)

    Cox, Christian L; Secor, Stephen M

    2008-04-01

    In Burmese pythons fasting and feeding cause dramatic regulation of gastric acid production and intestinal nutrient uptake. Predictably, other components of their gastrointestinal tract are similarly regulated with each meal. We therefore assessed the matched regulation of gastrointestinal performance by comparing the postprandial activities and capacities of gastric (pepsin), pancreatic (amylase and trypsin) and intestinal (aminopeptidase-N and maltase) enzymes, and intestinal nutrient uptake. Tissue samples were collected from pythons fasted and at 0.25, 0.5, 1, 2, 3, 4, 6, 10 and 15 days following their consumption of rodent meals equaling 25% of snake body mass. With feeding, pythons experience no significant change in stomach mass, whereas both the pancreas and small intestine doubled in mass. Feeding also triggered a depletion of gastric mucosal pepsinogen, a respective 5.7- and 20-fold increase in the peak activities of pancreatic trypsin and amylase, and a respective 2.3- and 5.5-fold increase in the peak activities of intestinal maltase and aminopeptidase-N. Enzyme activities peaked between 2 and 4 days postfeeding and returned to fasting levels by day 10. Independent of digestive stage, python intestine exhibited a proximal to distal decline in enzyme activity. For both sugars and proteins, intestinal capacities for enzyme activity were significantly correlated with nutrient uptake capacities. The concomitant postprandial upregulation of tissue morphology, intestinal nutrient transport rates and enzyme activities illustrate, for the python, the matched regulation of their gastrointestinal performance with each meal.

  7. A multi-organ transcriptome resource for the Burmese Python (Python molurus bivittatus

    Directory of Open Access Journals (Sweden)

    Mockler Todd C

    2011-08-01

    Full Text Available Abstract Background Snakes provide a unique vertebrate system for studying a diversity of extreme adaptations, including those related to development, metabolism, physiology, and venom. Despite their importance as research models, genomic resources for snakes are few. Among snakes, the Burmese python is the premier model for studying extremes of metabolic fluctuation and physiological remodelling. In this species, the consumption of large infrequent meals can induce a 40-fold increase in metabolic rate and more than a doubling in size of some organs. To provide a foundation for research utilizing the python, our aim was to assemble and annotate a transcriptome reference from the heart and liver. To accomplish this aim, we used the 454-FLX sequencing platform to collect sequence data from multiple cDNA libraries. Results We collected nearly 1 million 454 sequence reads, and assembled these into 37,245 contigs with a combined length of 13,409,006 bp. To identify known genes, these contigs were compared to chicken and lizard gene sets, and to all Genbank sequences. A total of 13,286 of these contigs were annotated based on similarity to known genes or Genbank sequences. We used gene ontology (GO assignments to characterize the types of genes in this transcriptome resource. The raw data, transcript contig assembly, and transcript annotations are made available online for use by the broader research community. Conclusion These data should facilitate future studies using pythons and snakes in general, helping to further contribute to the utilization of snakes as a model evolutionary and physiological system. This sequence collection represents a major genomic resource for the Burmese python, and the large number of transcript sequences characterized should contribute to future research in this and other snake species.

  8. Functional changes with feeding in the gastro-intestinal epithelia of the Burmese python (Python molurus).

    Science.gov (United States)

    Helmstetter, Cécile; Reix, Nathalie; T'Flachebba, Mathieu; Pope, Robert K; Secor, Stephen M; Le Maho, Yvon; Lignot, Jean-Hervé

    2009-09-01

    The morphology of the digestive system in fasting and refed Burmese pythons was determined, as well as the localization of the proton (H(+), K(+)-ATPase) and sodium (Na(+), K(+)-ATPase) pumps. In fasting pythons, oxyntopeptic cells located within the fundic glands are typically non-active, with a thick apical tubulovesicular system and numerous zymogen granules. They become active Immediately after feeding but return to a non-active state 3 days after the Ingestion of the prey. The proton pump, expressed throughout the different fasting/feeding states, is either sequestered in the tubulovesicular system in non-active cells or located along the apical digitations extending within the crypt lumen in active cells. The sodium pump is rapidly upregulated in fed animals and is classically located along the baso-lateral membranes of the gastric oxyntopeptic cells. In the Intestine, it is only expressed along the lateral membranes of the enterocytes, i.e., above the lateral spaces and not along the basal side of the cells. Thus, solute transport within the Intestinal lining is mainly achieved through the apical part of the cells and across the lateral spaces while absorbed fat massively crosses the entire height of the cells and flows into the Intercellular spaces. Therefore, in the Burmese python, the gastrointestinal cellular system quickly upregulates after feeding, due to Inexpensive cellular changes, passive mechanisms, and the progressive activation and synthesis of key enzymes such as the sodium pump. This cell plasticity also allows anticipation of the next fasting and feeding periods.

  9. Renal plasticity in response to feeding in the Burmese python, Python molurus bivittatus.

    Science.gov (United States)

    Esbaugh, A J; Secor, S M; Grosell, M

    2015-10-01

    Burmese pythons are sit-and-wait predators that are well adapted to go long periods without food, yet subsequently consume and digest single meals that can exceed their body weight. These large feeding events result in a dramatic alkaline tide that is compensated by a hypoventilatory response that normalizes plasma pH; however, little is known regarding how plasma HCO3(-) is lowered in the days post-feeding. The current study demonstrated that Burmese pythons contain the cellular machinery for renal acid-base compensation and actively remodel the kidney to limit HCO3(-) reabsorption in the post-feeding period. After being fed a 25% body weight meal plasma total CO2 was elevated by 1.5-fold after 1 day, but returned to control concentrations by 4 days post-feeding (d pf). Gene expression analysis was used to verify the presence of carbonic anhydrase (CA) II, IV and XIII, Na(+) H(+) exchanger 3 (NHE3), the Na(+) HCO3(-) co-transporter (NBC) and V-type ATPase. CA IV expression was significantly down-regulated at 3 dpf versus fasted controls. This was supported by activity analysis that showed a significant decrease in the amount of GPI-linked CA activity in isolated kidney membranes at 3 dpf versus fasted controls. In addition, V-type ATPase activity was significantly up-regulated at 3 dpf; no change in gene expression was observed. Both CA II and NHE3 expression was up-regulated at 3 dpf, which may be related to post-prandial ion balance. These results suggest that Burmese pythons actively remodel their kidney after feeding, which would in part benefit renal HCO3(-) clearance.

  10. Programming Python

    National Research Council Canada - National Science Library

    Lutz, Mark

    2006-01-01

    ... . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xiii xxi Part I. The Beginning 1. Introducing Python "And Now for Something Completely Different" Python Philosophy 101 The Life of Python Signs of the Python...

  11. Supersize me: Remains of three white-tailed deer (Odocoileus virginianus) in an invasive Burmese python (Python molurus bivittatus) in Florida

    Science.gov (United States)

    Boback, Scott M.; Snow, Ray W.; Hsu, Teresa; Peurach, Suzanne C.; Dove, Carla J.; Reed, Robert N.

    2016-01-01

    Snakes have become successful invaders in a wide variety of ecosystems worldwide. In southern Florida, USA, the Burmese python (Python molurus bivittatus) has become established across thousands of square kilometers including all of Everglades National Park (ENP). Both experimental and correlative data have supported a relationship between Burmese python predation and declines or extirpations of mid- to large-sized mammals in ENP. In June 2013 a large python (4.32 m snout-vent length, 48.3 kg) was captured and removed from the park. Subsequent necropsy revealed a massive amount of fecal matter (79 cm in length, 6.5 kg) within the snake’s large intestine. A comparative examination of bone, teeth, and hooves extracted from the fecal contents revealed that this snake consumed three white-tailed deer (Odocoileus virginianus). This is the first report of an invasive Burmese python containing the remains of multiple white-tailed deer in its gut. Because the largest snakes native to southern Florida are not capable of consuming even mid-sized mammals, pythons likely represent a novel predatory threat to white-tailed deer in these habitats. This work highlights the potential impact of this large-bodied invasive snake and supports the need for more work on invasive predator-native prey relationships.

  12. Sequencing the genome of the Burmese python (Python molurus bivittatus) as a model for studying extreme adaptations in snakes.

    Science.gov (United States)

    Castoe, Todd A; de Koning, Jason A P; Hall, Kathryn T; Yokoyama, Ken D; Gu, Wanjun; Smith, Eric N; Feschotte, Cédric; Uetz, Peter; Ray, David A; Dobry, Jason; Bogden, Robert; Mackessy, Stephen P; Bronikowski, Anne M; Warren, Wesley C; Secor, Stephen M; Pollock, David D

    2011-07-28

    The Consortium for Snake Genomics is in the process of sequencing the genome and creating transcriptomic resources for the Burmese python. Here, we describe how this will be done, what analyses this work will include, and provide a timeline.

  13. Learning Python

    National Research Council Canada - National Science Library

    Lutz, Mark; Ascher, David

    2004-01-01

    ... . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xv Part I. Getting Started 1. A Python Q&A Session Why Do People Use Python? Is Python a Scripting Language? Okay, But What's the Downside? Who Uses Python Today...

  14. 缅甸蟒脂肪酸分析%Study on the Fatty Acids of Burmese Python (Python molurus bivitattus) Oil

    Institute of Scientific and Technical Information of China (English)

    赵静; 陈琦; 张立岭; 林明栋

    2009-01-01

    20 fatty acids in Burmese python (Python molurus bivitattus) oil were determined by gas chromatography. Unsaturated fatty acids formed 67.5% of total fatty acids, polyunsaturated fatty acids formed 10.3%. The main unsaturated fatty acids are oleic acid (18: 1n), palmitic acid (16: 0), linoleic acid (18: 2n), stearic acid (16: 1n), and palmitoleic acid (16: 1n). Unique fatty acids are docosahexaenoic acid (DHA, 22: 6n) and α-linolenic acid(18: 3n) in the python. The oil of Burmese python has high development and utilization value in medicine and health care.%用气相色谱法测定了缅甸蟒油20种脂肪酸,其中不饱和脂肪酸含量达67.5%,多不饱和脂肪酸含量达10.3%.含量较高的脂肪酸有油酸、棕榈酸、亚油酸、棕榈油酸,特有脂肪酸DHA、α-亚麻酸,并且明显不同于其他蟒和蛇的脂肪酸含量.缅甸蟒油具有重要的药用和保健品开发利用价值.

  15. Prioritizing blood flow: cardiovascular performance in response to the competing demands of locomotion and digestion for the Burmese python, Python molurus.

    Science.gov (United States)

    Secor, Stephen M; White, Scott E

    2010-01-01

    Individually, the metabolic demands of digestion or movement can be fully supported by elevations in cardiovascular performance, but when occurring simultaneously, vascular perfusion may have to be prioritized to either the gut or skeletal muscles. Burmese pythons (Python molurus) experience similar increases in metabolic rate during the digestion of a meal as they do while crawling, hence each would have an equal demand for vascular supply when these two actions are combined. To determine, for the Burmese python, whether blood flow is prioritized when snakes are digesting and moving, we examined changes in cardiac performance and blood flow in response to digestion, movement, and the combination of digestion and movement. We used perivascular blood flow probes to measure blood flow through the left carotid artery, dorsal aorta, superior mesenteric artery and hepatic portal vein, and to calculate cardiac output, heart rate and stroke volume. Fasted pythons while crawling experienced a 2.7- and 3.3-fold increase, respectively, in heart rate and cardiac output, and a 66% decrease in superior mesenteric flow. During the digestion of a rodent meal equaling in mass to 24.7% of the snake's body mass, heart rate and cardiac output increased by 3.3- and 4.4-fold, respectively. Digestion also resulted in respective 11.6- and 14.1-fold increases in superior mesenteric and hepatic portal flow. When crawling while digesting, cardiac output and dorsal aorta flow increased by only 21% and 9%, respectively, a modest increase compared with that when they start to crawl on an empty stomach. Crawling did triggered a significant reduction in blood flow to the digesting gut, decreasing superior mesenteric and hepatic portal flow by 81% and 47%, respectively. When faced with the dual demands of digestion and crawling, Burmese pythons prioritize blood flow, apparently diverting visceral supply to the axial muscles.

  16. Morphological Pulmonary Diffusion Capacity for Oxygen of Burmese Pythons (Python molurus): a Comparison of Animals in Healthy Condition and with Different Pulmonary Infections.

    Science.gov (United States)

    Starck, J M; Weimer, I; Aupperle, H; Müller, K; Marschang, R E; Kiefer, I; Pees, M

    2015-11-01

    A qualitative and quantitative morphological study of the pulmonary exchange capacity of healthy and diseased Burmese pythons (Python molurus) was carried out in order to test the hypothesis that the high morphological excess capacity for oxygen exchange in the lungs of these snakes is one of the reasons why pathological processes extend throughout the lung parenchyma and impair major parts of the lungs before clinical signs of respiratory disease become apparent. Twenty-four Burmese pythons (12 healthy and 12 diseased) were included in the study. A stereology-based approach was used to quantify the lung parenchyma using computed tomography. Light microscopy was used to quantify tissue compartments and the respiratory exchange surface, and transmission electron microscopy was used to measure the thickness of the diffusion barrier. The morphological diffusion capacity for oxygen of the lungs and the anatomical diffusion factor were calculated. The calculated anatomical diffusion capacity was compared with published values for oxygen consumption of healthy snakes, and the degree to which the exchange capacity can be obstructed before normal physiological function is impaired was estimated. Heterogeneous pulmonary infections result in graded morphological transformations of pulmonary parenchyma involving lymphocyte migration into the connective tissue and thickening of the septal connective tissue, increasing thickness of the diffusion barrier and increasing transformation of the pulmonary epithelium into a columnar pseudostratified or stratified epithelium. The transformed epithelium developed by hyperplasia of ciliated cells arising from the tip of the faveolar septa and by hyperplasia of type II pneumocytes. These results support the idea that the lungs have a remarkable overcapacity for oxygen consumption and that the development of pulmonary disease continuously reduces the capacity for oxygen consumption. However, due to the overcapacity of the lungs, this

  17. Pro Python

    CERN Document Server

    Alchin, Marty

    2010-01-01

    You've learned the basics of Python, but how do you take your skills to the next stage? Even if you know enough to be productive, there are a number of features that can take you to the next level in Python. Pro Python explores concepts and features normally left to experimentation, allowing you to be even more productive and creative. In addition to pure code concerns, Pro Python will develop your programming techniques and approaches, which will help make you a better Python programmer. Not only will this book help your code, it will also help you understand and interact with the many establ

  18. Python tutorial

    OpenAIRE

    Rossum, van, E.F.

    1995-01-01

    Python is a simple, yet powerful programming language that bridges the gap between C and shell programming, and is thus ideally suited for ``throw-away programming'' and rapid prototyping. Its syntax is put together from constructs borrowed from a variety of other languages; most prominent are influences from ABC, C, Modula-3 and Icon. The Python interpreter is easily extended with new functions and data types implemented in C. Python is also suitable as an extension language for highly custo...

  19. Learning Python

    CERN Document Server

    Lutz, Mark

    2008-01-01

    With this hands-on book, you can master the fundamentals of the core Python language quickly and efficiently, whether you're new to programming or just new to Python. Each chapter is a self-contained lesson that helps you thoroughly understand a key component of Python. Each chapter also contains Brain Builder, a unique section with practical exercises and review quizzes that let you practice new skills and test your understanding as you go

  20. Programming Python

    CERN Document Server

    Lutz, Mark

    2011-01-01

    If you've mastered Python's fundamentals, you're ready to start using it to get real work done. Programming Python will show you how, with in-depth tutorials on the language's primary application domains: system administration, GUIs, and the Web. You'll also explore how Python is used in databases, networking, front-end scripting layers, text processing, and more. This book focuses on commonly used tools and libraries to give you a comprehensive understanding of Python's many roles in practical, real-world programming. You'll learn language syntax and programming techniques in a clear and co

  1. Learning Python

    CERN Document Server

    Lutz, Mark

    2009-01-01

    Google and YouTube use Python because it's highly adaptable, easy to maintain, and allows for rapid development. If you want to write high-quality, efficient code that's easily integrated with other languages and tools, this hands-on book will help you be productive with Python quickly -- whether you're new to programming or just new to Python. It's an easy-to-follow self-paced tutorial, based on author and Python expert Mark Lutz's popular training course. Each chapter contains a stand-alone lesson on a key component of the language, and includes a unique Test Your Knowledge section with p

  2. Python tutorial

    NARCIS (Netherlands)

    G. van Rossum (Guido)

    1995-01-01

    textabstractPython is a simple, yet powerful programming language that bridges the gap between C and shell programming, and is thus ideally suited for ``throw-away programming'' and rapid prototyping. Its syntax is put together from constructs borrowed from a variety of other languages; most promin

  3. Python tutorial

    NARCIS (Netherlands)

    Rossum, G. van

    1995-01-01

    Python is a simple, yet powerful programming language that bridges the gap between C and shell programming, and is thus ideally suited for ``throw-away programming'' and rapid prototyping. Its syntax is put together from constructs borrowed from a variety of other languages; most prominent are infl

  4. Python tutorial

    NARCIS (Netherlands)

    G. van Rossum (Guido)

    1995-01-01

    textabstractPython is a simple, yet powerful programming language that bridges the gap between C and shell programming, and is thus ideally suited for ``throw-away programming'' and rapid prototyping. Its syntax is put together from constructs borrowed from a variety of other languages; most

  5. Learning Python network programming

    CERN Document Server

    Sarker, M O Faruque

    2015-01-01

    If you're a Python developer or a system administrator with Python experience and you're looking to take your first steps in network programming, then this book is for you. Basic knowledge of Python is assumed.

  6. Consumption of bird eggs by invasive Burmese Pythons in Florida

    Science.gov (United States)

    Dove, Carla J.; Reed, Robert N.; Snow, Ray W.

    2012-01-01

    Burmese Pythons (Python molurus bivittatus or P. bivittatus) have been reported to consume 25 species of adult birds in Everglades National Park, Florida (Dove et al. 2011), but until now no records documented this species eating bird eggs. Here we report three recent cases of bird-egg consumption by Burmese Pythons and discuss egg-eating in basal snakes.

  7. X Python reference manual

    NARCIS (Netherlands)

    K.S. Mullender (Sjoerd)

    1995-01-01

    textabstractThis document describes the built-in types, exceptions, and functions of the X windows extension to Python. It assumes basic knowledge about the Python language and access to the X windows documentation. For an informal introduction to the language, see the Python Tutorial. The Python Re

  8. Mastering Python design patterns

    CERN Document Server

    Kasampalis, Sakis

    2015-01-01

    This book is for Python programmers with an intermediate background and an interest in design patterns implemented in idiomatic Python. Programmers of other languages who are interested in Python can also benefit from this book, but it would be better if they first read some introductory materials that explain how things are done in Python.

  9. X Python reference manual

    NARCIS (Netherlands)

    Mullender, K.S.

    1995-01-01

    This document describes the built-in types, exceptions, and functions of the X windows extension to Python. It assumes basic knowledge about the Python language and access to the X windows documentation. For an informal introduction to the language, see the Python Tutorial. The Python Reference Manu

  10. X Python reference manual

    NARCIS (Netherlands)

    K.S. Mullender (Sjoerd)

    1995-01-01

    textabstractThis document describes the built-in types, exceptions, and functions of the X windows extension to Python. It assumes basic knowledge about the Python language and access to the X windows documentation. For an informal introduction to the language, see the Python Tutorial. The Python

  11. Python bindings for libcloudph++

    OpenAIRE

    Jarecka, Dorota; Arabas, Sylwester; Del Vento, Davide

    2015-01-01

    This technical note introduces the Python bindings for libcloudph++. The libcloudph++ is a C++ library of algorithms for representing atmospheric cloud microphysics in numerical models. The bindings expose the complete functionality of the library to the Python users. The bindings are implemented using the Boost.Python C++ library and use NumPy arrays. This note includes listings with Python scripts exemplifying the use of selected library components. An example solution for using the Python ...

  12. Functional Python programming

    CERN Document Server

    Lott, Steven

    2015-01-01

    This book is for developers who want to use Python to write programs that lean heavily on functional programming design patterns. You should be comfortable with Python programming, but no knowledge of functional programming paradigms is needed.

  13. Learning Python testing

    CERN Document Server

    Arbuckle, Daniel

    2014-01-01

    This book is ideal if you want to learn about the testing disciplines and automated testing tools from a hands-on, conversational guide. You should already know Python and be comfortable with Python 3.

  14. Autonomic control of heart rate during orthostasis and the importance of orthostatic-tachycardia in the snake Python molurus.

    Science.gov (United States)

    Armelin, Vinicius Araújo; da Silva Braga, Victor Hugo; Abe, Augusto Shinya; Rantin, Francisco Tadeu; Florindo, Luiz Henrique

    2014-10-01

    Orthostasis dramatically influences the hemodynamics of terrestrial vertebrates, especially large and elongated animals such as snakes. When these animals assume a vertical orientation, gravity tends to reduce venous return, cardiac filling, cardiac output and blood pressure to the anterior regions of the body. The hypotension triggers physiological responses, which generally include vasomotor adjustments and tachycardia to normalize blood pressure. While some studies have focused on understanding the regulation of these vasomotor adjustments in ectothermic vertebrates, little is known about regulation and the importance of heart rate in these animals during orthostasis. We acquired heart rate and carotid pulse pressure (P PC) in pythons in their horizontal position, and during 30 and 60° inclinations while the animals were either untreated (control) or upon muscarinic cholinoceptor blockade and a double autonomic blockade. Double autonomic blockade completely eradicated the orthostatic-tachycardia, and without this adjustment, the P PC reduction caused by the tilts became higher than that which was observed in untreated animals. On the other hand, post-inclinatory vasomotor adjustments appeared to be of negligible importance in counterbalancing the hemodynamic effects of gravity. Finally, calculations of cardiac autonomic tones at each position revealed that the orthostatic-tachycardia is almost completely elicited by a withdrawal of vagal drive.

  15. Head First Python

    CERN Document Server

    Barry, Paul

    2010-01-01

    Ever wished you could learn Python from a book? Head First Python is a complete learning experience for Python that helps you learn the language through a unique method that goes beyond syntax and how-to manuals, helping you understand how to be a great Python programmer. You'll quickly learn the language's fundamentals, then move onto persistence, exception handling, web development, SQLite, data wrangling, and Google App Engine. You'll also learn how to write mobile apps for Android, all thanks to the power that Python gives you. We think your time is too valuable to waste struggling with

  16. Python bindings for libcloudph++

    CERN Document Server

    Jarecka, Dorota; Del Vento, Davide

    2015-01-01

    This technical note introduces the Python bindings for libcloudph++. The libcloudph++ is a C++ library of algorithms for representing atmospheric cloud microphysics in numerical models. The bindings expose the complete functionality of the library to the Python users. The bindings are implemented using the Boost.Python C++ library and use NumPy arrays. This note includes listings with Python scripts exemplifying the use of selected library components. An example solution for using the Python bindings to access libcloudph++ from Fortran is presented.

  17. Anatomy of the python heart.

    Science.gov (United States)

    Jensen, Bjarke; Nyengaard, Jens R; Pedersen, Michael; Wang, Tobias

    2010-12-01

    The hearts of all snakes and lizards consist of two atria and a single incompletely divided ventricle. In general, the squamate ventricle is subdivided into three chambers: cavum arteriosum (left), cavum venosum (medial) and cavum pulmonale (right). Although a similar division also applies to the heart of pythons, this family of snakes is unique amongst snakes in having intracardiac pressure separation. Here we provide a detailed anatomical description of the cardiac structures that confer this functional division. We measured the masses and volumes of the ventricular chambers, and we describe the gross morphology based on dissections of the heart from 13 ball pythons (Python regius) and one Burmese python (P. molurus). The cavum venosum is much reduced in pythons and constitutes approximately 10% of the cavum arteriosum. We suggest that shunts will always be less than 20%, while other studies conclude up to 50%. The high-pressure cavum arteriosum accounted for approximately 75% of the total ventricular mass, and was twice as dense as the low-pressure cavum pulmonale. The reptile ventricle has a core of spongious myocardium, but the three ventricular septa that separate the pulmonary and systemic chambers--the muscular ridge, the bulbuslamelle and the vertical septum--all had layers of compact myocardium. Pythons, however, have unique pads of connective tissue on the site of pressure separation. Because the hearts of varanid lizards, which also are endowed with pressure separation, share many of these morphological specializations, we propose that intraventricular compact myocardium is an indicator of high-pressure systems and possibly pressure separation.

  18. Python penetration testing essentials

    CERN Document Server

    Mohit

    2015-01-01

    If you are a Python programmer or a security researcher who has basic knowledge of Python programming and want to learn about penetration testing with the help of Python, this book is ideal for you. Even if you are new to the field of ethical hacking, this book can help you find the vulnerabilities in your system so that you are ready to tackle any kind of attack or intrusion.

  19. Python geospatial development essentials

    CERN Document Server

    Bahgat, Karim

    2015-01-01

    This book is ideal for Python programmers who are tasked with or wish to make a special-purpose GIS application. Analysts, political scientists, geographers, and GIS specialists seeking a creative platform to experiment with cutting-edge spatial analysis, but who are still only beginners in Python, will also find this book beneficial. Familiarity with Tkinter application development in Python is preferable but not mandatory.

  20. Learning Python design patterns

    CERN Document Server

    Zlobin, Gennadiy

    2013-01-01

    This book takes a tutorial-based and user-friendly approach to covering Python design patterns. Its concise presentation means that in a short space of time, you will get a good introduction to various design patterns.If you are an intermediate level Python user, this book is for you. Prior knowledge of Python programming is essential. Some knowledge of UML is also required to understand the UML diagrams which are used to describe some design patterns.

  1. Python high performance programming

    CERN Document Server

    Lanaro, Gabriele

    2013-01-01

    An exciting, easy-to-follow guide illustrating the techniques to boost the performance of Python code, and their applications with plenty of hands-on examples.If you are a programmer who likes the power and simplicity of Python and would like to use this language for performance-critical applications, this book is ideal for you. All that is required is a basic knowledge of the Python programming language. The book will cover basic and advanced topics so will be great for you whether you are a new or a seasoned Python developer.

  2. Python pocket reference

    CERN Document Server

    Lutz, Mark

    2010-01-01

    This is the book to reach for when you're coding on the fly and need an answer now. It's an easy-to-use reference to the core language, with descriptions of commonly used modules and toolkits, and a guide to recent changes, new features, and upgraded built-ins -- all updated to cover Python 3.X as well as version 2.6. You'll also quickly find exactly what you need with the handy index. Written by Mark Lutz -- widely recognized as the world's leading Python trainer -- Python Pocket Reference, Fourth Edition, is the perfect companion to O'Reilly's classic Python tutorials, also written by Mark

  3. Python data visualization cookbook

    CERN Document Server

    Milovanovic, Igor

    2013-01-01

    This book is written in a Cookbook style targeted towards an advanced audience. It covers the advanced topics of data visualization in Python.Python Data Visualization Cookbook is for developers that already know about Python programming in general. If you have heard about data visualization but you don't know where to start, then this book will guide you from the start and help you understand data, data formats, data visualization, and how to use Python to visualize data.You will need to know some general programming concepts, and any kind of programming experience will be helpful, but the co

  4. Adventures in Python

    CERN Document Server

    Richardson, Craig

    2015-01-01

    The complete beginner's guide to Python, for young people whowant to start today Adventures in Python is designed for 11-to 15-year oldswho want to teach themselves Python programming, but don't knowwhere to start. Even if you have no programming experience at all,this easy to follow format and clear, simple instruction will getyou up and running quickly. The book walks you through nineprojects that teach you the fundamentals of programming in general,and Python in particular, gradually building your skills until youhave the confidence and ability to tackle your own projects. Videoclips accom

  5. Python for Ecology

    Science.gov (United States)

    Python is a high-level scripting language that is becoming increasingly popular for scientific computing. This all-day workshop is designed to introduce the basics of Python programming to ecologists. Some scripting/programming experience is recommended (e.g. familiarity with R)....

  6. Python library reference

    NARCIS (Netherlands)

    Rossum, G. van

    1995-01-01

    Python is an extensible, interpreted, object-oriented programming language. It supports a wide range of applications, from simple text processing scripts to interactive WWW browsers. While the Python Reference Manual describes the exact syntax and semantics of the language, it does not describe the

  7. Python data analysis

    CERN Document Server

    Idris, Ivan

    2014-01-01

    This book is for programmers, scientists, and engineers who have knowledge of the Python language and know the basics of data science. It is for those who wish to learn different data analysis methods using Python and its libraries. This book contains all the basic ingredients you need to become an expert data analyst.

  8. Python requests essentials

    CERN Document Server

    Chandra, Rakesh Vidya

    2015-01-01

    If you are a Python administrator or developer interested in interacting with web APIs and have a passion for creating your own web applications, this is the book for you. Basic knowledge of Python programming, APIs, and web services will be an advantage.

  9. Python for Ecology

    Science.gov (United States)

    Python is a high-level scripting language that is becoming increasingly popular for scientific computing. This all-day workshop is designed to introduce the basics of Python programming to ecologists. Some scripting/programming experience is recommended (e.g. familiarity with R)....

  10. Scraping EDGAR with Python

    Science.gov (United States)

    Ashraf, Rasha

    2017-01-01

    This article presents Python codes that can be used to extract data from Securities and Exchange Commission (SEC) filings. The Python program web crawls to obtain URL paths for company filings of required reports, such as Form 10-K. The program then performs a textual analysis and counts the number of occurrences of words in the filing that…

  11. Python library reference

    NARCIS (Netherlands)

    G. van Rossum (Guido)

    1995-01-01

    textabstractPython is an extensible, interpreted, object-oriented programming language. It supports a wide range of applications, from simple text processing scripts to interactive WWW browsers. While the Python Reference Manual describes the exact syntax and semantics of the language, it does not

  12. Want Drugs? Use Python

    OpenAIRE

    Nowotka, Michał; Papadatos, George; Davies, Mark; Dedman, Nathan; Hersey, Anne

    2016-01-01

    We describe how Python can be leveraged to streamline the curation, modelling and dissemination of drug discovery data as well as the development of innovative, freely available tools for the related scientific community. We look at various examples, such as chemistry toolkits, machine-learning applications and web frameworks and show how Python can glue it all together to create efficient data science pipelines.

  13. Python in Astronomy 2016

    Science.gov (United States)

    Jenness, Tim; Robitaille, Thomas; Tollerud, Erik; Mumford, Stuart; Cruz, Kelle

    2016-04-01

    The second Python in Astronomy conference will be held from 21-25 March 2016 at the University of Washington eScience Institute in Seattle, WA, USA. Similarly to the 2015 meeting (which was held at the Lorentz Center), we are aiming to bring together researchers, Python developers, users, and educators. The conference will include presentations, tutorials, unconference sessions, and coding sprints. In addition to sharing information about state-of-the art Python Astronomy packages, the workshop will focus on improving interoperability between astronomical Python packages, providing training for new open-source contributors, and developing educational materials for Python in Astronomy. The meeting is therefore not only aimed at current developers, but also users and educators who are interested in being involved in these efforts.

  14. Python in a nutshell

    CERN Document Server

    Martelli, Alex; Holden, Steve

    2016-01-01

    Useful in many roles, from design and prototyping to testing, deployment, and maintenance, Python is consistently ranked among today’s most popular programming languages. The third edition of this practical book provides a quick reference to the language—including Python 3.5, 2.7, and highlights of 3.6—commonly used areas of its vast standard library, and some of the most useful third-party modules and packages. Ideal for programmers with some Python experience, and those coming to Python from other programming languages, this book covers a wide range of application areas, including web and network programming, XML handling, database interactions, and high-speed numeric computing. Discover how Python provides a unique mix of elegance, simplicity, practicality, and sheer power.

  15. Python geospatial development

    CERN Document Server

    Westra, Erik

    2013-01-01

    This is a tutorial style book that will teach usage of Python tools for GIS using simple practical examples and then show you how to build a complete mapping application from scratch. The book assumes basic knowledge of Python. No knowledge of Open Source GIS is required.Experienced Python developers who want to learn about geospatial concepts, work with geospatial data, solve spatial problems, and build mapbased applications.This book will be useful those who want to get up to speed with Open Source GIS in order to build GIS applications or integrate GeoSpatial features into their existing ap

  16. Pro Python System Administration

    CERN Document Server

    Sileika, R

    2010-01-01

    As time goes on, system administrators are presented with increasingly complicated challenges. In the early days, a team of engineers might have had to look after one or two systems. These days, one engineer can administer hundreds or thousands of systems. System administrators are gradually replacing their tools with more advanced and flexible ones. One of the choices is Python. Structurally, Python is a modern, high-level language with a very clean syntax. Python comes with many built-in libraries that can make automation tasks easier. It also has extensive set of third-party libraries and a

  17. Parallel programming with Python

    CERN Document Server

    Palach, Jan

    2014-01-01

    A fast, easy-to-follow and clear tutorial to help you develop Parallel computing systems using Python. Along with explaining the fundamentals, the book will also introduce you to slightly advanced concepts and will help you in implementing these techniques in the real world. If you are an experienced Python programmer and are willing to utilize the available computing resources by parallelizing applications in a simple way, then this book is for you. You are required to have a basic knowledge of Python development to get the most of this book.

  18. NEURON and Python

    Directory of Open Access Journals (Sweden)

    Michael Hines

    2009-01-01

    Full Text Available The NEURON simulation program now allows Python to be used, alone or in combination with NEURON's traditional Hoc interpreter. Adding Python to NEURON has the immediate benefit of making available a very extensive suite of analysis tools written for engineering and science. It also catalyzes NEURON software development by offering users a modern programming tool that is recognized for its flexibility and power to create and maintain complex programs. At the same time, nothing is lost because all existing models written in Hoc, including GUI tools, continue to work without change and are also available within the Python context. An example of the benefits of Python availability is the use of the XML module in implementing NEURON's Import3D and CellBuild tools to read MorphML and NeuroML model specifications.

  19. Python 3 and LSST

    OpenAIRE

    Jenness, Tim

    2016-01-01

    LSST Data Management are migrating their code base to Python 3. This talk provides and overview of this process along with instructions on the process and complications that may arise from doing the conversion.

  20. Python for secret agents

    CERN Document Server

    Lott, Steven F

    2014-01-01

    If you are a Python beginner who is looking to learn the language through interesting projects, this book is for you. A basic knowledge of programming and statistics is beneficial to get the most out of the book.

  1. NEURON and Python.

    Science.gov (United States)

    Hines, Michael L; Davison, Andrew P; Muller, Eilif

    2009-01-01

    The NEURON simulation program now allows Python to be used, alone or in combination with NEURON's traditional Hoc interpreter. Adding Python to NEURON has the immediate benefit of making available a very extensive suite of analysis tools written for engineering and science. It also catalyzes NEURON software development by offering users a modern programming tool that is recognized for its flexibility and power to create and maintain complex programs. At the same time, nothing is lost because all existing models written in Hoc, including graphical user interface tools, continue to work without change and are also available within the Python context. An example of the benefits of Python availability is the use of the xml module in implementing NEURON's Import3D and CellBuild tools to read MorphML and NeuroML model specifications.

  2. Python Introduction and Installation

    Directory of Open Access Journals (Sweden)

    William J. Turkel

    2012-07-01

    Full Text Available This first lesson in our section on dealing with Online Sources is designed to get you and your computer set up to start programming. We will focus on installing the relevant software – all free and reputable – and finally we will help you to get your toes wet with some simple programming that provides immediate results. In this opening module you will install the Python programming language, the Beautiful Soup HTML/XML parser, and a text editor. Screencaps provided here come from Komodo Edit, but you can use any text editor capable of working with Python. Here’s a list of other options: Python Editors. Once everything is installed, you will write your first programs, “Hello World” in Python and HTML.

  3. Python profiling 101

    CERN Document Server

    CERN. Geneva

    2014-01-01

    Python code is much easier to write than C, yet much less efficient. It's often assumed that Python is not performance-oriented and therefore making effort to optimize it doesn't pay off. While in many cases it's true, at a certain moment of a development, especially right before reaching production-ready state, it might turn out that a Python code runs slowly and one needs to find a culprit. In this talk I'll not tell how to make your program faster. Instead, I'll show different techniques to look for the bottlenecks in the code. The presentation will be built around a live demo using real-life Python code.

  4. NEURON and Python

    OpenAIRE

    Michael Hines; Davison, Andrew P.; Eilif Muller

    2009-01-01

    The NEURON simulation program now allows Python to be used, alone or in combination with NEURON's traditional Hoc interpreter. Adding Python to NEURON has the immediate benefit of making available a very extensive suite of analysis tools written for engineering and science. It also catalyzes NEURON software development by offering users a modern programming tool that is recognized for its flexibility and power to create and maintain complex programs. At the same time, nothing is lost because ...

  5. mlpy: Machine Learning Python

    CERN Document Server

    Albanese, Davide; Merler, Stefano; Riccadonna, Samantha; Jurman, Giuseppe; Furlanello, Cesare

    2012-01-01

    mlpy is a Python Open Source Machine Learning library built on top of NumPy/SciPy and the GNU Scientific Libraries. mlpy provides a wide range of state-of-the-art machine learning methods for supervised and unsupervised problems and it is aimed at finding a reasonable compromise among modularity, maintainability, reproducibility, usability and efficiency. mlpy is multiplatform, it works with Python 2 and 3 and it is distributed under GPL3 at the website http://mlpy.fbk.eu.

  6. Manipulating Strings in Python

    Directory of Open Access Journals (Sweden)

    William J. Turkel

    2012-07-01

    Full Text Available This lesson is a brief introduction to string manipulation techniques in Python. Knowing how to manipulate strings plays a crucial role in most text processing tasks. If you’d like to experiment with the following lessons, you can write and execute short programs as we’ve been doing, or you can open up a Python shell / Terminal to try them out on the command line.

  7. Python Switch Statement

    Directory of Open Access Journals (Sweden)

    2008-06-01

    Full Text Available The Python programming language does not have a built in switch/case control structure as found in many other high level programming languages. It is thought by some that this is a deficiency in the language, and the control structure should be added. This paper demonstrates that not only is the control structure not needed, but that the methods available in Python are more expressive than built in case statements in other high level languages.

  8. mlpy: Machine Learning Python

    OpenAIRE

    Albanese, Davide; Visintainer, Roberto; Merler, Stefano; Riccadonna, Samantha; Jurman, Giuseppe; Furlanello, Cesare

    2012-01-01

    mlpy is a Python Open Source Machine Learning library built on top of NumPy/SciPy and the GNU Scientific Libraries. mlpy provides a wide range of state-of-the-art machine learning methods for supervised and unsupervised problems and it is aimed at finding a reasonable compromise among modularity, maintainability, reproducibility, usability and efficiency. mlpy is multiplatform, it works with Python 2 and 3 and it is distributed under GPL3 at the website http://mlpy.fbk.eu.

  9. Python for scientists

    CERN Document Server

    Stewart, John M

    2017-01-01

    Scientific Python is a significant public domain alternative to expensive proprietary software packages. This book teaches from scratch everything the working scientist needs to know using copious, downloadable, useful and adaptable code snippets. Readers will discover how easy it is to implement and test non-trivial mathematical algorithms and will be guided through the many freely available add-on modules. A range of examples, relevant to many different fields, illustrate the language's capabilities. The author also shows how to use pre-existing legacy code (usually in Fortran77) within the Python environment, thus avoiding the need to master the original code. In this new edition, several chapters have been re-written to reflect the IPython notebook style. With an extended index, an entirely new chapter discussing SymPy and a substantial increase in the number of code snippets, researchers and research students will be able to quickly acquire all the skills needed for using Python effectively.

  10. Practical Maya programming with Python

    CERN Document Server

    Galanakis, Robert

    2014-01-01

    ""Practical Maya Programming with Python"" is a practical tutorial packed with plenty of examples and sample projects which guides you through building reusable, independent modules and handling unexpected errors. If you are a developer looking to build a powerful system using Python and Maya's capabilities, then this book is for you. Practical Maya Programming with Python is perfect for intermediate users with basic experience in Python and Maya who want to better their knowledge and skills.

  11. Python and AWS Cookbook

    CERN Document Server

    Garnaat, Mitch

    2011-01-01

    If you intend to use Amazon Web Services (AWS) for remote computing and storage, Python is an ideal programming language for developing applications and controlling your cloud-based infrastructure. This cookbook gets you started with more than two dozen recipes for using Python with AWS, based on the author's boto library. You'll find detailed recipes for working with the S3 storage service as well as EC2, the service that lets you design and build cloud applications. Each recipe includes a code solution you can use immediately, along with a discussion of why and how the recipe works. You al

  12. Twittering with Python

    OpenAIRE

    Andreas SCHREIBER

    2009-01-01

    The use of the Web 2.0 service Twitter is growing rapidly. More and more people, projects, companies, organizations, or others are using Twitter to send out a lot of 140 character messages to the world (i.e., their followers). This talk gives an overview of how to use Python for automating Twitter actions, such as sending tweets, viewing tweets of friends, and managing the list of Twitter friends. The various existing Python libraries for accessing the Twitter API are presented and compar...

  13. Python for finance

    CERN Document Server

    Yan, Yuxing

    2014-01-01

    Python is a free and powerful tool which can be used to build a financial calculator and price options, and can also explain many trading strategies and test various hypotheses. In addition to that, real-world data can be used to run CAPM (Capital Asset Pricing Model), the Fama-French 3-factor model, estimate VaR (Value at Risk), and estimate spread, illiquidity, and liquidity. This book explores the basics of programming in Python. It is a step-by-step tutorial that will teach you, with the help of concise, practical programs, how to run various statistic tests. With this book, you will learn

  14. Developers@CERN Forums: Python

    CERN Document Server

    CERN. Geneva

    2016-01-01

    The Developers@CERN Forums second edition took place at the end of May on the topic of Python. How do developers at CERN interact with Python? Which cutting-edge projects are using Python? What were the highlights of this most recent forum?

  15. Python data science essentials

    CERN Document Server

    Boschetti, Alberto

    2015-01-01

    If you are an aspiring data scientist and you have at least a working knowledge of data analysis and Python, this book will get you started in data science. Data analysts with experience of R or MATLAB will also find the book to be a comprehensive reference to enhance their data manipulation and machine learning skills.

  16. Learning robotics using Python

    CERN Document Server

    Joseph, Lentin

    2015-01-01

    If you are an engineer, a researcher, or a hobbyist, and you are interested in robotics and want to build your own robot, this book is for you. Readers are assumed to be new to robotics but should have experience with Python.

  17. Python reference manual

    NARCIS (Netherlands)

    Rossum, G. van

    1995-01-01

    Python is a simple, yet powerful, interpreted programming language that bridges the gap between C and shell programming, and is thus ideally suited for ``throw-away programming'' and rapid prototyping. Its syntax is put together from constructs borrowed from a variety of other languages; most promin

  18. Python at CERN

    CERN Multimedia

    Witowski, Sebastian

    2017-01-01

    The Large Hadron Collider at CERN is producing 600 million collisions every second. Only 1 in a million collisions is interesting. It requires a fast programming language to analyze and filter this amount of data. Is Python such a language? No, it’s not. Does it mean there is no place for Python in one of the largest scientific facilities in the world? Quite the contrary. The ease of use and a very low learning curve makes Python a perfect programming language for many physicists and other people without the computer science background. CERN does not only produce large amounts of data. The interesting bits of data have to be stored, analyzed, shared and published. Work of many scientists across various research facilities around the world has to be synchronized. This is the area where Python flourishes. And with CERN’s pursuit to create and use open source software, many interesting projects were born. To facilitate the analysis of data, ROOT framework [https://root.cern.ch/] was created. It’s a C++ fra...

  19. Python reference manual

    NARCIS (Netherlands)

    G. van Rossum (Guido)

    1995-01-01

    textabstractPython is a simple, yet powerful, interpreted programming language that bridges the gap between C and shell programming, and is thus ideally suited for ``throw-away programming'' and rapid prototyping. Its syntax is put together from constructs borrowed from a variety of other languages;

  20. Python microgravity accelerometer system

    Science.gov (United States)

    Nijhawan, V.; Arrott, A. P.; Grimes, R. S.

    1989-01-01

    A microgravity accelerometer system developed for use in the Space Shuttle middeck locker is described. The system, known as PYTHON, is a microcomputer-based digital acceleration-measurement system that uses primarily off-the-shelf qualified space hardware and modular software. It can be operated on-board in real time and on the ground either during the flight or post-flight. The sensor head consists of an accelerometer, which measures acceleration in three orthogonal axes, and an internal thermister for temperature compensation; threshold and resolution are better than 0.000001 g. The results of acceleration measurements with PYTHON carried out during parabolic maneuvers aboard the NASA's KC-135 aircraft are presented.

  1. Python algorithms mastering basic algorithms in the Python language

    CERN Document Server

    Hetland, Magnus Lie

    2014-01-01

    Python Algorithms, Second Edition explains the Python approach to algorithm analysis and design. Written by Magnus Lie Hetland, author of Beginning Python, this book is sharply focused on classical algorithms, but it also gives a solid understanding of fundamental algorithmic problem-solving techniques. The book deals with some of the most important and challenging areas of programming and computer science in a highly readable manner. It covers both algorithmic theory and programming practice, demonstrating how theory is reflected in real Python programs. Well-known algorithms and data struc

  2. Mastering object-oriented Python

    CERN Document Server

    Lott, Steven F

    2014-01-01

    This book follows a standard tutorial approach with approximately 750 code samples spread through the 19 chapters. This amounts to over 5,900 lines of code that illustrate each concept.This book is aimed at programmers who have already learned the basics of object-oriented Python and need to write more sophisticated, flexible code that integrates seamlessly with the rest of Python. This book assumes a computer science background, with experience of common Python design patterns.

  3. Beginning Python using Python 2.6 and Python 3.1

    CERN Document Server

    Payne, James

    2010-01-01

    Beginning Python: Using Python 2.6 and Python 3.1 introduces this open source, portable, interpreted, object-oriented programming language that combines remarkable power with clear syntax. This book enables you to quickly create robust, reliable, and reusable Python applications by teaching the basics so you can quickly develop Web and scientific applications, incorporate databases, and master systems tasks on various operating systems, including Linux, MAC OS, and Windows. You’ll get a comprehensive tutorial that guides you from writing simple, basic Python scripts all the way through complex concepts, and also features a reference of the standard modules with examples illustrating how to implement features in the various modules. Plus, the book covers using Python in specific program development domains, such as XML, databases, scientific applications, network programming, and Web development

  4. The spectacle of the ball python (Python regius)

    DEFF Research Database (Denmark)

    Da Silva, Mari-Ann Otkjær; Heegaard, Steffen; Wang, Tobias

    2014-01-01

    A detailed morphological description of the spectacle of the ball python (Python regius) is provided. The eyes of 21 snakes were examined by light microscopy and/or transmission electron microscopy. Additionally, eyes of nine live snakes were examined using optical coherence tomography (OCT...

  5. Pythons in Burma: Short-tailed python (Reptilia: Squamata)

    Science.gov (United States)

    Zug, George R.; Gotte, Steve W.; Jacobs, Jeremy F.

    2011-01-01

    Short-tailed pythons, Python curtus species group, occur predominantly in the Malayan Peninsula, Sumatra, and Borneo. The discovery of an adult female in Mon State, Myanmar, led to a review of the distribution of all group members (spot-mapping of all localities of confirmed occurrence) and an examination of morphological variation in P. brongersmai. The resulting maps demonstrate a limited occurrence of these pythons within peninsular Malaya, Sumatra, and Borneo with broad absences in these regions. Our small samples limit the recognition of regional differentiation in the morphology of P. brongersmai populations; however, the presence of unique traits in the Myanmar python and its strong allopatry indicate that it is a unique genetic lineage, and it is described as Python kyaiktiyo new species.

  6. Python tools for Visual Studio

    CERN Document Server

    Wang, Cathy

    2014-01-01

    This is a hands-on guide that provides exemplary coverage of all the features and concepts related to PTVS.The book is intended for developers who are aiming to enhance their productivity in Python projects with automation tools that Visual Studio provides for the .Net community. Some basic knowledge of Python programming is essential.

  7. Learning Scientific Programming with Python

    Science.gov (United States)

    Hill, Christian

    2016-02-01

    1. Introduction; 2. The core Python language I; 3. Interlude: simple plotting with pylab; 4. The core Python language II; 5. IPython and IPython notebook; 6. NumPy; 7. Matplotlib; 8. SciPy; 9. General scientific programming; Appendix A; Solutions; Index.

  8. Writing faster Python

    CERN Document Server

    CERN. Geneva

    2016-01-01

    Did you know that Python preallocates integers from -5 to 257 ? Reusing them 1000 times, instead of allocating memory for a bigger integer, can save you a couple of milliseconds of code’s execution time. If you want to learn more about this kind of optimizations then, … well, probably this presentation is not for you :) Instead of going into such small details, I will talk about more "sane" ideas for writing faster code. After a very brief overview of how to optimize Python code (rule 1: don’t do this; rule 2: don’t do this yet; rule 3: ok, but what if I really want to do this ?), I will show simple and fast ways of measuring the execution time and finally, discuss examples of how some code structures could be improved. You will see: - What is the fastest way of removing duplicates from a list - How much faster your code is when you reuse the built-in functions instead of trying to reinvent the wheel - What is faster than the good ol’ for loop - If the lookup is faster in a list or a set (and w...

  9. Endocardial fibrosarcoma in a reticulated python (Python reticularis).

    Science.gov (United States)

    Gumber, Sanjeev; Nevarez, Javier G; Cho, Doo-Youn

    2010-11-01

    A female, reticulated python (Python reticularis) of unknown age was presented with a history of lethargy, weakness, and distended coelom. Physical examination revealed severe dystocia and stomatitis. The reticulated python was euthanized due to a poor clinical prognosis. Postmortem examination revealed marked distention of the reproductive tract with 26 eggs (10-12 cm in diameter), pericardial effusion, and a slightly firm, pale tan mass (3-4 cm in diameter) adhered to the endocardium at the base of aorta. Based on histopathologic and transmission electron microscopic findings, the diagnosis of endocardial fibrosarcoma was made.

  10. DAL Algorithms and Python

    CERN Document Server

    Aydemir, Bahar

    2017-01-01

    The Trigger and Data Acquisition (TDAQ) system of the ATLAS detector at the Large Hadron Collider (LHC) at CERN is composed of a large number of distributed hardware and software components. TDAQ system consists of about 3000 computers and more than 25000 applications which, in a coordinated manner, provide the data-taking functionality of the overall system. There is a number of online services required to configure, monitor and control the ATLAS data taking. In particular, the configuration service is used to provide configuration of above components. The configuration of the ATLAS data acquisition system is stored in XML-based object database named OKS. DAL (Data Access Library) allowing to access it's information by C++, Java and Python clients in a distributed environment. Some information has quite complicated structure, so it's extraction requires writing special algorithms. Algorithms available on C++ programming language and partially reimplemented on Java programming language. The goal of the projec...

  11. Python fiber optic seal

    Energy Technology Data Exchange (ETDEWEB)

    Ystesund, K.; Bartberger, J.; Brusseau, C.; Fleming, P.; Insch, K.; Tolk, K.

    1993-08-01

    Sandia National Laboratories has developed a high security fiber optic seal that incorporates tamper resistance features that are not available in commercial fiber optic seals. The Python Seal is a passive fiber optic loop seal designed to give indication of unauthorized entry. The seal includes a fingerprint feature that provides seal identity information in addition to the unique fiber optic pattern created when the seal is installed. The fiber optic cable used for the seal loop is produced with tamper resistant features that increase the difficulty of attacking that component of a seal. A Seal Reader has been developed that will record the seal signature and the fingerprint feature of the seal. A Correlator software program then compares seal images to establish a match or mismatch. SNL is also developing a Polaroid reader to permit hard copies of the seal patterns to be obtained directly from the seal.

  12. Ecological correlates of invasion impact for Burmese pythons in Florida

    Science.gov (United States)

    Reed, R.N.; Willson, J.D.; Rodda, G.H.; Dorcas, M.E.

    2012-01-01

    An invasive population of Burmese pythons (Python molurus bivittatus) is established across several thousand square kilometers of southern Florida and appears to have caused precipitous population declines among several species of native mammals. Why has this giant snake had such great success as an invasive species when many established reptiles have failed to spread? We scored the Burmese python for each of 15 literature-based attributes relative to predefined comparison groups from a diverse range of taxa and provide a review of the natural history and ecology of Burmese pythons relevant to each attribute. We focused on attributes linked to spread and magnitude of impacts rather than establishment success. Our results suggest that attributes related to body size and generalism appeared to be particularly applicable to the Burmese python's success in Florida. The attributes with the highest scores were: high reproductive potential, low vulnerability to predation, large adult body size, large offspring size and high dietary breadth. However, attributes of ectotherms in general and pythons in particular (including predatory mode, energetic efficiency and social interactions) might have also contributed to invasion success. Although establishment risk assessments are an important initial step in prevention of new establishments, evaluating species in terms of their potential for spreading widely and negatively impacting ecosystems might become part of the means by which resource managers prioritize control efforts in environments with large numbers of introduced species.

  13. Adaptive regulation of digestive performance in the genus Python.

    Science.gov (United States)

    Ott, Brian D; Secor, Stephen M

    2007-01-01

    The adaptive interplay between feeding habits and digestive physiology is demonstrated by the Burmese python, which in response to feeding infrequently has evolved the capacity to widely regulate gastrointestinal performance with feeding and fasting. To explore the generality of this physiological trait among pythons, we compared the postprandial responses of metabolism and both intestinal morphology and function among five members of the genus Python: P. brongersmai, P. molurus, P. regius, P. reticulatus and P. sebae. These infrequently feeding pythons inhabit Africa, southeast Asia and Indonesia and vary in body shape from short and stout (P. brongersmai) to long and slender (P. reticulatus). Following the consumption of rodent meals equaling 25% of snake body mass, metabolic rates of pythons peaked at 1.5 days at levels 9.9- to 14.5-fold of standard metabolic rates before returning to prefeeding rates by day 6-8. Specific dynamic action of these meals (317-347 kJ) did not differ among species and equaled 23-27% of the ingested energy. For each species, feeding triggered significant upregulation of intestinal nutrient transport and aminopeptidase-N activity. Concurrently, intestinal mass doubled on average for the five species, in part due to an 85% increase in mucosal thickness, itself a product of 27-59% increases in enterocyte volume. The integrative response of intestinal functional upregulation and tissue hypertrophy enables each of these five python species, regardless of body shape, to modulate intestinal performance to meet the demands of their large infrequent meals.

  14. Python for Google app engine

    CERN Document Server

    Pippi, Massimiliano

    2015-01-01

    If you are a Python developer, whether you have experience in web applications development or not, and want to rapidly deploy a scalable backend service or a modern web application on Google App Engine, then this book is for you.

  15. Beginning Python from novice to professional

    CERN Document Server

    Hetland, Magnus Lie

    2005-01-01

    ""Beginning Python: From Novice to Professional"" is the most comprehensive book on the Python ever written. Based on ""Practical Python,"" this newly revised book is both an introduction and practical reference for a swath of Python-related programming topics, including addressing language internals, database integration, network programming, and web services. Advanced topics, such as extending Python and packaging/distributing Python applications, are also covered. Ten different projects illustrate the concepts introduced in the book. You will learn how to create a P2P file-sharing applicati

  16. Myiasis by Megaselia scalaris (Diptera: Phoridae) in a python affected by pulmonitis.

    Science.gov (United States)

    Vanin, S; Mazzariol, S; Menandro, M L; Lafisca, A; Turchetto, M

    2013-01-01

    Myiases are caused by the presence of maggots in vertebrate tissues and organs. Myiases have been studied widely in humans, farm animals, and pets, whereas reports of myiasis in reptiles are scarce. We describe a case of myiasis caused by the Megaselia scalaris (Loew) in an Indian python (Python molurus bivittatus, Kuhl) (Ophida: Boidae). The python, 15 yr old, born and reared in a terrarium in the mainland of Venice (Italy), was affected by diffuse, purulent pneumonia caused by Burkholderia cepacia. The severe infestation of maggots found in the lungs during an autopsy indicated at a myiasis.

  17. Building machine learning systems with Python

    CERN Document Server

    Coelho, Luis Pedro

    2015-01-01

    This book primarily targets Python developers who want to learn and use Python's machine learning capabilities and gain valuable insights from data to develop effective solutions for business problems.

  18. Algorithmic synthesis using Python compiler

    Science.gov (United States)

    Cieszewski, Radoslaw; Romaniuk, Ryszard; Pozniak, Krzysztof; Linczuk, Maciej

    2015-09-01

    This paper presents a python to VHDL compiler. The compiler interprets an algorithmic description of a desired behavior written in Python and translate it to VHDL. FPGA combines many benefits of both software and ASIC implementations. Like software, the programmed circuit is flexible, and can be reconfigured over the lifetime of the system. FPGAs have the potential to achieve far greater performance than software as a result of bypassing the fetch-decode-execute operations of traditional processors, and possibly exploiting a greater level of parallelism. This can be achieved by using many computational resources at the same time. Creating parallel programs implemented in FPGAs in pure HDL is difficult and time consuming. Using higher level of abstraction and High-Level Synthesis compiler implementation time can be reduced. The compiler has been implemented using the Python language. This article describes design, implementation and results of created tools.

  19. OpenCL programming using Python syntax

    OpenAIRE

    Massimo Di Pierro

    2013-01-01

    We describe ocl, a Python library built on top of p yOpenCL and numpy. It allows programming GPU devices using Python. Python functions which ar e marked up using the provided decorator, are converted into C99/OpenCL and compil ed using the JIT at runtime. This approach lowers the barrier to entry to programming GPU devices since it requires only Python syntax and no external compilation or linkin g steps. The resulting Pyth...

  20. Hemodynamic effects of python neuropeptide gamma in the anesthetized python, Python regius.

    Science.gov (United States)

    Skovgaard, Nini; Galli, Gina; Taylor, Edwin W; Conlon, J Michael; Wang, Tobias

    2005-05-15

    The effects of python neuropeptide gamma (NPgamma) on hemodynamic parameters have been investigated in the anesthetized ball python (Python regius). Bolus intra-arterial injections of synthetic python NPgamma (1-300 pmol kg-1) produced a dose-dependent decrease in systemic arterial blood pressure (Psys) concomitant with increases in systemic vascular conductance (Gsys), total cardiac output and stroke volume, but only minor effects on heart rate. The peptide had no significant effect on pulmonary arterial blood pressure (Ppul) and caused only a small increase in pulmonary conductance (Gpul) at the highest dose. In the systemic circulation, the potency of the NK1 receptor-selective agonist [Sar9,Met(0(2))11] substance P was >100-fold greater than the NK2 receptor-selective agonist [betaAla8] neurokinin A-(4-10)-peptide suggesting that the python cardiovascular system is associated with a receptor that resembles the mammalian NK1 receptor more closely than the NK2 receptor. Administration of the inhibitor of nitric oxide synthesis, L-nitro-arginine-methylester (L-NAME; 150 mg kg-1), resulted in a significant (Ppython, but neither nitric oxide nor prostaglandins mediate the vasodilatory action of NPgamma.

  1. Learning Python with Raspberry Pi

    CERN Document Server

    Bradbury, Alex

    2014-01-01

    The must-have companion guide to the Raspberry Pi User Guide! Raspberry Pi chose Python as its teaching language of choice to encourage a new generation of programmers to learn how to program. This approachable book serves as an ideal resource for anyone wanting to use Raspberry Pi to learn to program and helps you get started with the Python programming language. Aimed at first-time developers with no prior programming language assumed, this beginner book gets you up and running.Covers variables, loops, and functionsAddresses 3D graphics programmingWalks you through programming MinecraftZero

  2. Python in the Cling World

    Science.gov (United States)

    Lavrijsen, W.

    2015-12-01

    The language improvements in C++11/14 greatly reduce the amount of boilerplate code required and allow resource ownership to be clarified in interfaces. On top, the Cling C++ interpreter brings a truly interactive experience and real dynamic behavior to the language. Taken together, these developments bring C++ much closer to Python in ability, allowing the combination of PyROOT/cppyy and Cling to integrate the two languages on a new level. This paper describes the current state of the art, including cross-language callbacks, automatic template instantiations, and the ability to use Python from Cling.

  3. Marsh rabbit mortalities tie pythons to the precipitous decline of mammals in the Everglades

    Science.gov (United States)

    McCleery, Robert A.; Sovie, Adia; Reed, Robert N.; Cunningham, Mark W.; Hunter, Margaret E.; Hart, Kristen M.

    2015-01-01

    To address the ongoing debate over the impact of invasive species on native terrestrial wildlife, we conducted a large-scale experiment to test the hypothesis that invasive Burmese pythons (Python molurus bivittatus) were a cause of the precipitous decline of mammals in Everglades National Park (ENP). Evidence linking pythons to mammal declines has been indirect and there are reasons to question whether pythons, or any predator, could have caused the precipitous declines seen across a range of mammalian functional groups. Experimentally manipulating marsh rabbits, we found that pythons accounted for 77% of rabbit mortalities within 11 months of their translocation to ENP and that python predation appeared to preclude the persistence of rabbit populations in ENP. On control sites, outside of the park, no rabbits were killed by pythons and 71% of attributable marsh rabbit mortalities were classified as mammal predations. Burmese pythons pose a serious threat to the faunal communities and ecological functioning of the Greater Everglades Ecosystem, which will probably spread as python populations expand their range.

  4. Python pocket reference, version 2.4

    CERN Document Server

    Lutz, Mark

    2005-01-01

    Python is optimized for quality, productivity, portability, and integration. Hundreds of thousands of Python developers around the world rely on Python for general-purpose tasks, Internet scripting, systems programming, user interfaces, and product customization. Available on all major computing platforms, including commercial versions of Unix, Linux, Windows, and Mac OS X, Python is portable, powerful and remarkable easy to use. With its convenient, quick-reference format, Python Pocket Reference, 3rd Edition is the perfect on-the-job reference. More importantly, it's now been refreshed

  5. Imagining a Stata / Python Combination

    Science.gov (United States)

    Fiedler, James

    2012-01-01

    There are occasions when a task is difficult in Stata, but fairly easy in a more general programming language. Python is a popular language for a range of uses. It is easy to use, has many high ]quality packages, and programs can be written relatively quickly. Is there any advantage in combining Stata and Python within a single interface? Stata already offers support for user-written programs, which allow extensive control over calculations, but somewhat less control over graphics. Also, except for specifying output, the user has minimal programmatic control over the user interface. Python can be used in a way that allows more control over the interface and graphics, and in so doing provide a roundabout method for satisfying some user requests (e.g., transparency levels in graphics and the ability to clear the results window). My talk will explore these ideas, present a possible method for combining Stata and Python, and give examples to demonstrate how this combination might be useful.

  6. AIPY: Astronomical Interferometry in PYthon

    Science.gov (United States)

    Parsons, Aaron

    2016-09-01

    AIPY collects together tools for radio astronomical interferometry. In addition to pure-python phasing, calibration, imaging, and deconvolution code, this package includes interfaces to MIRIAD (ascl:1106.007) and HEALPix (ascl:1107.018), and math/fitting routines from SciPy.

  7. Learning scientific programming with Python

    CERN Document Server

    Hill, Christian

    2015-01-01

    Learn to master basic programming tasks from scratch with real-life scientifically relevant examples and solutions drawn from both science and engineering. Students and researchers at all levels are increasingly turning to the powerful Python programming language as an alternative to commercial packages and this fast-paced introduction moves from the basics to advanced concepts in one complete volume, enabling readers to quickly gain proficiency. Beginning with general programming concepts such as loops and functions within the core Python 3 language, and moving onto the NumPy, SciPy and Matplotlib libraries for numerical programming and data visualisation, this textbook also discusses the use of IPython notebooks to build rich-media, shareable documents for scientific analysis. Including a final chapter introducing challenging topics such as floating-point precision and algorithm stability, and with extensive online resources to support advanced study, this textbook represents a targeted package for students...

  8. Counting Word Frequencies with Python

    Directory of Open Access Journals (Sweden)

    William J. Turkel

    2012-07-01

    Full Text Available Your list is now clean enough that you can begin analyzing its contents in meaningful ways. Counting the frequency of specific words in the list can provide illustrative data. Python has an easy way to count frequencies, but it requires the use of a new type of variable: the dictionary. Before you begin working with a dictionary, consider the processes used to calculate frequencies in a list.

  9. Steering object-oriented computations with Python

    Energy Technology Data Exchange (ETDEWEB)

    Yang, T.-Y.B.; Dubois, P.F.; Furnish, G. [Lawrence Livermore National Lab., CA (United States); Beazley, D.M. [Utah Univ., Salt Lake City, UT (United States). Dept. of Computer Science

    1996-10-01

    We have described current approaches and future plans for steering C++ application, running Python on parallel platforms, and combination of Tk interface and Python interpreter in steering computations. In addition, there has been significant enhancement in the Gist module. Tk mega widgets has been implemented for a few physics applications. We have also written Python interface to SIJLO, a data storage package used as an interface to a visualization system named MeshTv. Python is being used to control large-scale simulations (molecular dynamics in particular) running on the CM-5 and T3D at LANL as well. A few other code development projects at LLNL are either using or considering Python as their steering shells. In summary, the merits of Python have been appreciated by more and more people in the scientific computation community.

  10. Programming ArcGIS with Python cookbook

    CERN Document Server

    Pimpler, Eric

    2015-01-01

    Programming ArcGIS with Python Cookbook, Second Edition, is written for GIS professionals who wish to revolutionize their ArcGIS workflow with Python. Whether you are new to ArcGIS or a seasoned professional, you almost certainly spend time each day performing various geoprocessing tasks. This book will teach you how to use the Python programming language to automate these geoprocessing tasks and make you a more efficient and effective GIS professional.

  11. Implementing Python for DrRacket

    OpenAIRE

    Ramos, Pedro Palma; Leitão, António Menezes

    2014-01-01

    The Python programming language is becoming increasingly popular in a variety of areas, most notably among novice programmers. On the other hand, Racket and other Scheme dialects are considered excellent vehicles for introducing Computer Science concepts. This paper presents an implementation of Python for Racket and the DrRacket IDE. This allows Python programmers to use Racket libraries and vice versa, as well as using DrRacket's pedagogic features. In particular, it allows architects and d...

  12. Creating and Viewing HTML Files with Python

    Directory of Open Access Journals (Sweden)

    William J. Turkel

    2012-07-01

    Full Text Available This lesson uses Python to create and view an HTML file. If you write programs that output HTML, you can use any browser to look at your results. This is especially convenient if your program is automatically creating hyperlinks or graphic entities like charts and diagrams. Here you will learn how to create HTML files with Python scripts, and how to use Python to automatically open an HTML file in Firefox.

  13. TensorLy: Tensor Learning in Python

    OpenAIRE

    Kossaifi, Jean; Panagakis, Yannis; Pantic, Maja

    2016-01-01

    Tensor methods are gaining increasing traction in machine learning. However, there are scant to no resources available to perform tensor learning and decomposition in Python. To answer this need we developed TensorLy. TensorLy is a state of the art general purpose library for tensor learning. Written in Python, it aims at following the same standard adopted by the main projects of the Python scientific community and fully integrating with these. It allows for fast and straightforward tensor d...

  14. Homing of invasive Burmese pythons in South Florida: evidence for map and compass senses in snakes

    Science.gov (United States)

    Pittman, Shannon E.; Hart, Kristen M.; Cherkiss, Michael S.; Snow, Ray W.; Fujisaki, Ikuko; Mazzotti, Frank J.; Dorcas, Michael E.

    2014-01-01

    Navigational ability is a critical component of an animal's spatial ecology and may influence the invasive potential of species. Burmese pythons (Python molurus bivittatus) are apex predators invasive to South Florida. We tracked the movements of 12 adult Burmese pythons in Everglades National Park, six of which were translocated 21–36 km from their capture locations. Translocated snakes oriented movement homeward relative to the capture location, and five of six snakes returned to within 5 km of the original capture location. Translocated snakes moved straighter and faster than control snakes and displayed movement path structure indicative of oriented movement. This study provides evidence that Burmese pythons have navigational map and compass senses and has implications for predictions of spatial spread and impacts as well as our understanding of reptile cognitive abilities.

  15. The phenotypic flexibility of the visceral organs of pythons during digestion revealed by modern imaging techniques

    DEFF Research Database (Denmark)

    Hansen, Kasper; Lauridsen, Henrik; Nielsen, Tobias Wang

    the visceral organs and intestines. Fasting Burmese pythons (Python molurus) were scanned before and at 2, 16, 24, 40, 48, 72 and 132 hours after ingestion of one rat. Acquired images revealed a gradual disappearance of the meal accompanied by an overall expansion of the intestine, shrinking of the gallbladder......, and a 30% increase in heart volume. These immediate responses following ingestion are consistent with previous invasive studies of pythons. In conclusion, our study showed that MRI and CT are capable to repeatedly and non-invasively image the phenotypic flexibility of internal organs in vertebrates.......Pythons, renowned for their abilities to fast for manybmonths and ingest very large meals, exhibit extreme physiological adaptations to their “sit-and-wait predator” lifestyle. In particular, the size and function of their visceral organs are rapidly up- and downregulated during the transitions...

  16. The phenotypic flexibility of the visceral organs of pythons during digestion revealed by modern imaging techniques

    DEFF Research Database (Denmark)

    Hansen, Kasper; Lauridsen, Henrik; Nielsen, Tobias Wang

    Pythons, renowned for their abilities to fast for manybmonths and ingest very large meals, exhibit extreme physiological adaptations to their “sit-and-wait predator” lifestyle. In particular, the size and function of their visceral organs are rapidly up- and downregulated during the transitions...... the visceral organs and intestines. Fasting Burmese pythons (Python molurus) were scanned before and at 2, 16, 24, 40, 48, 72 and 132 hours after ingestion of one rat. Acquired images revealed a gradual disappearance of the meal accompanied by an overall expansion of the intestine, shrinking of the gallbladder......, and a 30% increase in heart volume. These immediate responses following ingestion are consistent with previous invasive studies of pythons. In conclusion, our study showed that MRI and CT are capable to repeatedly and non-invasively image the phenotypic flexibility of internal organs in vertebrates....

  17. Solve the Master Equation in Python

    CERN Document Server

    Fan, Wei; Chen, Bing; Ye, Qianqian

    2011-01-01

    A brief introduction to the Python computing environment is given. By solving the master equation encountered in quantum transport, we give an example of how to solve the ODE problems in Python. The ODE solvers used are the ZVODE routine in Scipy and the bsimp solver in GSL. For the former, the equation can be in its complex-valued form, while for the latter, it has to be rewritten to a real-valued form. The focus is on the detailed workflow of the implementation process, rather than on the syntax of the python language, with the hope to help readers simulate their own models in Python.

  18. Python for Unix and Linux system administration

    CERN Document Server

    Gift, Noah

    2007-01-01

    Python is an ideal language for solving problems, especially in Linux and Unix networks. With this pragmatic book, administrators can review various tasks that often occur in the management of these systems, and learn how Python can provide a more efficient and less painful way to handle them. Each chapter in Python for Unix and Linux System Administration presents a particular administrative issue, such as concurrency or data backup, and presents Python solutions through hands-on examples. Once you finish this book, you'll be able to develop your own set of command-line utilities with Pytho

  19. Computed tomography of ball pythons (Python regius) in curled recumbency.

    Science.gov (United States)

    Hedley, Joanna; Eatwell, Kevin; Schwarz, Tobias

    2014-01-01

    Anesthesia and tube restraint methods are often required for computed tomography (CT) of snakes due to their natural tendency to curl up. However, these restraint methods may cause animal stress. The aim of this study was to determine whether the CT appearance of the lungs differs for ball pythons in a curled position vs. tube restraint. Whole body CT was performed on ten clinically healthy ball pythons, first in curled and then in straight positions restrained in a tube. Curved multiplanar reformatted (MPR) lung images from curled position scans were compared with standard MPR lung images from straight position scans. Lung attenuation and thickness were measured at three locations for each scan. Time for positioning and scanning was 12 ± 5 min shorter for curled snakes compared to tube restraint. Lung parenchyma thickness and attenuation declined from cranial to caudal on both straight and curled position images. Mean lung parenchyma thickness was greater in curled images at locations 1 (P = 0.048) and 3 (P = 0.044). Mean lung parenchyma thickness decreased between location 1 and 2 by 86-87% (straight: curled) and between location 1 and 3 by 51-50% (straight: curled). Mean lung attenuation at location 1 was significantly greater on curled position images than tube restraint images (P = 0.043). Findings indicated that CT evaluation of the lungs is feasible for ball pythons positioned in curled recumbency if curved MPR is available. However, lung parenchyma thickness and attenuation in some locations may vary from those acquired using tube restraint.

  20. Internationalization and Localization in Python

    CERN Document Server

    CERN. Geneva

    2016-01-01

    Internationalization and Localization are increasingly important in an interconnected world. Regardless of that, developers tend to treat them as secondary issues, very often choosing to address them properly when it's already too late. The fact that most programming language standard libraries choose to ignore the matter doesn't help either. In this talk we will present some useful Python libraries and tools that can help you internationalize and localize your code with minimal effort. We will also describe some common pitfalls and problems.

  1. Extending and embedding the Python interpreter

    NARCIS (Netherlands)

    G. van Rossum (Guido)

    1995-01-01

    textabstractPython is an interpreted, object-oriented programming language. This document describes how to write modules in C or C++ to extend the Python interpreter with new modules. Those modules can define new functions but also new object types and their methods. The document also describes h

  2. Extending and embedding the Python interpreter

    NARCIS (Netherlands)

    Rossum, G. van

    1995-01-01

    Python is an interpreted, object-oriented programming language. This document describes how to write modules in C or C++ to extend the Python interpreter with new modules. Those modules can define new functions but also new object types and their methods. The document also describes how to embed

  3. Desarrollo CUDA en Java y Python

    OpenAIRE

    Pérez Sánchez, José Alejandro

    2013-01-01

    Análisis de desarrollo paralelo CUDA en lenguajes Java y Python, utilizando JCuda, RootBeer, PyCuda y Anaconda Accelerate. Anàlisi de desenvolupament paral·lel CUDA en llenguatges Java i Python, utilitzant JCuda, RootBeer, PyCuda i Anaconda Accelerate. Bachelor thesis for the Computer science program on Computer architecture and operating systems.

  4. pyMOOGi - python wrapper for MOOG

    Science.gov (United States)

    Adamow, Monika M.

    2017-06-01

    pyMOOGi is a python wrapper for MOOG. It allows to use MOOG in a classical, interactive way, but with all graphics handled by python libraries. Some MOOG features have been redesigned, like plotting with abfind driver. Also, new funtions have been added, like automatic rescaling of stellar spectrum for synth driver. pyMOOGi is an open source project.

  5. Extending and embedding the Python interpreter

    NARCIS (Netherlands)

    G. van Rossum (Guido)

    1995-01-01

    textabstractPython is an interpreted, object-oriented programming language. This document describes how to write modules in C or C++ to extend the Python interpreter with new modules. Those modules can define new functions but also new object types and their methods. The document also describes

  6. Learning selenium testing tools with Python

    CERN Document Server

    Gundecha, Unmesh

    2014-01-01

    If you are a quality testing professional, or a software or web application developer looking to create automation test scripts for your web applications, with an interest in Python, then this is the perfect guide for you. Python developers who need to do Selenium testing need not learn Java, as they can directly use Selenium for testing with this book.

  7. Development of hemipenes in the ball python snake Python regius.

    Science.gov (United States)

    Leal, Francisca; Cohn, Martin J

    2015-01-01

    Within amniotes, external copulatory organs have undergone extensive morphological diversification. One of the most extreme examples is squamate (lizards and snakes) hemipenes, which are paired copulatory organs that extend from the lateral margins of the cloaca. Here, we describe the development of hemipenes in a basal snake, the ball python (Python regius). Snake hemipenes arise as a pair of lateral swellings on either side of the caudal part of the cloaca, and these paired outgrowths persist to form the left and right hemipenes. In non-squamate amniotes, external genitalia form from paired swellings that arise on the anterior side of the cloaca, which then fuse medially to form a single genital tubercle, the anlagen of the penis or clitoris. Whereas in non-squamate amniotes, Sonic hedgehog (Shh)-expressing cells of the cloacal endoderm form the urethral or sulcus epithelium and are required for phallus outgrowth, the hemipenes of squamates lack an endodermal contribution, and the sulcus does not express Shh. Thus, snake hemipenes differ from the genital tubercles of non-squamate amniotes both in their embryonic origins and in at least part of patterning mechanisms, which raises the possibility that hemipenes may not be direct homologs of the unpaired amniote penis. Nonetheless, we find that some developmental genes show similar expression patterns in snake hemipenes buds and non-squamate genital tubercles, suggesting that homologous developmental mechanisms are involved in aspects of external genital development across amniotes, even when these structures may have different developmental origins and may have arisen independently during evolution.

  8. Python : the holy grail of programming

    CERN Multimedia

    2006-01-01

    From 3 to 5 July, CERN hosted the fifth EuroPython Conference bringing together 300 users of Python, an open source programming language, which is more and more appreciated, especially at CERN. The local organisation of Euopython 2006 was managed by a small team from the PH/SFT group. Above, David Quarrie presenting the use of Python in Atlas analyses. If you visited Building 40 at the beginning of July, you may have come across a long orange and yellow snake. This had no relation with the Football World Championship! It was just the mascot of the fifth EuroPython Conference that saw almost 300 software developers, designers and business people gathering at CERN for the annual meeting of the European Python community. Python is an open source programming language actively used in industry and academia for a wide variety of purposes. As CERN decided to host this conference, it is perhaps not surprising to learn that Python is increasingly used in our Laboratory in both computing and physics application domai...

  9. Python erythrocytes are resistant to α-hemolysin from Escherichia coli.

    Science.gov (United States)

    Larsen, Casper K; Skals, Marianne; Wang, Tobias; Cheema, Muhammad U; Leipziger, Jens; Praetorius, Helle A

    2011-12-01

    α-Hemolysin (HlyA) from Escherichia coli lyses mammalian erythrocytes by creating nonselective cation pores in the membrane. Pore insertion triggers ATP release and subsequent P2X receptor and pannexin channel activation. Blockage of either P2X receptors or pannexin channels reduces HlyA-induced hemolysis. We found that erythrocytes from Python regius and Python molurus are remarkably resistant to HlyA-induced hemolysis compared to human and Trachemys scripta erythrocytes. HlyA concentrations that induced maximal hemolysis of human erythrocytes did not affect python erythrocytes, but increasing the HlyA concentration 40-fold did induce hemolysis. Python erythrocytes were more resistant to osmotic stress than human erythrocytes, but osmotic stress tolerance per se did not confer HlyA resistance. Erythrocytes from T. scripta, which showed higher osmotic resistance than python erythrocytes, were as susceptible to HlyA as human erythrocytes. Therefore, we tested whether python erythrocytes lack the purinergic signalling known to amplify HlyA-induced hemolysis in human erythrocytes. P. regius erythrocytes increased intracellular Ca²⁺ concentration and reduced cell volume when exposed to 3 mM ATP, indicating the presence of a P2X₇-like receptor. In addition, scavenging extracellular ATP or blocking P2 receptors or pannexin channels reduced the HlyA-induced hemolysis. We tested whether the low HlyA sensitivity resulted from low affinity of HlyA to the python erythrocyte membrane. We found comparable incorporation of HlyA into human and python erythrocyte membranes. Taken together, the remarkable HlyA resistance of python erythrocytes was not explained by increased osmotic resistance, lack of purinergic hemolysis amplification, or differences in HlyA affinity.

  10. Beginning programming with Python for dummies

    CERN Document Server

    Mueller, John Paul

    2014-01-01

    Learn Python-the fun and easy way-and get in the programming game today! Python is one of the fastest growing programming languages, and no wonder. It requires three to five times less time than developing in Java, is a great building block for learning both procedural and object-oriented programming concepts, and is an ideal language for data analysis. Beginning Programming with Python For Dummies is the perfect guide to this dynamic and powerful programming language-even if you''ve never coded before! Author John Paul Mueller draws on his vast programming knowledge and experience to guide yo

  11. Building probabilistic graphical models with Python

    CERN Document Server

    Karkera, Kiran R

    2014-01-01

    This is a short, practical guide that allows data scientists to understand the concepts of Graphical models and enables them to try them out using small Python code snippets, without being too mathematically complicated. If you are a data scientist who knows about machine learning and want to enhance your knowledge of graphical models, such as Bayes network, in order to use them to solve real-world problems using Python libraries, this book is for you. This book is intended for those who have some Python and machine learning experience, or are exploring the machine learning field.

  12. Python based high-level synthesis compiler

    Science.gov (United States)

    Cieszewski, Radosław; Pozniak, Krzysztof; Romaniuk, Ryszard

    2014-11-01

    This paper presents a python based High-Level synthesis (HLS) compiler. The compiler interprets an algorithmic description of a desired behavior written in Python and map it to VHDL. FPGA combines many benefits of both software and ASIC implementations. Like software, the mapped circuit is flexible, and can be reconfigured over the lifetime of the system. FPGAs therefore have the potential to achieve far greater performance than software as a result of bypassing the fetch-decode-execute operations of traditional processors, and possibly exploiting a greater level of parallelism. Creating parallel programs implemented in FPGAs is not trivial. This article describes design, implementation and first results of created Python based compiler.

  13. Pyomo optimization modeling in Python

    CERN Document Server

    Hart, William E; Watson, Jean-Paul; Woodruff, David L; Hackebeil, Gabriel A; Nicholson, Bethany L; Siirola, John D

    2017-01-01

    This book provides a complete and comprehensive guide to Pyomo (Python Optimization Modeling Objects) for beginning and advanced modelers, including students at the undergraduate and graduate levels, academic researchers, and practitioners. Using many examples to illustrate the different techniques useful for formulating models, this text beautifully elucidates the breadth of modeling capabilities that are supported by Pyomo and its handling of complex real-world applications. This second edition provides an expanded presentation of Pyomo’s modeling capabilities, providing a broader description of the software that will enable the user to develop and optimize models. Introductory chapters have been revised to extend tutorials; chapters that discuss advanced features now include the new functionalities added to Pyomo since the first edition including generalized disjunctive programming, mathematical programming with equilibrium constraints, and bilevel programming. Pyomo is an open source software package fo...

  14. A Sound Project Using Python

    Directory of Open Access Journals (Sweden)

    Dhananjay Sharma,

    2014-05-01

    Full Text Available This paper provides the implementation of various digital audio effects (DAFXs as a combination of user defined parameters and input sound signal.An approach to implement various effects like delay based effects, spatial effects, time varying effects and modulators is provided.A unique listening environment is provided using 3-D spatialization and localization, simulated surround sound, dialogue normalisation, dynamic range control and down-mixing.An attempt has also been made for music and voice separation to provide karaoke effect to the sound. All the implementations are provided in python which is widely adopted, open source and general purpose programming language and has a vast array ofcode libraries and development tools, and integrates well with many other programming languages, frameworks and musical applications.

  15. Test-beam with Python

    CERN Document Server

    CERN. Geneva

    2016-01-01

    The talk will show the current implementation of the software tool developed by Silab (Bonn) and Oxford University to analyze test beam data with Mimosa telescope. Data collected from the telescope are merged with hits recorded on pixel detectors with a FE-I4 chips, the official read-out chip of the Atlas Pixel Detector. The software tool used to collect data, pyBAR, is developed with Python as well. The test-beam analysis tool parses the data-sets, recreates the tracks, aligns the telescope planes and allows to investigate the detectors spatial properties with high resolution. This has just allowed to study the properties of brand new devices that stand as possible candidate to replace the current pixel detector in Atlas.

  16. Python-CPL: Python interface for the ESO Common Pipeline Library

    Science.gov (United States)

    Streicher, O.

    2016-12-01

    Python-CPL is a framework to configure and execute pipeline recipes written with the Common Pipeline Library (CPL) (ascl:1402.010) with Python2 or Python3. The input, calibration and output data can be specified as FITS files or as astropy.io.fits objects in memory. The package is used to implement the MUSE pipeline in the AstroWISE data management system.

  17. Python for probability, statistics, and machine learning

    CERN Document Server

    Unpingco, José

    2016-01-01

    This book covers the key ideas that link probability, statistics, and machine learning illustrated using Python modules in these areas. The entire text, including all the figures and numerical results, is reproducible using the Python codes and their associated Jupyter/IPython notebooks, which are provided as supplementary downloads. The author develops key intuitions in machine learning by working meaningful examples using multiple analytical methods and Python codes, thereby connecting theoretical concepts to concrete implementations. Modern Python modules like Pandas, Sympy, and Scikit-learn are applied to simulate and visualize important machine learning concepts like the bias/variance trade-off, cross-validation, and regularization. Many abstract mathematical ideas, such as convergence in probability theory, are developed and illustrated with numerical examples. This book is suitable for anyone with an undergraduate-level exposure to probability, statistics, or machine learning and with rudimentary knowl...

  18. Introduction to Python for CMF Authority Users

    Energy Technology Data Exchange (ETDEWEB)

    Pritchett-Sheats, Lori A. [Los Alamos National Lab. (LANL), Los Alamos, NM (United States)

    2017-03-14

    This talk is a very broad over view of Python that highlights key features in the language used in the Common Model Framework (CMF). I assume that the audience has some programming experience in a shell scripting language (C shell, Bash, PERL) or other high level language (C/C++/ Fortran). The talk will cover Python data types, classes (objects) and basic programming constructs. The talk concludes with slides describing how I developed the basic classes for a TITANS homework assignment.

  19. Python-Based Applications for Hydrogeological Modeling

    Science.gov (United States)

    Khambhammettu, P.

    2013-12-01

    Python is a general-purpose, high-level programming language whose design philosophy emphasizes code readability. Add-on packages supporting fast array computation (numpy), plotting (matplotlib), scientific /mathematical Functions (scipy), have resulted in a powerful ecosystem for scientists interested in exploratory data analysis, high-performance computing and data visualization. Three examples are provided to demonstrate the applicability of the Python environment in hydrogeological applications. Python programs were used to model an aquifer test and estimate aquifer parameters at a Superfund site. The aquifer test conducted at a Groundwater Circulation Well was modeled with the Python/FORTRAN-based TTIM Analytic Element Code. The aquifer parameters were estimated with PEST such that a good match was produced between the simulated and observed drawdowns. Python scripts were written to interface with PEST and visualize the results. A convolution-based approach was used to estimate source concentration histories based on observed concentrations at receptor locations. Unit Response Functions (URFs) that relate the receptor concentrations to a unit release at the source were derived with the ATRANS code. The impact of any releases at the source could then be estimated by convolving the source release history with the URFs. Python scripts were written to compute and visualize receptor concentrations for user-specified source histories. The framework provided a simple and elegant way to test various hypotheses about the site. A Python/FORTRAN-based program TYPECURVEGRID-Py was developed to compute and visualize groundwater elevations and drawdown through time in response to a regional uniform hydraulic gradient and the influence of pumping wells using either the Theis solution for a fully-confined aquifer or the Hantush-Jacob solution for a leaky confined aquifer. The program supports an arbitrary number of wells that can operate according to arbitrary schedules. The

  20. Julia and Python in Astronomy: Better Together

    Science.gov (United States)

    Barbary, Kyle

    2016-03-01

    Astronomers love Python because it is open source, easy to learn, and has a tremendous ecosystem for scientific computing. The Julia programming language has many of those same characteristics. In this talk, I'll discuss the use of Julia in astronomy and the growing ecosystem of astronomy packages, particularly those managed by the JuliaAstro organization (http://JuliaAstro.github.io). Most importantly, I will highlight some areas ripe for collaboration between Python and Julia developers in astronomy.

  1. Python 3 Web Development Beginner's Guide

    CERN Document Server

    Anders, Michel

    2011-01-01

    Part of Packt's Beginner's Guide Series, this book follows a sample application, with lots of screenshots, to help you get to grips with the techniques as quickly as possible. Moderately experienced Python programmers who want to learn how to create fairly complex, database-driven, cross browser compatible web apps that are maintainable and look good will find this book of most use. All key technologies except for Python 3 are explained in detail.

  2. Porting the LSST Data Management Pipeline Software to Python 3

    CERN Document Server

    Jenness, Tim

    2016-01-01

    The LSST data management science pipelines software consists of more than 100,000 lines of Python 2 code. LSST operations will begin after support for Python 2 has been dropped by the Python community in 2020, and we must therefore plan to migrate the codebase to Python 3. During the transition period we must also support our community of active Python 2 users and this complicates the porting significantly. We have decided to use the Python future package as the basis for our port to enable support for Python 2 and Python 3 simultaneously, whilst developing with a mindset more suited to Python 3. In this paper we report on the current status of the port and the difficulties that have been encountered.

  3. Environmental DNA (eDNA) sampling improves occurrence and detection estimates of invasive burmese pythons.

    Science.gov (United States)

    Hunter, Margaret E; Oyler-McCance, Sara J; Dorazio, Robert M; Fike, Jennifer A; Smith, Brian J; Hunter, Charles T; Reed, Robert N; Hart, Kristen M

    2015-01-01

    Environmental DNA (eDNA) methods are used to detect DNA that is shed into the aquatic environment by cryptic or low density species. Applied in eDNA studies, occupancy models can be used to estimate occurrence and detection probabilities and thereby account for imperfect detection. However, occupancy terminology has been applied inconsistently in eDNA studies, and many have calculated occurrence probabilities while not considering the effects of imperfect detection. Low detection of invasive giant constrictors using visual surveys and traps has hampered the estimation of occupancy and detection estimates needed for population management in southern Florida, USA. Giant constrictor snakes pose a threat to native species and the ecological restoration of the Florida Everglades. To assist with detection, we developed species-specific eDNA assays using quantitative PCR (qPCR) for the Burmese python (Python molurus bivittatus), Northern African python (P. sebae), boa constrictor (Boa constrictor), and the green (Eunectes murinus) and yellow anaconda (E. notaeus). Burmese pythons, Northern African pythons, and boa constrictors are established and reproducing, while the green and yellow anaconda have the potential to become established. We validated the python and boa constrictor assays using laboratory trials and tested all species in 21 field locations distributed in eight southern Florida regions. Burmese python eDNA was detected in 37 of 63 field sampling events; however, the other species were not detected. Although eDNA was heterogeneously distributed in the environment, occupancy models were able to provide the first estimates of detection probabilities, which were greater than 91%. Burmese python eDNA was detected along the leading northern edge of the known population boundary. The development of informative detection tools and eDNA occupancy models can improve conservation efforts in southern Florida and support more extensive studies of invasive constrictors

  4. Environmental DNA (eDNA) sampling improves occurrence and detection estimates of invasive Burmese pythons

    Science.gov (United States)

    Hunter, Margaret E.; Oyler-McCance, Sara J.; Dorazio, Robert M.; Fike, Jennifer A.; Smith, Brian J.; Hunter, Charles T.; Reed, Robert N.; Hart, Kristen M.

    2015-01-01

    Environmental DNA (eDNA) methods are used to detect DNA that is shed into the aquatic environment by cryptic or low density species. Applied in eDNA studies, occupancy models can be used to estimate occurrence and detection probabilities and thereby account for imperfect detection. However, occupancy terminology has been applied inconsistently in eDNA studies, and many have calculated occurrence probabilities while not considering the effects of imperfect detection. Low detection of invasive giant constrictors using visual surveys and traps has hampered the estimation of occupancy and detection estimates needed for population management in southern Florida, USA. Giant constrictor snakes pose a threat to native species and the ecological restoration of the Florida Everglades. To assist with detection, we developed species-specific eDNA assays using quantitative PCR (qPCR) for the Burmese python (Python molurus bivittatus), Northern African python (P. sebae), boa constrictor (Boa constrictor), and the green (Eunectes murinus) and yellow anaconda (E. notaeus). Burmese pythons, Northern African pythons, and boa constrictors are established and reproducing, while the green and yellow anaconda have the potential to become established. We validated the python and boa constrictor assays using laboratory trials and tested all species in 21 field locations distributed in eight southern Florida regions. Burmese python eDNA was detected in 37 of 63 field sampling events; however, the other species were not detected. Although eDNA was heterogeneously distributed in the environment, occupancy models were able to provide the first estimates of detection probabilities, which were greater than 91%. Burmese python eDNA was detected along the leading northern edge of the known population boundary. The development of informative detection tools and eDNA occupancy models can improve conservation efforts in southern Florida and support more extensive studies of invasive constrictors

  5. Environmental DNA (eDNA sampling improves occurrence and detection estimates of invasive burmese pythons.

    Directory of Open Access Journals (Sweden)

    Margaret E Hunter

    Full Text Available Environmental DNA (eDNA methods are used to detect DNA that is shed into the aquatic environment by cryptic or low density species. Applied in eDNA studies, occupancy models can be used to estimate occurrence and detection probabilities and thereby account for imperfect detection. However, occupancy terminology has been applied inconsistently in eDNA studies, and many have calculated occurrence probabilities while not considering the effects of imperfect detection. Low detection of invasive giant constrictors using visual surveys and traps has hampered the estimation of occupancy and detection estimates needed for population management in southern Florida, USA. Giant constrictor snakes pose a threat to native species and the ecological restoration of the Florida Everglades. To assist with detection, we developed species-specific eDNA assays using quantitative PCR (qPCR for the Burmese python (Python molurus bivittatus, Northern African python (P. sebae, boa constrictor (Boa constrictor, and the green (Eunectes murinus and yellow anaconda (E. notaeus. Burmese pythons, Northern African pythons, and boa constrictors are established and reproducing, while the green and yellow anaconda have the potential to become established. We validated the python and boa constrictor assays using laboratory trials and tested all species in 21 field locations distributed in eight southern Florida regions. Burmese python eDNA was detected in 37 of 63 field sampling events; however, the other species were not detected. Although eDNA was heterogeneously distributed in the environment, occupancy models were able to provide the first estimates of detection probabilities, which were greater than 91%. Burmese python eDNA was detected along the leading northern edge of the known population boundary. The development of informative detection tools and eDNA occupancy models can improve conservation efforts in southern Florida and support more extensive studies of invasive

  6. Man Bites Python, Escapes Death

    Institute of Scientific and Technical Information of China (English)

    王淀楼

    2001-01-01

    自古只有蛇咬人,而南非的这位57岁的Lucas Sibanda却演绎了一场“人咬蛇”的“活剧”,他的利嘴钢牙竟然让一条巨蟒逃之夭夭,从而拾回自己一条老命。文章虽然很短,却写得文采斐然。标题出现了Python(巨蟒),而在文章里,作者却分别换用monster和reptile的表达,以求遣词之新,这在英语中称为Elegant Variation(求雅换词),以下三句中的动词你是否觉得用得也很精彩:1/A South African man bit his way to freedom. 2/I froze for almost 10 seconds. 3/Sibanda sank his teeth into…】

  7. Apprendre à programmer avec Python

    CERN Document Server

    Swinnen, Gérard

    2009-01-01

    Quel meilleur choix pour apprendre la programmation qu'un langage moderne et élégant tel que Python, aussi bon pour le développement d'applications web que pour la réalisation de scripts système ou l'analyse de fichiers textuels ? Un support de cours réputé et adopté par de nombreux enseignants, avec 40 pages d'exercices corrigés Reconnu et utilisé par les enseignants de nombreuses écoles et IUT, complété d'exercices accompagnés de leurs corrigés, cet ouvrage original et érudit est une référence sur tous les fondamentaux de la programmation : choix d'une structure de données, paramétrage, modularité, orientation objet et héritage, conception d'interface, multithreading et gestion d'événements, protocoles de communication et gestion réseau, formulaires web et (GI, bases de données) jusqu'à la désormais indispensable norme Unicode (le format UTF-8).

  8. Novel divergent nidovirus in a python with pneumonia.

    Science.gov (United States)

    Bodewes, Rogier; Lempp, Charlotte; Schürch, Anita C; Habierski, Andre; Hahn, Kerstin; Lamers, Mart; von Dörnberg, Katja; Wohlsein, Peter; Drexler, Jan Felix; Haagmans, Bart L; Smits, Saskia L; Baumgärtner, Wolfgang; Osterhaus, Albert D M E

    2014-11-01

    The order Nidovirales contains large, enveloped viruses with a non-segmented positive-stranded RNA genome. Nidoviruses have been detected in man and various animal species, but, to date, there have been no reports of nidovirus in reptiles. In the present study, we describe the detection, characterization, phylogenetic analyses and disease association of a novel divergent nidovirus in the lung of an Indian python (Python molurus) with necrotizing pneumonia. Characterization of the partial genome (>33 000 nt) of this virus revealed several genetic features that are distinct from other nidoviruses, including a very large polyprotein 1a, a putative ribosomal frameshift signal that was identical to the frameshift signal of astroviruses and retroviruses and an accessory ORF that showed some similarity with the haemagglutinin-neuraminidase of paramyxoviruses. Analysis of genome organization and phylogenetic analysis of polyprotein 1ab suggests that this virus belongs to the subfamily Torovirinae. Results of this study provide novel insights into the genetic diversity within the order Nidovirales.

  9. Porting the LSST Data Management Pipeline Software to Python 3

    OpenAIRE

    Jenness, Tim

    2016-01-01

    The LSST data management science pipelines software consists of more than 100,000 lines of Python 2 code. LSST operations will begin after support for Python 2 has been dropped by the Python community in 2020, and we must therefore plan to migrate the codebase to Python 3. During the transition period we must also support our community of active Python 2 users and this complicates the porting significantly. We have decided to use the Python future package as the basis for our port to enable s...

  10. Isolation and characterisation of crocodile and python ovotransferrins.

    Science.gov (United States)

    Ciuraszkiewicz, Justyna; Olczak, Mariusz; Watorek, Wiesław

    2007-01-01

    Transferrins play a major role in iron homeostasis and metabolism. In vertebrates, these proteins are synthesised in the liver and dispersed within the organism by the bloodstream. In oviparous vertebrates additional expression is observed in the oviduct and the synthesised protein is deposited in egg white as ovotransferrin. Most research on ovotransferrin has been performed on the chicken protein. There is a limited amount of information on other bird transferrins, and until our previous paper on red-eared turtle protein there was no data on the isolation, sequencing and biochemical properties of reptilian ovotransferrins. Recently our laboratory deposited ten new sequences of reptilian transferrins in the EMBL database. A comparative analysis of these sequences indicates a possibility of different mechanisms of iron release among crocodile and snake transferrin. In the present paper we follow with the purification and analysis of the basic biochemical properties of two crocodile (Crocodilus niloticus, C. rhombifer) and one snake (Python molurus bivittatus) ovotransferrins. The proteins were purified by anion exchange and hydrophobic chromatography, and their N-terminal amino-acid sequences, molecular mass and isoelectric points were determined. All three proteins are glycosylated and their N-glycan chromatographic profiles show the largest contribution of neutral oligosaccharides in crocodile and disialylated glycans in python ovotransferrin. The absorption spectra of iron-saturated transferrins were analysed. Iron release from these proteins is pH-dependent, showing a biphasic character in crocodile ovotransferrins and a monophasic type in the python protein. The reason for the different types of iron release is discussed.

  11. SunPy—Python for solar physics

    Science.gov (United States)

    SunPy Community; Mumford, Stuart J.; Christe, Steven; Pérez-Suárez, David; Ireland, Jack; Shih, Albert Y.; Inglis, Andrew R.; Liedtke, Simon; Hewett, Russell J.; Mayer, Florian; Hughitt, Keith; Freij, Nabil; Meszaros, Tomas; Bennett, Samuel M.; Malocha, Michael; Evans, John; Agrawal, Ankit; Leonard, Andrew J.; Robitaille, Thomas P.; Mampaey, Benjamin; Campos-Rozo, Jose Iván; Kirk, Michael S.

    2015-01-01

    This paper presents SunPy (version 0.5), a community-developed Python package for solar physics. Python, a free, cross-platform, general-purpose, high-level programming language, has seen widespread adoption among the scientific community, resulting in the availability of a large number of software packages, from numerical computation (NumPy, SciPy) and machine learning (scikit-learn) to visualization and plotting (matplotlib). SunPy is a data-analysis environment specializing in providing the software necessary to analyse solar and heliospheric data in Python. SunPy is open-source software (BSD licence) and has an open and transparent development workflow that anyone can contribute to. SunPy provides access to solar data through integration with the Virtual Solar Observatory (VSO), the Heliophysics Event Knowledgebase (HEK), and the HELiophysics Integrated Observatory (HELIO) webservices. It currently supports image data from major solar missions (e.g., SDO, SOHO, STEREO, and IRIS), time-series data from missions such as GOES, SDO/EVE, and PROBA2/LYRA, and radio spectra from e-Callisto and STEREO/SWAVES. We describe SunPy's functionality, provide examples of solar data analysis in SunPy, and show how Python-based solar data-analysis can leverage the many existing tools already available in Python. We discuss the future goals of the project and encourage interested users to become involved in the planning and development of SunPy.

  12. Python for large-scale electrophysiology

    Directory of Open Access Journals (Sweden)

    Martin A Spacek

    2009-01-01

    Full Text Available Electrophysiology is increasingly moving towards highly parallel recording techniques which generate large data sets. We record extracellularly in vivo in cat and rat visual cortex with 54 channel silicon polytrodes, under time-locked visual stimulation, from localized neuronal populations within a cortical column. To help deal with the complexity of generating and analyzing these data, we used the Python programming language to develop three software projects: one for temporally precise visual stimulus generation (dimstim; one for electrophysiological waveform visualization and spike sorting (spyke; and one for spike train and stimulus analysis (neuropy. All three are open source and available for download (http://swindale.ecc.ubc.ca/code. The requirements and solutions for these projects differed greatly, yet we found Python to be well suited for all three. Here we present our software as a showcase of the extensive capabilities of Python in neuroscience.

  13. Python for large-scale electrophysiology.

    Science.gov (United States)

    Spacek, Martin; Blanche, Tim; Swindale, Nicholas

    2008-01-01

    Electrophysiology is increasingly moving towards highly parallel recording techniques which generate large data sets. We record extracellularly in vivo in cat and rat visual cortex with 54-channel silicon polytrodes, under time-locked visual stimulation, from localized neuronal populations within a cortical column. To help deal with the complexity of generating and analysing these data, we used the Python programming language to develop three software projects: one for temporally precise visual stimulus generation ("dimstim"); one for electrophysiological waveform visualization and spike sorting ("spyke"); and one for spike train and stimulus analysis ("neuropy"). All three are open source and available for download (http://swindale.ecc.ubc.ca/code). The requirements and solutions for these projects differed greatly, yet we found Python to be well suited for all three. Here we present our software as a showcase of the extensive capabilities of Python in neuroscience.

  14. An introduction to Python and computer programming

    CERN Document Server

    Zhang, Yue

    2015-01-01

    This book introduces Python programming language and fundamental concepts in algorithms and computing. Its target audience includes students and engineers with little or no background in programming, who need to master a practical programming language and learn the basic thinking in computer science/programming. The main contents come from lecture notes for engineering students from all disciplines, and has received high ratings. Its materials and ordering have been adjusted repeatedly according to classroom reception. Compared to alternative textbooks in the market, this book introduces the underlying Python implementation of number, string, list, tuple, dict, function, class, instance and module objects in a consistent and easy-to-understand way, making assignment, function definition, function call, mutability and binding environments understandable inside-out. By giving the abstraction of implementation mechanisms, this book builds a solid understanding of the Python programming language.

  15. modlAMP: Python for antimicrobial peptides.

    Science.gov (United States)

    Müller, Alex T; Gabernet, Gisela; Hiss, Jan A; Schneider, Gisbert

    2017-09-01

    We have implemented the lecular esign aboratory's nti icrobial eptides package ( ), a Python-based software package for the design, classification and visual representation of peptide data. modlAMP offers functions for molecular descriptor calculation and the retrieval of amino acid sequences from public or local sequence databases, and provides instant access to precompiled datasets for machine learning. The package also contains methods for the analysis and representation of circular dichroism spectra. The modlAMP Python package is available under the BSD license from URL http://doi.org/10.5905/ethz-1007-72 or via pip from the Python Package Index (PyPI). gisbert.schneider@pharma.ethz.ch. Supplementary data are available at Bioinformatics online.

  16. Programming ArcGIS 10.1 with Python cookbook

    CERN Document Server

    Pimpler, Eric

    2013-01-01

    This book is written in a helpful, practical style with numerous hands-on recipes and chapters to help you save time and effort by using Python to power ArcGIS to create shortcuts, scripts, tools, and customizations.""Programming ArcGIS 10.1 with Python Cookbook"" is written for GIS professionals who wish to revolutionize their ArcGIS workflow with Python. Basic Python or programming knowledge is essential(?).

  17. Hemodynamic consequences of cardiac malformations in two juvenile ball pythons (Python regius).

    Science.gov (United States)

    Jensen, Bjarke; Wang, Tobias

    2009-12-01

    Two cases of bifid ventricles and cardiac malformations in juvenile ball python (Python regius) were investigated by blood pressure measurements and macro- and microscopic sectioning. A study of a normal ball python was included for reference. In both cases, all cardiac chambers were enlarged and abnormally shaped. Internal assessment of the ventricles revealed a pronounced defect of the muscular ridge, which normally is responsible for separating the systemic and pulmonary circuits. Consistent with the small muscular ridge, systolic pressures were identical in the pulmonary and systemic arteries, but, the snakes, nevertheless, lived to reach body weights severalfold of their hatchling weight.

  18. Next-Generation Web Frameworks in Python

    CERN Document Server

    Daly, Liza

    2007-01-01

    With its flexibility, readability, and maturecode libraries, Python is a naturalchoice for developing agile and maintainableweb applications. Severalframeworks have emerged in the last fewyears that share ideas with Ruby on Railsand leverage the expressive nature of Python.This Short Cut will tell you whatyou need to know about the hottest fullstackframeworks: Django, Pylons, andTurboGears. Their philosophies, relativestrengths, and development status aredescribed in detail. What you won't find out is, "Which oneshould I use?" The short answer is thatall of them can be used to build web appl

  19. Python for signal processing featuring IPython notebooks

    CERN Document Server

    Unpingco, José

    2013-01-01

    This book covers the fundamental concepts in signal processing illustrated with Python code and made available via IPython Notebooks, which are live, interactive, browser-based documents that allow one to change parameters, redraw plots, and tinker with the ideas presented in the text. Everything in the text is computable in this format and thereby invites readers to ""experiment and learn"" as they read. The book focuses on the core, fundamental principles of signal processing. The code corresponding to this book uses the core functionality of the scientific Python toolchain that should remai

  20. Building machine learning systems with Python

    CERN Document Server

    Richert, Willi

    2013-01-01

    This is a tutorial-driven and practical, but well-grounded book showcasing good Machine Learning practices. There will be an emphasis on using existing technologies instead of showing how to write your own implementations of algorithms. This book is a scenario-based, example-driven tutorial. By the end of the book you will have learnt critical aspects of Machine Learning Python projects and experienced the power of ML-based systems by actually working on them.This book primarily targets Python developers who want to learn about and build Machine Learning into their projects, or who want to pro

  1. DeepPy: Pythonic deep learning

    OpenAIRE

    Larsen, Anders Boesen Lindbo

    2016-01-01

    This technical report introduces DeepPy – a deep learning framework built on top of NumPy with GPU acceleration. DeepPy bridges the gap between highperformance neural networks and the ease of development from Python/NumPy. Users with a background in scientific computing in Python will quickly be able to understand and change the DeepPy codebase as it is mainly implemented using high-level NumPy primitives. Moreover, DeepPy supports complex network architectures by letting the user compose mat...

  2. Data Visualization within the Python ecosystem

    CERN Document Server

    CERN. Geneva

    2016-01-01

    Data analysis is integral to what we do at CERN. Data visualization is at the foundation of this workflow and is also an important part of the python stack. Python's plotting ecosystem offers numerous open source solutions. These solutions can offer ease of use, detailed configuration, interactivity and web readiness. This talk will cover three of the most robust and supported packages, matplotlib, bokeh, and plotly. It aims to provide an overview of these packages. In addition, give suggestions to where these tools might fit in an analysis workflow.

  3. Raspberry Pi cookbook for Python programmers

    CERN Document Server

    Cox, Tim

    2014-01-01

    ""Raspberry Pi Cookbook for Python Programmers"" is written in a Cookbook format, presenting examples in the style of recipes.This allows you to go directly to your topic of interest, or follow topics throughout a chapter to gain a thorough in-depth knowledge.The aim of this book is to bring you a broad range of Python 3 examples and practical ideas which you can develop to suit your own requirements. By modifying and combining the examples to create your own projects you learn far more effectively with a much greater understanding. Each chapter is designed to become a foundation for further e

  4. DeepPy: Pythonic deep learning

    DEFF Research Database (Denmark)

    Larsen, Anders Boesen Lindbo

    This technical report introduces DeepPy – a deep learning framework built on top of NumPy with GPU acceleration. DeepPy bridges the gap between highperformance neural networks and the ease of development from Python/NumPy. Users with a background in scientific computing in Python will quickly...... be able to understand and change the DeepPy codebase as it is mainly implemented using high-level NumPy primitives. Moreover, DeepPy supports complex network architectures by letting the user compose mathematical expressions as directed graphs. The latest version is available at http...

  5. Python passive network mapping P2NMAP

    CERN Document Server

    Hosmer, Chet

    2015-01-01

    Python Passive Network Mapping: P2NMAP is the first book to reveal a revolutionary and open source method for exposing nefarious network activity. The ""Heartbleed"" vulnerability has revealed significant weaknesses within enterprise environments related to the lack of a definitive mapping of network assets. In Python Passive Network Mapping, Chet Hosmer shows you how to effectively and definitively passively map networks. Active or probing methods to network mapping have traditionally been used, but they have many drawbacks - they can disrupt operations, crash systems, and - most important

  6. Python Bindings for the Common Pipeline Library

    Science.gov (United States)

    Streicher, O.; Weilbacher, P. M.

    2012-09-01

    The Common Pipeline Library is a set of routines written by ESO to provide a standard interface for VLT instrument data reduction tasks (“pipelines”). To control these pipelines from Python, we developed a wrapper called PYTHON-CPL that allows one to conveniently work interactively and to process data as part of an automated data reduction system. The package will be used to implement the MUSE pipeline in the AstroWISE data management system. We describe the features and design of the package.

  7. Unilateral microphthalmia or anophthalmia in eight pythons (Pythonidae)

    DEFF Research Database (Denmark)

    Da Silva, Mari-Ann Otkjær; Bertelsen, Mads F.; Wang, Tobias

    2015-01-01

    ) with clinically normal right eyes and an abnormal or missing left eye. PROCEDURE: At the time of euthanasia, four of the eight snakes underwent necropsy. Hereafter, the heads of two Burmese pythons and one ball python were examined using μCT, and another Burmese python was subjected to MRI. Following...

  8. TensorLy: Tensor Learning in Python

    NARCIS (Netherlands)

    Kossaifi, Jean; Panagakis, Yannis; Pantic, Maja

    2016-01-01

    Tensor methods are gaining increasing traction in machine learning. However, there are scant to no resources available to perform tensor learning and decomposition in Python. To answer this need we developed TensorLy. TensorLy is a state of the art general purpose library for tensor learning. Writte

  9. Bactome, I: Python in DNA Fingerprinting

    Directory of Open Access Journals (Sweden)

    2010-09-01

    Full Text Available Bactome is a collection of Python functions to find primers suitable for DNA fingerprinting, determine restriction digestion profile, and analyse the resulting DNA fingerprint features as migration distance of the bands in gel electrophoresis. An actual use case will be presented as a case study. These codes are licensed under Lesser General Public Licence version 3.

  10. Osteosarcoma in a woma python (Aspidites ramsayi).

    Science.gov (United States)

    Cowan, M L; Monks, D J; Raidal, S R

    2011-12-01

    Osteosarcoma of the axial skeleton in an 18-month-old woma python (Aspidites ramsayi) is described. A subcutaneous mass overlying the costal arches enlarged progressively over a period of 5 months and, in that time, became ulcerated and more invasive of surrounding tissues. A punch biopsy of the lesion under general anaesthesia provided tissue for histopathology and diagnosis of low-grade osteosarcoma.

  11. TensorLy: Tensor learning in Python

    NARCIS (Netherlands)

    Kossaifi, Jean; Panagakis, Yannis; Pantic, Maja

    2016-01-01

    Tensor methods are gaining increasing traction in machine learning. However, there are scant to no resources available to perform tensor learning and decomposition in Python. To answer this need we developed TensorLy. TensorLy is a state of the art general purpose library for tensor learning. Writt

  12. Python Classes for Numerical Solution of PDE's

    CERN Document Server

    Mushtaq, Asif; Olaussen, Kåre

    2015-01-01

    We announce some Python classes for numerical solution of partial differential equations, or boundary value problems of ordinary differential equations. These classes are built on routines in \\texttt{numpy} and \\texttt{scipy.sparse.linalg} (or \\texttt{scipy.linalg} for smaller problems).

  13. Python Tool for Managing Hydrologic Soil Data

    OpenAIRE

    Orazbek, Ilyas

    2014-01-01

    As a water runoff crosses different kinds of soil, it collects chemicals from those lands. We've designed a python-based tool that estimates the amount of chemicals that get collected into the water stream. This could help us determine the impact of construction on the water quality of streams in the area.

  14. Python scripting in the nengo simulator.

    Science.gov (United States)

    Stewart, Terrence C; Tripp, Bryan; Eliasmith, Chris

    2009-01-01

    Nengo (http://nengo.ca) is an open-source neural simulator that has been greatly enhanced by the recent addition of a Python script interface. Nengo provides a wide range of features that are useful for physiological simulations, including unique features that facilitate development of population-coding models using the neural engineering framework (NEF). This framework uses information theory, signal processing, and control theory to formalize the development of large-scale neural circuit models. Notably, it can also be used to determine the synaptic weights that underlie observed network dynamics and transformations of represented variables. Nengo provides rich NEF support, and includes customizable models of spike generation, muscle dynamics, synaptic plasticity, and synaptic integration, as well as an intuitive graphical user interface. All aspects of Nengo models are accessible via the Python interface, allowing for programmatic creation of models, inspection and modification of neural parameters, and automation of model evaluation. Since Nengo combines Python and Java, it can also be integrated with any existing Java or 100% Python code libraries. Current work includes connecting neural models in Nengo with existing symbolic cognitive models, creating hybrid systems that combine detailed neural models of specific brain regions with higher-level models of remaining brain areas. Such hybrid models can provide (1) more realistic boundary conditions for the neural components, and (2) more realistic sub-components for the larger cognitive models.

  15. Python scripting in the Nengo simulator

    Directory of Open Access Journals (Sweden)

    Terrence C Stewart

    2009-03-01

    Full Text Available Nengo is an open-source neural simulator that has been greatly enhanced by the recent addition of a Python script interface. Nengo provides a wide range of features that are useful for physiological simulations, including unique features that facilitate development of population-coding models using the Neural Engineering Framework (NEF. This framework uses information theory, signal processing, and control theory to formalize the development of large-scale neural circuit models. Notably, it can also be used to determine the synaptic weights that underlie observed network dynamics and transformations of represented variables. Nengo provides rich NEF support, and includes customizable models of spike generation, muscle dynamics, synaptic plasticity, and synaptic integration, as well as an intuitive graphical user interface. All aspects of Nengo models are accessible via the Python interface, allowing for programmatic creation of models, inspection and modification of neural parameters, and automation of model evaluation. Since Nengo combines Python and Java, it can also be integrated with any existing Java or 100% Python code libraries. Current work includes connecting neural models in Nengo with existing symbolic cognitive models, creating hybrid systems that combine detailed neural models of specific brain regions with higher-level models of remaining brain areas. Such hybrid models can provide 1 more realistic boundary conditions for the neural components, and 2 more realistic sub-components for the larger cognitive models.

  16. TensorLy: Tensor Learning in Python

    NARCIS (Netherlands)

    Kossaifi, Jean; Panagakis, Yannis; Pantic, Maja

    2016-01-01

    Tensor methods are gaining increasing traction in machine learning. However, there are scant to no resources available to perform tensor learning and decomposition in Python. To answer this need we developed TensorLy. TensorLy is a state of the art general purpose library for tensor learning.

  17. PyXNAT: XNAT in Python

    Directory of Open Access Journals (Sweden)

    Yannick eSchwartz

    2012-05-01

    Full Text Available As neuroimaging databases grow in size and complexity, the time researchers spend investigating and managing the data increases to the expense of data analysis. As a result, investigators rely more and more heavily on scripting using high-level languages to automate data management and processing tasks. For this, a structured and programatic access to the data store is necessary. Web services are a first step toward this goal. They however lack in functionality and ease of use because they provide only low level interfaces to databases. We introduce here {PyXNAT}, a Python module that interacts with The Extensible Neuroimaging Archive Toolkit (XNAT through native Python calls across multiple operating systems. The choice of Python enables {PyXNAT} to expose the XNAT Web Services and unify their features with a higher level and more expressive language. {PyXNAT} provides XNAT users direct access to all the scientific packages in Python. Finally {PyXNAT} aims to be efficient and easy to use, both as a backend library to build XNAT clients and as an alternative frontend from the command line.

  18. PyXNAT: XNAT in Python.

    Science.gov (United States)

    Schwartz, Yannick; Barbot, Alexis; Thyreau, Benjamin; Frouin, Vincent; Varoquaux, Gaël; Siram, Aditya; Marcus, Daniel S; Poline, Jean-Baptiste

    2012-01-01

    As neuroimaging databases grow in size and complexity, the time researchers spend investigating and managing the data increases to the expense of data analysis. As a result, investigators rely more and more heavily on scripting using high-level languages to automate data management and processing tasks. For this, a structured and programmatic access to the data store is necessary. Web services are a first step toward this goal. They however lack in functionality and ease of use because they provide only low-level interfaces to databases. We introduce here PyXNAT, a Python module that interacts with The Extensible Neuroimaging Archive Toolkit (XNAT) through native Python calls across multiple operating systems. The choice of Python enables PyXNAT to expose the XNAT Web Services and unify their features with a higher level and more expressive language. PyXNAT provides XNAT users direct access to all the scientific packages in Python. Finally PyXNAT aims to be efficient and easy to use, both as a back-end library to build XNAT clients and as an alternative front-end from the command line.

  19. MGtoolkit: A python package for implementing metagraphs

    Science.gov (United States)

    Ranathunga, D.; Nguyen, H.; Roughan, M.

    In this paper we present MGtoolkit : an open-source Python package for implementing metagraphs - a first of its kind. Metagraphs are commonly used to specify and analyse business and computer-network policies alike. MGtoolkit can help verify such policies and promotes learning and experimentation with metagraphs. The package currently provides purely textual output for visualising metagraphs and their analysis results.

  20. Size, but not experience, affects the ontogeny of constriction performance in ball pythons (Python regius).

    Science.gov (United States)

    Penning, David A; Dartez, Schuyler F

    2016-03-01

    Constriction is a prey-immobilization technique used by many snakes and is hypothesized to have been important to the evolution and diversification of snakes. However, very few studies have examined the factors that affect constriction performance. We investigated constriction performance in ball pythons (Python regius) by evaluating how peak constriction pressure is affected by snake size, sex, and experience. In one experiment, we tested the ontogenetic scaling of constriction performance and found that snake diameter was the only significant factor determining peak constriction pressure. The number of loops applied in a coil and its interaction with snake diameter did not significantly affect constriction performance. Constriction performance in ball pythons scaled differently than in other snakes that have been studied, and medium to large ball pythons are capable of exerting significantly higher pressures than those shown to cause circulatory arrest in prey. In a second experiment, we tested the effects of experience on constriction performance in hatchling ball pythons over 10 feeding events. By allowing snakes in one test group to gain constriction experience, and manually feeding snakes under sedation in another test group, we showed that experience did not affect constriction performance. During their final (10th) feedings, all pythons constricted similarly and with sufficiently high pressures to kill prey rapidly. At the end of the 10 feeding trials, snakes that were allowed to constrict were significantly smaller than their non-constricting counterparts.

  1. PythonTeX: reproducible documents with LaTeX, Python, and more

    Science.gov (United States)

    Poore, Geoffrey M.

    2015-01-01

    PythonTeX is a LaTeX package that allows Python code in LaTeX documents to be executed and provides access to the output. This makes possible reproducible documents that combine results with the code required to generate them. Calculations and figures may be next to the code that created them. Since code is adjacent to its output in the document, editing may be more efficient. Since code output may be accessed programmatically in the document, copy-and-paste errors are avoided and output is always guaranteed to be in sync with the code that generated it. This paper provides an introduction to PythonTeX and an overview of major features, including performance optimizations, debugging tools, and dependency tracking. Several complete examples are presented. Finally, advanced features are summarized. Though PythonTeX was designed for Python, it may be extended to support additional languages; support for the Ruby and Julia languages is already included. PythonTeX contains a utility for converting documents into plain LaTeX, suitable for format conversion, sharing, and journal submission.

  2. Molecular cloning and characterization of satellite DNA sequences from constitutive heterochromatin of the habu snake (Protobothrops flavoviridis, Viperidae) and the Burmese python (Python bivittatus, Pythonidae).

    Science.gov (United States)

    Matsubara, Kazumi; Uno, Yoshinobu; Srikulnath, Kornsorn; Seki, Risako; Nishida, Chizuko; Matsuda, Yoichi

    2015-12-01

    Highly repetitive DNA sequences of the centromeric heterochromatin provide valuable molecular cytogenetic markers for the investigation of genomic compartmentalization in the macrochromosomes and microchromosomes of sauropsids. Here, the relationship between centromeric heterochromatin and karyotype evolution was examined using cloned repetitive DNA sequences from two snake species, the habu snake (Protobothrops flavoviridis, Crotalinae, Viperidae) and Burmese python (Python bivittatus, Pythonidae). Three satellite DNA (stDNA) families were isolated from the heterochromatin of these snakes: 168-bp PFL-MspI from P. flavoviridis and 196-bp PBI-DdeI and 174-bp PBI-MspI from P. bivittatus. The PFL-MspI and PBI-DdeI sequences were localized to the centromeric regions of most chromosomes in the respective species, suggesting that the two sequences were the major components of the centromeric heterochromatin in these organisms. The PBI-MspI sequence was localized to the pericentromeric region of four chromosome pairs. The PFL-MspI and the PBI-DdeI sequences were conserved only in the genome of closely related species, Gloydius blomhoffii (Crotalinae) and Python molurus, respectively, although their locations on the chromosomes were slightly different. In contrast, the PBI-MspI sequence was also in the genomes of P. molurus and Boa constrictor (Boidae), and additionally localized to the centromeric regions of eight chromosome pairs in B. constrictor, suggesting that this sequence originated in the genome of a common ancestor of Pythonidae and Boidae, approximately 86 million years ago. The three stDNA sequences showed no genomic compartmentalization between the macrochromosomes and microchromosomes, suggesting that homogenization of the centromeric and/or pericentromeric stDNA sequences occurred in the macrochromosomes and microchromosomes of these snakes.

  3. galpy: A Python Library for Galactic Dynamics

    CERN Document Server

    Bovy, Jo

    2014-01-01

    I describe the design, implementation, and usage of galpy, a Python package for galactic-dynamics calculations. At its core, galpy consists of a general framework for representing galactic potentials both in Python and in C (for accelerated computations); galpy functions, objects, and methods can generally take arbitrary combinations of these as arguments. Numerical orbit integration is supported with a variety of Runge-Kutta-type and symplectic integrators. For planar orbits, integration of the phase-space volume is also possible. galpy supports the calculation of action-angle coordinates and orbital frequencies for a given phase-space point for general spherical potentials, using state-of-the-art numerical approximations for axisymmetric potentials, and making use of a recent general approximation for any static potential. A number of different distribution functions (DFs) are also included in the current release; currently these consist of two-dimensional axisymmetric and non-axisymmetric disk DFs, a three...

  4. Transliterating non-ASCII characters with Python

    Directory of Open Access Journals (Sweden)

    Seth Bernstein

    2013-10-01

    Full Text Available This lesson shows how to use Python to transliterate automatically a list of words from a language with a non-Latin alphabet to a standardized format using the American Standard Code for Information Interchange (ASCII characters. It builds on readers’ understanding of Python from the lessons “Viewing HTML Files,” “Working with Web Pages,” “From HTML to List of Words (part 1” and “Intro to Beautiful Soup.” At the end of the lesson, we will use the transliteration dictionary to convert the names from a database of the Russian organization Memorial from Cyrillic into Latin characters. Although the example uses Cyrillic characters, the technique can be reproduced with other alphabets using Unicode.

  5. Writing analytic element programs in Python.

    Science.gov (United States)

    Bakker, Mark; Kelson, Victor A

    2009-01-01

    The analytic element method is a mesh-free approach for modeling ground water flow at both the local and the regional scale. With the advent of the Python object-oriented programming language, it has become relatively easy to write analytic element programs. In this article, an introduction is given of the basic principles of the analytic element method and of the Python programming language. A simple, yet flexible, object-oriented design is presented for analytic element codes using multiple inheritance. New types of analytic elements may be added without the need for any changes in the existing part of the code. The presented code may be used to model flow to wells (with either a specified discharge or drawdown) and streams (with a specified head). The code may be extended by any hydrogeologist with a healthy appetite for writing computer code to solve more complicated ground water flow problems.

  6. Python: a language for computational physics

    Science.gov (United States)

    Borcherds, P. H.

    2007-07-01

    Python is a relatively new computing language, created by Guido van Rossum [A.S. Tanenbaum, R. van Renesse, H. van Staveren, G.J. Sharp, S.J. Mullender, A.J. Jansen, G. van Rossum, Experiences with the Amoeba distributed operating system, Communications of the ACM 33 (1990) 46-63; also on-line at http://www.cs.vu.nl/pub/amoeba/. [6

  7. Py4Syn: Python for synchrotrons.

    Science.gov (United States)

    Slepicka, H H; Canova, H F; Beniz, D B; Piton, J R

    2015-09-01

    In this report, Py4Syn, an open-source Python-based library for data acquisition, device manipulation, scan routines and other helper functions, is presented. Driven by easy-to-use and scalability ideals, Py4Syn offers control system agnostic solution and high customization level for scans and data output, covering distinct techniques and facilities. Here, most of the library functionalities are described, examples of use are shown and ideas for future implementations are presented.

  8. MTpy: A Python toolbox for magnetotellurics

    Science.gov (United States)

    Krieger, Lars; Peacock, Jared R.

    2014-01-01

    We present the software package MTpy that allows handling, processing, and imaging of magnetotelluric (MT) data sets. Written in Python, the code is open source, containing sub-packages and modules for various tasks within the standard MT data processing and handling scheme. Besides the independent definition of classes and functions, MTpy provides wrappers and convenience scripts to call standard external data processing and modelling software.

  9. 升级Ubuntu中的Python

    Institute of Scientific and Technical Information of China (English)

    李世川

    2011-01-01

    导读 Python作为当前流行的脚本语言,具有很广的应用范围。Ubuntu系统自带了Python,笔者将Ubuntu 10.10自带的Python2.6.6升级至3.2版本。本文介绍升级过程及后续问题的解决方法。

  10. Implementation of Kalman Filter with Python Language

    CERN Document Server

    Laaraiedh, Mohamed

    2012-01-01

    In this paper, we investigate the implementation of a Python code for a Kalman Filter using the Numpy package. A Kalman Filtering is carried out in two steps: Prediction and Update. Each step is investigated and coded as a function with matrix input and output. These different functions are explained and an example of a Kalman Filter application for the localization of mobile in wireless networks is given.

  11. Scikit-learn: Machine Learning in Python

    OpenAIRE

    Pedregosa, Fabian; Varoquaux, Gaël; Gramfort, Alexandre; Michel, Vincent; Thirion, Bertrand; Grisel, Olivier; Blondel, Mathieu; Prettenhofer, Peter; Weiss, Ron; Dubourg, Vincent; Vanderplas, Jake; Passos, Alexandre; Cournapeau, David; Brucher, Matthieu; Perrot, Matthieu

    2011-01-01

    International audience; Scikit-learn is a Python module integrating a wide range of state-of-the-art machine learning algorithms for medium-scale supervised and unsupervised problems. This package focuses on bringing machine learning to non-specialists using a general-purpose high-level language. Emphasis is put on ease of use, performance, documentation, and API consistency. It has minimal dependencies and is distributed under the simplified BSD license, encouraging its use in both academic ...

  12. SunPy - Python for Solar Physics

    CERN Document Server

    Community, The SunPy; Christe, Steven; Pérez-Suárez, David; Ireland, Jack; Shih, Albert Y; Inglis, Andrew R; Liedtke, Simon; Hewett, Russell J; Mayer, Florian; Hughitt, Keith; Freij, Nabil; Meszaros, Tomas; Bennett, Samuel M; Malocha, Michael; Evans, John; Agrawal, Ankit; Leonard, Andrew J; Robitaille, Thomas P; Mampaey, Benjamin; Campos-Rozo, Jose Iván; Kirk, Michael S

    2015-01-01

    This paper presents SunPy (version 0.5), a community-developed Python package for solar physics. Python, a free, cross-platform, general-purpose, high-level programming language, has seen widespread adoption among the scientific community, resulting in the availability of a large number of software packages, from numerical computation (NumPy, SciPy) and machine learning (scikit-learn) to visualisation and plotting (matplotlib). SunPy is a data-analysis environment specialising in providing the software necessary to analyse solar and heliospheric data in Python. SunPy is open-source software (BSD licence) and has an open and transparent development workflow that anyone can contribute to. SunPy provides access to solar data through integration with the Virtual Solar Observatory (VSO), the Heliophysics Event Knowledgebase (HEK), and the HELiophysics Integrated Observatory (HELIO) webservices. It currently supports image data from major solar missions (e.g., SDO, SOHO, STEREO, and IRIS), time-series data from mis...

  13. Selected regulation of gastrointestinal acid-base secretion and tissue metabolism for the diamondback water snake and Burmese python.

    Science.gov (United States)

    Secor, Stephen M; Taylor, Josi R; Grosell, Martin

    2012-01-01

    Snakes exhibit an apparent dichotomy in the regulation of gastrointestinal (GI) performance with feeding and fasting; frequently feeding species modestly regulate intestinal function whereas infrequently feeding species rapidly upregulate and downregulate intestinal function with the start and completion of each meal, respectively. The downregulatory response with fasting for infrequently feeding snakes is hypothesized to be a selective attribute that reduces energy expenditure between meals. To ascertain the links between feeding habit, whole-animal metabolism, and GI function and metabolism, we measured preprandial and postprandial metabolic rates and gastric and intestinal acid-base secretion, epithelial conductance and oxygen consumption for the frequently feeding diamondback water snake (Nerodia rhombifer) and the infrequently feeding Burmese python (Python molurus). Independent of body mass, Burmese pythons possess a significantly lower standard metabolic rate and respond to feeding with a much larger metabolic response compared with water snakes. While fasting, pythons cease gastric acid and intestinal base secretion, both of which are stimulated with feeding. In contrast, fasted water snakes secreted gastric acid and intestinal base at rates similar to those of digesting snakes. We observed no difference between fasted and fed individuals for either species in gastric or intestinal transepithelial potential and conductance, with the exception of a significantly greater gastric transepithelial potential for fed pythons at the start of titration. Water snakes experienced no significant change in gastric or intestinal metabolism with feeding. Fed pythons, in contrast, experienced a near-doubling of gastric metabolism and a tripling of intestinal metabolic rate. For fasted individuals, the metabolic rate of the stomach and small intestine was significantly lower for pythons than for water snakes. The fasting downregulation of digestive function for pythons is

  14. Saccular lung cannulation in a ball python (Python regius) to treat a tracheal obstruction.

    Science.gov (United States)

    Myers, Debbie A; Wellehan, James F X; Isaza, Ramiro

    2009-03-01

    An adult male ball python (Python regius) presented in a state of severe dyspnea characterized by open-mouth breathing and vertical positioning of the head and neck. The animal had copious discharge in the tracheal lumen acting as an obstruction. A tube was placed through the body wall into the caudal saccular aspect of the lung to allow the animal to breathe while treatment was initiated. The ball python's dyspnea immediately improved. Diagnostics confirmed a bacterial respiratory infection with predominantly Providencia rettgeri. The saccular lung (air sac) tube was removed after 13 days. Pulmonary endoscopy before closure showed minimal damage with a small amount of hemorrhage in the surrounding muscle tissue. Respiratory disease is a common occurrence in captive snakes and can be associated with significant morbidity and mortality. Saccular lung cannulation is a relatively simple procedure that can alleviate tracheal narrowing or obstruction, similar to air sac cannulation in birds.

  15. PyMOOSE: interoperable scripting in Python for MOOSE

    OpenAIRE

    Subhasis Ray; Bhalla, Upinder S.

    2008-01-01

    Python is emerging as a common scripting language for simulators. This opens up many possibilities for interoperability in the form of analysis, interfaces, and communications between simulators. We report the integration of Python scripting with the Multi-scale Object Oriented Simulation Environment (MOOSE). MOOSE is a general-purpose simulation system for compartmental neuronal models and for models of signaling pathways based on chemical kinetics. We show how the Python-scripting version ...

  16. HOPE: Just-in-time Python compiler for astrophysical computations

    Science.gov (United States)

    Akeret, Joel; Gamper, Lukas; Amara, Adam; Refregier, Alexandre

    2014-11-01

    HOPE is a specialized Python just-in-time (JIT) compiler designed for numerical astrophysical applications. HOPE focuses on a subset of the language and is able to translate Python code into C++ while performing numerical optimization on mathematical expressions at runtime. To enable the JIT compilation, the user only needs to add a decorator to the function definition. By using HOPE, the user benefits from being able to write common numerical code in Python while getting the performance of compiled implementation.

  17. Pro Android Python with SL4A Writing Android Native Apps Using Python, Lua, and Beanshell

    CERN Document Server

    Ferrill, Paul

    2011-01-01

    Pro Android Python with SL4A is for programmers and hobbyists who want to write apps for Android devices without having to learn Java first. Paul Ferrill leads you from installing the Scripting Layer for Android (SL4A) to writing small scripts, to more complicated and interesting projects, and finally to uploading and packaging your programs to an Android device. Android runs scripts in many scripting languages, but Python, Lua, and Beanshell are particularly popular. Most programmers know more than one programming language, so that they have the best tool for whatever task they want to accomp

  18. Subspectacular nematodiasis caused by a novel Serpentirhabdias species in ball pythons (Python regius).

    Science.gov (United States)

    Hausmann, J C; Mans, C; Dreyfus, J; Reavill, D R; Lucio-Forster, A; Bowman, D D

    2015-01-01

    Subspectacular nematodiasis was diagnosed in three captive-bred juvenile ball pythons (Python regius) from two unrelated facilities within a 6-month period. The snakes were presented with similar lesions, including swelling of facial, periocular and oral tissues. Bilaterally, the subspectacular spaces were distended and filled with an opaque fluid, which contained nematodes and eggs. Histopathology showed nematodes throughout the periocular tissue, subspectacular space and subcutaneous tissue of the head. The nematodes from both facilities were morphologically indistinguishable and most closely resembled Serpentirhabdias species. Morphological characterization and genetic sequencing indicate this is a previously undescribed rhabdiasid nematode.

  19. Machine learning in Python essential techniques for predictive analysis

    CERN Document Server

    Bowles, Michael

    2015-01-01

    Learn a simpler and more effective way to analyze data and predict outcomes with Python Machine Learning in Python shows you how to successfully analyze data using only two core machine learning algorithms, and how to apply them using Python. By focusing on two algorithm families that effectively predict outcomes, this book is able to provide full descriptions of the mechanisms at work, and the examples that illustrate the machinery with specific, hackable code. The algorithms are explained in simple terms with no complex math and applied using Python, with guidance on algorithm selection, d

  20. Improvement of AMGA Python Client Library for Belle II Experiment

    Science.gov (United States)

    Kwak, Jae-Hyuck; Park, Geunchul; Huh, Taesang; Hwang, Soonwook

    2015-12-01

    This paper describes the recent improvement of the AMGA (ARDA Metadata Grid Application) python client library for the Belle II Experiment. We were drawn to the action items related to library improvement after in-depth discussions with the developer of the Belle II distributed computing system. The improvement includes client-side metadata federation support in python, DIRAC SSL library support as well as API refinement for synchronous operation. Some of the improvements have already been applied to the AMGA python client library as bundled with the Belle II distributed computing software. The recent mass Monte- Carlo (MC) production campaign shows that the AMGA python client library is reliably stable.

  1. Re-imagining a Stata/Python Combination

    Science.gov (United States)

    Fiedler, James

    2013-01-01

    At last year's Stata Conference, I presented some ideas for combining Stata and the Python programming language within a single interface. Two methods were presented: in one, Python was used to automate Stata; in the other, Python was used to send simulated keystrokes to the Stata GUI. The first method has the drawback of only working in Windows, and the second can be slow and subject to character input limits. In this presentation, I will demonstrate a method for achieving interaction between Stata and Python that does not suffer these drawbacks, and I will present some examples to show how this interaction can be useful.

  2. Ureka: A Distribution of Python and IRAF Software for Astronomy

    Science.gov (United States)

    Hirst, P.; Slocum, C.; Turner, J.; Sienkiewicz, M.; Greenfield, P.; Hogan, E.; Simpson, M.; Labrie, K.

    2014-05-01

    As astronomical data processing expands from our historical platforms into modern Python applications, users are faced with installing and maintaining large numbers of heterogeneous dependencies. A handful of scientific Python distributions make installing key packages easy, but don't cater for specific needs such as integration with IRAF. We have therefore recently released a beta version of a new astronomical software distribution for Linux and OSX, known as Ureka. Ureka is based around STScI Python and dependencies, notably Python, NumPy, IRAF, SciPy, AstroPy, Matplotlib and Tk. It also contains data reduction packages for Gemini, HST, JWST and other observatories, alongside various complementary tools.

  3. Trypanosoma cf. varani in an imported ball python (Python reginus) from Ghana.

    Science.gov (United States)

    Sato, Hiroshi; Takano, Ai; Kawabata, Hiroki; Une, Yumi; Watanabe, Haruo; Mukhtar, Maowia M

    2009-08-01

    Peripheral blood from a ball python (Python reginus) imported from Ghana was cultured in Barbour-Stoenner-Kelly (BSK) medium for Borrelia spp. isolation, resulting in the prominent appearance of free, and clusters of, trypanosomes in a variety of morphological forms. The molecular phylogenetic characterization of these cultured trypanosomes, using the small subunit rDNA, indicated that this python was infected with a species closely related to Trypanosoma varani Wenyon, 1908, originally described in the Nile monitor lizard (Varanus niloticus) from Sudan. Furthermore, nucleotide sequences of glycosomal glyceraldehyde-3-phosphate dehydrogenase gene of both isolates showed few differences. Giemsa-stained blood smears, prepared from the infected python 8 mo after the initial observation of trypanosomes in hemoculture, contained trypomastigotes with a broad body and a short, free flagellum; these most closely resembled the original description of T. varani, or T. voltariae Macfie, 1919 recorded in a black-necked spitting cobra (Naja nigricollis) from Ghana. It is highly possible that lizards and snakes could naturally share an identical trypanosome species. Alternatively, lizards and snakes in the same region might have closely related, but distinct, Trypanosoma species as a result of sympatric speciation. From multiple viewpoints, including molecular phylogenetic analyses, reappraisal of trypanosome species from a wide range of reptiles in Africa is needed to clarify the relationship of recorded species, or to unmask unrecorded species.

  4. Ball python nidovirus: a candidate etiologic agent for severe respiratory disease in Python regius.

    Science.gov (United States)

    Stenglein, Mark D; Jacobson, Elliott R; Wozniak, Edward J; Wellehan, James F X; Kincaid, Anne; Gordon, Marcus; Porter, Brian F; Baumgartner, Wes; Stahl, Scott; Kelley, Karen; Towner, Jonathan S; DeRisi, Joseph L

    2014-09-09

    A severe, sometimes fatal respiratory disease has been observed in captive ball pythons (Python regius) since the late 1990s. In order to better understand this disease and its etiology, we collected case and control samples and performed pathological and diagnostic analyses. Electron micrographs revealed filamentous virus-like particles in lung epithelial cells of sick animals. Diagnostic testing for known pathogens did not identify an etiologic agent, so unbiased metagenomic sequencing was performed. Abundant nidovirus-like sequences were identified in cases and were used to assemble the genome of a previously unknown virus in the order Nidovirales. The nidoviruses, which were not previously known to infect nonavian reptiles, are a diverse order that includes important human and veterinary pathogens. The presence of the viral RNA was confirmed in all diseased animals (n = 8) but was not detected in healthy pythons or other snakes (n = 57). Viral RNA levels were generally highest in the lung and other respiratory tract tissues. The 33.5-kb viral genome is the largest RNA genome yet described and shares canonical characteristics with other nidovirus genomes, although several features distinguish this from related viruses. This virus, which we named ball python nidovirus (BPNV), will likely establish a new genus in Torovirinae subfamily. The identification of a novel nidovirus in reptiles contributes to our understanding of the biology and evolution of related viruses, and its association with lung disease in pythons is a promising step toward elucidating an etiology for this long-standing veterinary disease. Ball pythons are popular pets because of their diverse coloration, generally nonaggressive behavior, and relatively small size. Since the 1990s, veterinarians have been aware of an infectious respiratory disease of unknown cause in ball pythons that can be fatal. We used unbiased shotgun sequencing to discover a novel virus in the order Nidovirales that was

  5. Computational physics problem solving with Python

    CERN Document Server

    Landau, Rubin H; Bordeianu, Cristian C

    2015-01-01

    The use of computation and simulation has become an essential part of the scientific process. Being able to transform a theory into an algorithm requires significant theoretical insight, detailed physical and mathematical understanding, and a working level of competency in programming. This upper-division text provides an unusually broad survey of the topics of modern computational physics from a multidisciplinary, computational science point of view. Its philosophy is rooted in learning by doing (assisted by many model programs), with new scientific materials as well as with the Python progr

  6. Scikit-spectra: Explorative Spectroscopy in Python

    Directory of Open Access Journals (Sweden)

    Adam Hughes

    2015-06-01

    Full Text Available Scikit-spectra is an intuitive framework for explorative spectroscopy in Python. Scikit-spectra leverages the Pandas library for powerful data processing to provide datastructures and an API designed for spectroscopy. Utilizing the new IPython Notebook widget system, scikit-spectra is headed towards a GUI when you want it, API when you need it approach to spectral analysis. As an application, analysis is presented of the surface-plasmon resonance shift in a solution of gold nanoparticles induced by proteins binding to the gold’s surface. Please refer to the scikit-spectra website for full documentation and support: http://hugadams.github.io/scikit-spectra/

  7. MPDAF: MUSE Python Data Analysis Framework

    Science.gov (United States)

    Bacon, Roland; Piqueras, Laure; Conseil, Simon; Richard, Johan; Shepherd, Martin

    2016-11-01

    MPDAF, the MUSE Python Data Analysis Framework, provides tools to work with MUSE-specific data (for example, raw data and pixel tables), and with more general data such as spectra, images, and data cubes. Originally written to work with MUSE data, it can also be used for other data, such as that from the Hubble Space Telescope. MPDAF also provides MUSELET, a SExtractor-based tool to detect emission lines in a data cube, and a format to gather all the information on a source in one FITS file. MPDAF was developed and is maintained by CRAL (Centre de Recherche Astrophysique de Lyon).

  8. TRIPPy: Python-based Trailed Source Photometry

    Science.gov (United States)

    Fraser, Wesley C.; Alexandersen, Mike; Schwamb, Megan E.; Marsset, Michael E.; Pike, Rosemary E.; Kavelaars, JJ; Bannister, Michele T.; Benecchi, Susan; Delsanti, Audrey

    2016-05-01

    TRIPPy (TRailed Image Photometry in Python) uses a pill-shaped aperture, a rectangle described by three parameters (trail length, angle, and radius) to improve photometry of moving sources over that done with circular apertures. It can generate accurate model and trailed point-spread functions from stationary background sources in sidereally tracked images. Appropriate aperture correction provides accurate, unbiased flux measurement. TRIPPy requires numpy, scipy, matplotlib, Astropy (ascl:1304.002), and stsci.numdisplay; emcee (ascl:1303.002) and SExtractor (ascl:1010.064) are optional.

  9. scikit-image: image processing in Python.

    Science.gov (United States)

    van der Walt, Stéfan; Schönberger, Johannes L; Nunez-Iglesias, Juan; Boulogne, François; Warner, Joshua D; Yager, Neil; Gouillart, Emmanuelle; Yu, Tony

    2014-01-01

    scikit-image is an image processing library that implements algorithms and utilities for use in research, education and industry applications. It is released under the liberal Modified BSD open source license, provides a well-documented API in the Python programming language, and is developed by an active, international team of collaborators. In this paper we highlight the advantages of open source to achieve the goals of the scikit-image library, and we showcase several real-world image processing applications that use scikit-image. More information can be found on the project homepage, http://scikit-image.org.

  10. scikit-image: image processing in Python

    Directory of Open Access Journals (Sweden)

    Stéfan van der Walt

    2014-06-01

    Full Text Available scikit-image is an image processing library that implements algorithms and utilities for use in research, education and industry applications. It is released under the liberal Modified BSD open source license, provides a well-documented API in the Python programming language, and is developed by an active, international team of collaborators. In this paper we highlight the advantages of open source to achieve the goals of the scikit-image library, and we showcase several real-world image processing applications that use scikit-image. More information can be found on the project homepage, http://scikit-image.org.

  11. PYTHON-based Physics Analysis Environment for LHCb

    CERN Document Server

    Belyaev, I; Mato, P; Barrand, G; Tsaregorodtsev, A; de Oliveira, E

    2004-01-01

    BENDER is the PYTHON based physics analysis application for LHCb. It combines the best features of the underlying GAUDI software architecture with the flexibility of the PYTHON scripting language and provides end-users with a friendly physics analysis oriented environment.

  12. pupyMPI - MPI implemented in pure Python

    DEFF Research Database (Denmark)

    Bromer, Rune; Hantho, Frederik; Vinter, Brian

    2011-01-01

    As distributed memory systems have become common, the de facto standard for communication is still the Message Passing Interface (MPI). pupyMPI is a pure Python implementation of a broad subset of the MPI 1.3 specifications that allows Python programmers to utilize multiple CPUs with datatypes...

  13. Expyriment: A Python library for cognitive and neuroscientific experiments

    NARCIS (Netherlands)

    Krause, F.; Lindemann, O.

    2014-01-01

    Expyriment is an open-source and platform-independent lightweight Python library for designing and conducting timing-critical behavioral and neuroimaging experiments. The major goal is to provide a well-structured Python library for script-based experiment development, with a high priority being the

  14. Pyndri: a Python Interface to the Indri Search Engine

    NARCIS (Netherlands)

    Van Gysel, C.; Kanoulas, E.; de Rijke, M.; Jose, J.M.; Hauff, C.; Altıngovde, I.S.; Song, D.; Albakour, D.; Watt, S.; Tait, J.

    2017-01-01

    We introduce pyndri, a Python interface to the Indri search engine. Pyndri allows to access Indri indexes from Python at two levels: (1) dictionary and tokenized document collection, (2) evaluating queries on the index. We hope that with the release of pyndri, we will stimulate reproducible, open

  15. Reimplementing a Multi-Agent System in Python

    DEFF Research Database (Denmark)

    Villadsen, Jørgen; Jensen, Andreas Schmidt; Ettienne, Mikko Berggren

    2013-01-01

    We provide a brief description of our Python-DTU system, including the overall design, the tools and the algorithms that we used in the Multi-Agent Programming Contest 2012, where the scenario was called Agents on Mars like in 2011. Our solution is an improvement of our Python-DTU system from last...

  16. SpiceyPy, a Python Wrapper for SPICE

    Science.gov (United States)

    Annex, A.

    2017-06-01

    SpiceyPy is an open source Python wrapper for the NAIF SPICE toolkit. It is available for macOS, Linux, and Windows platforms and for Python versions 2.7.x and 3.x as well as Anaconda. SpiceyPy can be installed by running: “pip install spiceypy.”

  17. MEG and EEG data analysis with MNE-Python

    Directory of Open Access Journals (Sweden)

    Alexandre eGramfort

    2013-12-01

    Full Text Available Magnetoencephalography and electroencephalography (M/EEG measure the weakelectromagnetic signals generated by neuronal activity in the brain. Using thesesignals to characterize and locate neural activation in the brain is achallenge that requires expertise in physics, signalprocessing, statistics, and numerical methods. As part of the MNE softwaresuite, MNE-Python is an open-sourcesoftware package that addresses this challenge by providingstate-of-the-art algorithms implemented in Python that cover multiple methods of data preprocessing, source localization, statistical analysis, and estimation offunctional connectivity between distributed brain regions.All algorithms and utility functions are implemented in a consistent manner with well-documented interfaces, enabling users to create M/EEG data analysispipelines by writing Python scripts.Moreover, MNE-Python is tightly integrated with the core Python libraries for scientificcomptutation (Numpy, Scipy and visualization (matplotlib and Mayavi, as wellas the greater neuroimaging ecosystem in Python via the Nibabel package. The code is provided under the new BSD licenseallowing code reuse, even in commercial products. Although MNE-Python has onlybeen under heavy development for a couple of years, it has rapidly evolved withexpanded analysis capabilities and pedagogical tutorials because multiple labs have collaborated during code development to help share best practices.MNE-Python also gives easy access to preprocessed datasets,helping users to get started quickly and facilitating reproducibility ofmethods by other researchers. Full documentation, including dozens ofexamples, is available at http://martinos.org/mne.

  18. A student's guide to Python for physical modeling

    CERN Document Server

    Kinder, Jesse M

    2015-01-01

    Python is a computer programming language that is rapidly gaining popularity throughout the sciences. A Student’s Guide to Python for Physical Modeling aims to help you, the student, teach yourself enough of the Python programming language to get started with physical modeling. You will learn how to install an open-source Python programming environment and use it to accomplish many common scientific computing tasks: importing, exporting, and visualizing data; numerical analysis; and simulation. No prior programming experience is assumed. This tutorial focuses on fundamentals and introduces a wide range of useful techniques, including: Basic Python programming and scripting Numerical arrays Two- and three-dimensional graphics Monte Carlo simulations Numerical methods, including solving ordinary differential equations Image processing Animation Numerous code samples and exercises—with solutions—illustrate new ideas as they are introduced. A website that accompanies this guide provides additional resourc...

  19. Report on the observed response of Javan lutungs (Trachypithecus auratus mauritius) upon encountering a reticulated python (Python reticulatus).

    Science.gov (United States)

    Tsuji, Yamato; Prayitno, Bambang; Suryobroto, Bambang

    2016-04-01

    We observed an encounter between a reticulated python (Python reticulatus) and a group of wild Javan lutungs (Trachypithecus auratus mauritius) at the Pangandaran Nature Reserve, West Java, Indonesia. A python (about 2 m in length) moved toward a group of lutungs in the trees. Upon seeing the python, an adult male and several adult female lutungs began to emit alarm calls. As the python approached, two adult and one sub-adult female jumped onto a branch near the python and began mobbing the python by shaking the branch. During the mobbing, other individuals in the group (including an adult lutung male) remained nearby but did not participate. The python then rolled into a ball-like shape and stopped moving, at which point the lutungs moved away. The total duration of the encounter was about 40 min, during which time the lutungs stopped feeding and grooming. Group cohesiveness during and after the encounter was greater than that before the encounter, indicating that lutungs adjust their daily activity in response to potential predation risk.

  20. Stimfit: quantifying electrophysiological data with Python

    Directory of Open Access Journals (Sweden)

    Segundo Jose Guzman

    2014-02-01

    Full Text Available Intracellular electrophysiological recordings provide crucial insights into elementary neuronal signals such as action potentials and synaptic currents. Analyzing and interpreting these signals is essential for a quantitative understanding of neuronal information processing, and requires both fast data visualization and ready access to complex analysis routines. To achieve this goal, we have developed Stimfit, a free software package for cellular neurophysiology with a Python scripting interface and a built-in Python shell. The program supports most standard file formats for cellular neurophysiology and other biomedical signals through the Biosig library. To quantify and interpret the activity of single neurons and communication between neurons, the program includes algorithms to characterize the kinetics of presynaptic action potentials and postsynaptic currents, estimate latencies between pre- and postsynaptic events, and detect spontaneously occurring events. We validate and benchmark these algorithms, give estimation errors, and provide sample use cases, showing that Stimfit represents an efficient, accessible and extensible way to accurately analyze and interpret neuronal signals.

  1. Python Program to Select HII Region Models

    Science.gov (United States)

    Miller, Clare; Lamarche, Cody; Vishwas, Amit; Stacey, Gordon J.

    2016-01-01

    HII regions are areas of singly ionized Hydrogen formed by the ionizing radiaiton of upper main sequence stars. The infrared fine-structure line emissions, particularly Oxygen, Nitrogen, and Neon, can give important information about HII regions including gas temperature and density, elemental abundances, and the effective temperature of the stars that form them. The processes involved in calculating this information from observational data are complex. Models, such as those provided in Rubin 1984 and those produced by Cloudy (Ferland et al, 2013) enable one to extract physical parameters from observational data. However, the multitude of search parameters can make sifting through models tedious. I digitized Rubin's models and wrote a Python program that is able to take observed line ratios and their uncertainties and find the Rubin or Cloudy model that best matches the observational data. By creating a Python script that is user friendly and able to quickly sort through models with a high level of accuracy, this work increases efficiency and reduces human error in matching HII region models to observational data.

  2. SunPy: Solar Physics in Python

    Science.gov (United States)

    Ryan, Daniel; Christe, Steven; Mumford, Stuart; Perez Suarez, David; Ireland, Jack; Shih, Albert Y.; Inglis, Andrew; Liedtke, Simon; Hewett, Russel

    2015-04-01

    SunPy is a community-developed open-source software library for solar physics. It is written in Python, a free, cross-platform, general-purpose, high-level programming language which is being increasingly adopted throughout the scientific community as well as further afield. This has resulted in a wide array of software packages useful for scientific computing, from numerical computation (NumPy, SciPy, etc.), to machine learning (scifitlearn), to visualization and plotting (matplotlib). SunPy aims to provide required specialised software for analysing solar and heliospheric datasets in Python. The current version is 0.5 with 0.6 expected to be released later this year. SunPy provides solar data access through integration with the Virtual Solar Observatory (VSO), the Heliophysics Event Knowledgebase (HEK), and the HELiophysics Integrated Observatory (HELIO) webservices. It supports common data types from major solar missions such as images (SDO/AIA, STEREO, PROBA2/SWAP etc.), time series (GOES/XRS, SDO/EVE, PROBA2/LYRA), and radio spectra (e-Callisto, STEREO/WAVES). SunPy’s code base is publicly available through github.com and can be contributed to by anyone. In this poster we demonstrate SunPy’s functionality and future goals of the project. We also encourage interested users to become involved in further developing SunPy.

  3. Python3 Programming Environment Based on Web%基于Web的Python3编程环境

    Institute of Scientific and Technical Information of China (English)

    刘志凯; 张太红; 刘磊; 罗鹏

    2015-01-01

    为了简化编程环境,增强编程体验,提出了一种基于web的python3编程环境。该应用的web环境采用基于python 的 Django框架,通过将 python3代码转换成浏览器可执行的JavaScript 脚本,达到在浏览器中运行python3代码的目的。与传统的python3编程环境相比,该编程环境不用在本地安装部署任何开发环境,即可实现远程编程和代码共享。实验结果表明,该编程环境可行性强,具有良好的稳定性和并发性。%In order to simplify the programming environment, and enhance programming experience, we propose a web-based python3 programming environment. The web environment of this application uses python-based Django framework. This application can achieve the purpose of running python3 code in the browser by convering the python3 code into browser executable JavaScript script. Compared with traditional python3 programming environment, this programming environment can achieve remote programming and code sharing without installing and deploying any development environment locally. Experimental results shows that our programming environment has strong feasibility, good stability and good concurrency.

  4. Programming for computations Python : a gentle introduction to numerical simulations with Python

    CERN Document Server

    Linge, Svein

    2016-01-01

    This book presents computer programming as a key method for solving mathematical problems. There are two versions of the book, one for MATLAB and one for Python. The book was inspired by the Springer book TCSE 6: A Primer on Scientific Programming with Python (by Langtangen), but the style is more accessible and concise, in keeping with the needs of engineering students. The book outlines the shortest possible path from no previous experience with programming to a set of skills that allows the students to write simple programs for solving common mathematical problems with numerical methods in engineering and science courses. The emphasis is on generic algorithms, clean design of programs, use of functions, and automatic tests for verification.

  5. Lectin histochemical aspects of mucus function in the oesophagus of the reticulated python (Python reticulatus).

    Science.gov (United States)

    Meyer, W; Luz, S; Schnapper, A

    2009-08-01

    Using lectin histochemistry, the study characterizes basic functional aspects of the mucus produced by the oesophageal epithelium of the Reticulated python (Python reticulatus). Reaction staining varied as related to the two epithelium types present, containing goblet cells and ciliary cells. Remarkable intensities were achieved especially in the luminal mucus layer and the fine mucus covering the epithelial ciliary border for Con A (alpha-D-Man; alpha-D-Glc) as part of neutral glycoproteins, Limax flavus agglutinin (NeuNac = NeuNgc), emphasizing that water binding hyaluronan provides a hydrated interface conductive to the passage of material and UEA-I (alpha-L-Fuc), corroborating the view that fucose-rich highly viscous mucus is helpful against mechanical stress during prey transport.

  6. PyMOOSE: Interoperable Scripting in Python for MOOSE.

    Science.gov (United States)

    Ray, Subhasis; Bhalla, Upinder S

    2008-01-01

    Python is emerging as a common scripting language for simulators. This opens up many possibilities for interoperability in the form of analysis, interfaces, and communications between simulators. We report the integration of Python scripting with the Multi-scale Object Oriented Simulation Environment (MOOSE). MOOSE is a general-purpose simulation system for compartmental neuronal models and for models of signaling pathways based on chemical kinetics. We show how the Python-scripting version of MOOSE, PyMOOSE, combines the power of a compiled simulator with the versatility and ease of use of Python. We illustrate this by using Python numerical libraries to analyze MOOSE output online, and by developing a GUI in Python/Qt for a MOOSE simulation. Finally, we build and run a composite neuronal/signaling model that uses both the NEURON and MOOSE numerical engines, and Python as a bridge between the two. Thus PyMOOSE has a high degree of interoperability with analysis routines, with graphical toolkits, and with other simulators.

  7. PyMOOSE: interoperable scripting in Python for MOOSE

    Directory of Open Access Journals (Sweden)

    Subhasis Ray

    2008-12-01

    Full Text Available Python is emerging as a common scripting language for simulators. This opens up many possibilities for interoperability in the form of analysis, interfaces, and communications between simulators. We report the integration of Python scripting with the Multi-scale Object Oriented Simulation Environment (MOOSE. MOOSE is a general-purpose simulation system for compartmental neuronal models and for models of signaling pathways based on chemical kinetics. We show how the Python-scripting version of MOOSE, PyMOOSE, combines the power of a compiled simulator with the versatility and ease of use of Python. We illustrate this by using Python numerical libraries to analyze MOOSE output online, and by developing a GUI in Python/Qt for a MOOSE simulation. Finally, we build and run a composite neuronal/signaling model that uses both the NEURON and MOOSE numerical engines, and Python as a bridge between the two. Thus PyMOOSE has a high degree of interoperability with analysis routines, with graphical toolkits, and with other simulators.

  8. The Burmese python genome reveals the molecular basis for extreme adaptation in snakes.

    Science.gov (United States)

    Castoe, Todd A; de Koning, A P Jason; Hall, Kathryn T; Card, Daren C; Schield, Drew R; Fujita, Matthew K; Ruggiero, Robert P; Degner, Jack F; Daza, Juan M; Gu, Wanjun; Reyes-Velasco, Jacobo; Shaney, Kyle J; Castoe, Jill M; Fox, Samuel E; Poole, Alex W; Polanco, Daniel; Dobry, Jason; Vandewege, Michael W; Li, Qing; Schott, Ryan K; Kapusta, Aurélie; Minx, Patrick; Feschotte, Cédric; Uetz, Peter; Ray, David A; Hoffmann, Federico G; Bogden, Robert; Smith, Eric N; Chang, Belinda S W; Vonk, Freek J; Casewell, Nicholas R; Henkel, Christiaan V; Richardson, Michael K; Mackessy, Stephen P; Bronikowski, Anne M; Bronikowsi, Anne M; Yandell, Mark; Warren, Wesley C; Secor, Stephen M; Pollock, David D

    2013-12-17

    Snakes possess many extreme morphological and physiological adaptations. Identification of the molecular basis of these traits can provide novel understanding for vertebrate biology and medicine. Here, we study snake biology using the genome sequence of the Burmese python (Python molurus bivittatus), a model of extreme physiological and metabolic adaptation. We compare the python and king cobra genomes along with genomic samples from other snakes and perform transcriptome analysis to gain insights into the extreme phenotypes of the python. We discovered rapid and massive transcriptional responses in multiple organ systems that occur on feeding and coordinate major changes in organ size and function. Intriguingly, the homologs of these genes in humans are associated with metabolism, development, and pathology. We also found that many snake metabolic genes have undergone positive selection, which together with the rapid evolution of mitochondrial proteins, provides evidence for extensive adaptive redesign of snake metabolic pathways. Additional evidence for molecular adaptation and gene family expansions and contractions is associated with major physiological and phenotypic adaptations in snakes; genes involved are related to cell cycle, development, lungs, eyes, heart, intestine, and skeletal structure, including GRB2-associated binding protein 1, SSH, WNT16, and bone morphogenetic protein 7. Finally, changes in repetitive DNA content, guanine-cytosine isochore structure, and nucleotide substitution rates indicate major shifts in the structure and evolution of snake genomes compared with other amniotes. Phenotypic and physiological novelty in snakes seems to be driven by system-wide coordination of protein adaptation, gene expression, and changes in the structure of the genome.

  9. The Burmese python genome reveals the molecular basis for extreme adaptation in snakes

    Science.gov (United States)

    Castoe, Todd A.; de Koning, A. P. Jason; Hall, Kathryn T.; Card, Daren C.; Schield, Drew R.; Fujita, Matthew K.; Ruggiero, Robert P.; Degner, Jack F.; Daza, Juan M.; Gu, Wanjun; Reyes-Velasco, Jacobo; Shaney, Kyle J.; Castoe, Jill M.; Fox, Samuel E.; Poole, Alex W.; Polanco, Daniel; Dobry, Jason; Vandewege, Michael W.; Li, Qing; Schott, Ryan K.; Kapusta, Aurélie; Minx, Patrick; Feschotte, Cédric; Uetz, Peter; Ray, David A.; Hoffmann, Federico G.; Bogden, Robert; Smith, Eric N.; Chang, Belinda S. W.; Vonk, Freek J.; Casewell, Nicholas R.; Henkel, Christiaan V.; Richardson, Michael K.; Mackessy, Stephen P.; Bronikowski, Anne M.; Yandell, Mark; Warren, Wesley C.; Secor, Stephen M.; Pollock, David D.

    2013-01-01

    Snakes possess many extreme morphological and physiological adaptations. Identification of the molecular basis of these traits can provide novel understanding for vertebrate biology and medicine. Here, we study snake biology using the genome sequence of the Burmese python (Python molurus bivittatus), a model of extreme physiological and metabolic adaptation. We compare the python and king cobra genomes along with genomic samples from other snakes and perform transcriptome analysis to gain insights into the extreme phenotypes of the python. We discovered rapid and massive transcriptional responses in multiple organ systems that occur on feeding and coordinate major changes in organ size and function. Intriguingly, the homologs of these genes in humans are associated with metabolism, development, and pathology. We also found that many snake metabolic genes have undergone positive selection, which together with the rapid evolution of mitochondrial proteins, provides evidence for extensive adaptive redesign of snake metabolic pathways. Additional evidence for molecular adaptation and gene family expansions and contractions is associated with major physiological and phenotypic adaptations in snakes; genes involved are related to cell cycle, development, lungs, eyes, heart, intestine, and skeletal structure, including GRB2-associated binding protein 1, SSH, WNT16, and bone morphogenetic protein 7. Finally, changes in repetitive DNA content, guanine-cytosine isochore structure, and nucleotide substitution rates indicate major shifts in the structure and evolution of snake genomes compared with other amniotes. Phenotypic and physiological novelty in snakes seems to be driven by system-wide coordination of protein adaptation, gene expression, and changes in the structure of the genome. PMID:24297902

  10. Reduction of blood oxygen levels enhances postprandial cardiac hypertrophy in Burmese python (Python bivittatus).

    Science.gov (United States)

    Slay, Christopher E; Enok, Sanne; Hicks, James W; Wang, Tobias

    2014-05-15

    Physiological cardiac hypertrophy is characterized by reversible enlargement of cardiomyocytes and changes in chamber architecture, which increase stroke volume and via augmented convective oxygen transport. Cardiac hypertrophy is known to occur in response to repeated elevations of O2 demand and/or reduced O2 supply in several species of vertebrate ectotherms, including postprandial Burmese pythons (Python bivittatus). Recent data suggest postprandial cardiac hypertrophy in P. bivittatus is a facultative rather than obligatory response to digestion, though the triggers of this response are unknown. Here, we hypothesized that an O2 supply-demand mismatch stimulates postprandial cardiac enlargement in Burmese pythons. To test this hypothesis, we rendered animals anemic prior to feeding, essentially halving blood oxygen content during the postprandial period. Fed anemic animals had heart rates 126% higher than those of fasted controls, which, coupled with a 71% increase in mean arterial pressure, suggests fed anemic animals were experiencing significantly elevated cardiac work. We found significant cardiac hypertrophy in fed anemic animals, which exhibited ventricles 39% larger than those of fasted controls and 28% larger than in fed controls. These findings support our hypothesis that those animals with a greater magnitude of O2 supply-demand mismatch exhibit the largest hearts. The 'low O2 signal' stimulating postprandial cardiac hypertrophy is likely mediated by elevated ventricular wall stress associated with postprandial hemodynamics.

  11. Effect of laser treatment on first-intention incisional wound healing in ball pythons (Python regius).

    Science.gov (United States)

    Cole, Grayson L; Lux, Cassie N; Schumacher, Juergen P; Seibert, Rachel L; Sadler, Ryan A; Henderson, Andrea L; Odoi, Agricola; Newkirk, Kim M

    2015-10-01

    To evaluate effects of laser treatment on incisional wound healing in ball pythons (Python regius). 6 healthy adult ball pythons. Snakes were sedated, a skin biopsy specimen was collected for histologic examination, and eight 2-cm skin incisions were made in each snake; each incision was closed with staples (day 0). Gross evaluation of all incision sites was performed daily for 30 days, and a wound score was assigned. Four incisions of each snake were treated (5 J/cm(2) and a wavelength of 980 nm on a continuous wave sequence) by use of a class 4 laser once daily for 7 consecutive days; the other 4 incisions were not treated. Two excisional skin biopsy specimens (1 control and 1 treatment) were collected from each snake on days 2, 7, 14, and 30 and evaluated microscopically. Scores were assigned for total inflammation, degree of fibrosis, and collagen maturity. Generalized linear models were used to investigate the effect of treatment on each variable. Wound scores for laser-treated incisions were significantly better than scores for control incisions on day 2 but not at other time points. There were no significant differences in necrosis, fibroplasia, inflammation, granuloma formation, or bacterial contamination between control and treatment groups. Collagen maturity was significantly better for the laser-treated incisions on day 14. Laser treatment resulted in a significant increase in collagen maturity at day 14 but did not otherwise significantly improve healing of skin incisions.

  12. Preliminary single-dose pharmacokinetics of marbofloxacin in ball pythons (Python regius).

    Science.gov (United States)

    Coke, Rob L; Isaza, Ramiro; Koch, David E; Pellerin, Marie A; Hunter, Robert P

    2006-03-01

    Pharmacokinetics of marbofloxacin in two male and four female adult ball pythons (Python regius) was determined after i.v. and p.o. administration of a single dose. Using a crossover design, each snake was given a single 10 mg/kg dose of marbofloxacin i.v. and p.o. Blood samples were collected prior to and 0.5, 1, 1.5, 3, 6, 12, and 24 hr after marbofloxacin administration. Marbofloxacin was quantitated by use of liquid chromatography-mass spectrometry. Following p.o. administration, marbofloxacin had a peak plasma concentration (Cmax) of 9.40 microg/ml and a time to Cmax (Tmax) of 9.0 hr. Based on the plasma pharmacokinetics generated in this study and pending any further studies to evaluate potential toxicity and multi-dose pharmacokinetics, we suggest a dosage for marbofloxacin in ball pythons of 10 mg/kg p.o. at least every 48 hr, depending on the sensitivity of the pathogen and as a basis for further research.

  13. Implementation of quantum game theory simulations using Python

    Science.gov (United States)

    Madrid S., A.

    2013-05-01

    This paper provides some examples about quantum games simulated in Python's programming language. The quantum games have been developed with the Sympy Python library, which permits solving quantum problems in a symbolic form. The application of these methods of quantum mechanics to game theory gives us more possibility to achieve results not possible before. To illustrate the results of these methods, in particular, there have been simulated the quantum battle of the sexes, the prisoner's dilemma and card games. These solutions are able to exceed the classic bottle neck and obtain optimal quantum strategies. In this form, python demonstrated that is possible to do more advanced and complicated quantum games algorithms.

  14. PyCSP - Communicating Sequential Processes for Python

    DEFF Research Database (Denmark)

    Vinter, Brian; Bjørndalen, John Markus; Anshus, Otto Johan

    The Python programming language is effective for rapidly specifying programs and experimenting with them. It is increasingly being used in computational sciences, and in teaching computer science. CSP is effective for describing concurrency. It has become especially relevant with the emergence...... of commodity multi-core architectures. We are interested in exploring how a combination of Python and CSP can benefit both the computational sciences and the hands-on teaching of distributed and parallel computing in computer science. To make this possible, we have developed PyCSP, a CSP library for Python. Py...

  15. PNet: A Python Library for Petri Net Modeling and Simulation

    Directory of Open Access Journals (Sweden)

    Zhu En Chay

    2016-07-01

    Full Text Available Petri Net is a formalism to describe changes between 2 or more states across discrete time and has been used to model many systems. We present PNet – a pure Python library for Petri Net modeling and simulation in Python programming language. The design of PNet focuses on reducing the learning curve needed to define a Petri Net by using a text-based language rather than programming constructs to define transition rules. Complex transition rules can be refined as regular Python functions. To demonstrate the simplicity of PNet, we present 2 examples – bread baking, and epidemiological models.

  16. Report on the ''ESO Python Boot Camp — Pilot Version''

    Science.gov (United States)

    Dias, B.; Milli, J.

    2017-03-01

    The Python programming language is becoming very popular within the astronomical community. Python is a high-level language with multiple applications including database management, handling FITS images and tables, statistical analysis, and more advanced topics. Python is a very powerful tool both for astronomical publications and for observatory operations. Since the best way to learn a new programming language is through practice, we therefore organised a two-day hands-on workshop to share expertise among ESO colleagues. We report here the outcome and feedback from this pilot event.

  17. Plyades: A Python Library for Space Mission Design

    CERN Document Server

    Eichhorn, Helge

    2016-01-01

    Plyades: A Python Library for Space Mission Design Designing a space mission is a computation-heavy task. Software tools that conduct the necessary numerical simulations and optimizations are therefore indispensable. The usability of existing software, written in Fortran and MATLAB, suffers because of high complexity, low levels of abstraction and out-dated programming practices. We propose Python as a viable alternative for astrodynamics tools and demonstrate the proof-of-concept library Plyades which combines powerful features with Pythonic ease of use.

  18. drive-casa: Python interface for CASA scripting

    Science.gov (United States)

    Staley, Tim D.

    2015-04-01

    drive-casa provides a Python interface for scripting of CASA (ascl.net/1107.013) subroutines from a separate Python process, allowing for utilization alongside other Python packages which may not easily be installed into the CASA environment. This is particularly useful for embedding use of CASA subroutines within a larger pipeline. drive-casa runs plain-text casapy scripts directly; alternatively, the package includes a set of convenience routines which try to adhere to a consistent style and make it easy to chain together successive CASA reduction commands to generate a command-script programmatically.

  19. A Python Calculator for Supernova Remnant Evolution

    Science.gov (United States)

    Leahy, D. A.; Williams, J. E.

    2017-05-01

    A freely available Python code for modeling supernova remnant (SNR) evolution has been created. This software is intended for two purposes: to understand SNR evolution and to use in modeling observations of SNR for obtaining good estimates of SNR properties. It includes all phases for the standard path of evolution for spherically symmetric SNRs. In addition, alternate evolutionary models are available, including evolution in a cloudy ISM, the fractional energy-loss model, and evolution in a hot low-density ISM. The graphical interface takes in various parameters and produces outputs such as shock radius and velocity versus time, as well as SNR surface brightness profile and spectrum. Some interesting properties of SNR evolution are demonstrated using the program.

  20. A primer on scientific programming with Python

    CERN Document Server

    Langtangen, Hans Petter

    2016-01-01

    The book serves as a first introduction to computer programming of scientific applications, using the high-level Python language. The exposition is example and problem-oriented, where the applications are taken from mathematics, numerical calculus, statistics, physics, biology and finance. The book teaches "Matlab-style" and procedural programming as well as object-oriented programming. High school mathematics is a required background and it is advantageous to study classical and numerical one-variable calculus in parallel with reading this book. Besides learning how to program computers, the reader will also learn how to solve mathematical problems, arising in various branches of science and engineering, with the aid of numerical methods and programming. By blending programming, mathematics and scientific applications, the book lays a solid foundation for practicing computational science. From the reviews: Langtangen … does an excellent job of introducing programming as a set of skills in problem solving. ...

  1. A primer on scientific programming with Python

    CERN Document Server

    Langtangen, Hans Petter

    2014-01-01

    The book serves as a first introduction to computer programming of scientific applications, using the high-level Python language. The exposition is example and problem-oriented, where the applications are taken from mathematics, numerical calculus, statistics, physics, biology and finance. The book teaches "Matlab-style" and procedural programming as well as object-oriented programming. High school mathematics is a required background and it is advantageous to study classical and numerical one-variable calculus in parallel with reading this book. Besides learning how to program computers, the reader will also learn how to solve mathematical problems, arising in various branches of science and engineering, with the aid of numerical methods and programming. By blending programming, mathematics and scientific applications, the book lays a solid foundation for practicing computational science. From the reviews: Langtangen … does an excellent job of introducing programming as a set of skills in problem solving. ...

  2. ScrumPy: metabolic modelling with Python.

    Science.gov (United States)

    Poolman, M G

    2006-09-01

    ScrumPy is a software package used for the definition and analysis of metabolic models. It is written using the Python programming language that is also used as a user interface. ScrumPy has features for both kinetic and structural modelling, but the emphasis is on structural modelling and those features of most relevance to analysis of large (genome-scale) models. The aim is at describing ScrumPy's functionality to readers with some knowledge of metabolic modelling, but implementation, programming and other computational details are omitted. ScrumPy is released under the Gnu Public Licence, and available for download from http://mudshark.brookes.ac.uk/ ScrumPy.

  3. IRISpy: Analyzing IRIS Data in Python

    Science.gov (United States)

    Ryan, Daniel; Christe, Steven; Mumford, Stuart; Baruah, Ankit; Timothy, Shelbe; Pereira, Tiago; De Pontieu, Bart

    2017-08-01

    IRISpy is a new community-developed open-source software library for analysing IRIS level 2 data. It is written in Python, a free, cross-platform, general-purpose, high-level programming language. A wide array of scientific computing software packages have already been developed in Python, from numerical computation (NumPy, SciPy, etc.), to visualization and plotting (matplotlib), to solar-physics-specific data analysis (SunPy). IRISpy is currently under development as a SunPy-affiliated package which means it depends on the SunPy library, follows similar standards and conventions, and is developed with the support of of the SunPy development team. IRISpy’s has two primary data objects, one for analyzing slit-jaw imager data and another for analyzing spectrograph data. Both objects contain basic slicing, indexing, plotting, and animating functionality to allow users to easily inspect, reduce and analyze the data. As part of this functionality the objects can output SunPy Maps, TimeSeries, Spectra, etc. of relevant data slices for easier inspection and analysis. Work is also ongoing to provide additional data analysis functionality including derivation of systematic measurement errors (e.g. readout noise), exposure time correction, residual wavelength calibration, radiometric calibration, and fine scale pointing corrections. IRISpy’s code base is publicly available through github.com and can be contributed to by anyone. In this poster we demonstrate IRISpy’s functionality and future goals of the project. We also encourage interested users to become involved in further developing IRISpy.

  4. Whole transcriptome analysis of the fasting and fed Burmese python heart: insights into extreme physiological cardiac adaptation.

    Science.gov (United States)

    Wall, Christopher E; Cozza, Steven; Riquelme, Cecilia A; McCombie, W Richard; Heimiller, Joseph K; Marr, Thomas G; Leinwand, Leslie A

    2011-01-01

    The infrequently feeding Burmese python (Python molurus) experiences significant and rapid postprandial cardiac hypertrophy followed by regression as digestion is completed. To begin to explore the molecular mechanisms of this response, we have sequenced and assembled the fasted and postfed Burmese python heart transcriptomes with Illumina technology using the chicken (Gallus gallus) genome as a reference. In addition, we have used RNA-seq analysis to identify differences in the expression of biological processes and signaling pathways between fasted, 1 day postfed (DPF), and 3 DPF hearts. Out of a combined transcriptome of ∼2,800 mRNAs, 464 genes were differentially expressed. Genes showing differential expression at 1 DPF compared with fasted were enriched for biological processes involved in metabolism and energetics, while genes showing differential expression at 3 DPF compared with fasted were enriched for processes involved in biogenesis, structural remodeling, and organization. Moreover, we present evidence for the activation of physiological and not pathological signaling pathways in this rapid, novel model of cardiac growth in pythons. Together, our data provide the first comprehensive gene expression profile for a reptile heart.

  5. Rabacus: A Python Package for Analytic Cosmological Radiative Transfer Calculations

    CERN Document Server

    Altay, Gabriel

    2015-01-01

    We describe Rabacus, a Python package for calculating the transfer of hydrogen ionizing radiation in simplified geometries relevant to astronomy and cosmology. We present example solutions for three specific cases: 1) a semi-infinite slab gas distribution in a homogeneous isotropic background, 2) a spherically symmetric gas distribution with a point source at the center, and 3) a spherically symmetric gas distribution in a homogeneous isotropic background. All problems can accommodate arbitrary spectra and density profiles as input. The solutions include a treatment of both hydrogen and helium, a self-consistent calculation of equilibrium temperatures, and the transfer of recombination radiation. The core routines are written in Fortran 90 and then wrapped in Python leading to execution speeds thousands of times faster than equivalent routines written in pure Python. In addition, all variables have associated units for ease of analysis. The software is part of the Python Package Index and the source code is a...

  6. Rapid Development of Interferometric Software Using MIRIAD and Python

    CERN Document Server

    Williams, Peter K G; Bower, Geoffrey C

    2012-01-01

    New and upgraded radio interferometers produce data at massive rates and will require significant improvements in analysis techniques to reach their promised levels of performance in a routine manner. Until these techniques are fully developed, productivity and accessibility in scientific programming environments will be key bottlenecks in the pipeline leading from data-taking to research results. We present an open-source software package, miriad-python, that allows access to the MIRIAD interferometric reduction system in the Python programming language. The modular design of MIRIAD and the high productivity and accessibility of Python provide an excellent foundation for rapid development of interferometric software. Several other projects with similar goals exist and we describe them and compare miriad-python to them in detail. Along with an overview of the package design, we present sample code and applications, including the detection of millisecond astrophysical transients, determination and application ...

  7. Transcriptome Analysis of the Response of Burmese Python to Digestion

    DEFF Research Database (Denmark)

    Duan, Jinjie; Sanggaard, Kristian Wejse; Schauser, Leif

    2017-01-01

    Background: Exceptional and extreme feeding behaviour makes the Burmese python (Python bivittatus) an interesting model to study physiological remodelling and metabolic adaptation in response to refeeding after prolonged starvation. In this study, we used transcriptome sequencing of five visceral...... organs during fasting as well as 24h and 48h after ingestion of a large meal to unravel the postprandial changes in Burmese pythons. We first used the pooled data to perform a de novo assembly of the transcriptome and supplemented this with a proteomic survey of enzymes in the plasma and gastric fluid...... in the liver, 114 genes in the stomach, 89 genes in the pancreas and 158 genes in the intestine. We interrogated the function of these genes to test previous hypotheses on the response to feeding. We also used the transcriptome to identify 314 secreted proteins in the gastric fluid of the python. Conclusions...

  8. Using the Scientific Python ecosystem to advance open radar science

    Science.gov (United States)

    Collis, S. M.; Helmus, J.

    2015-12-01

    The choice of a programming language or environment is rarely made with consideration of its benefits and disadvantages. Often it is something inherited from mentor or enforced by an institution. Python, developed as a "hobby" programming project, has seen increased migration of users from more traditional domain specific environments. This presentation charts our own journey in using the scientific python ecosystem, first as users and then as the developers of a community based toolkit for working with weather radar data, the Python ARM Radar Toolkit, Py-ART. We will highlight how a data model driven design approach can extend the usefulness and reusability of code and act as a bridge between amorphous mathematical algorithms and domain specific data. Finally we will showcase how Python and Py-ART can be used on clusters to tackle pleasantly parallel problems like deriving climatologies swiftly, painlessly and most importantly: reproducibly.

  9. PyMultiNest: Python interface for MultiNest

    Science.gov (United States)

    Buchner, Johannes

    2016-06-01

    PyMultiNest provides programmatic access to MultiNest (ascl:1109.006) and PyCuba, integration existing Python code (numpy, scipy), and enables writing Prior & LogLikelihood functions in Python. PyMultiNest can plot and visualize MultiNest's progress and allows easy plotting, visualization and summarization of MultiNest results. The plotting can be run on existing MultiNest output, and when not using PyMultiNest for running MultiNest.

  10. MEG and EEG data analysis with MNE-Python.

    Science.gov (United States)

    Gramfort, Alexandre; Luessi, Martin; Larson, Eric; Engemann, Denis A; Strohmeier, Daniel; Brodbeck, Christian; Goj, Roman; Jas, Mainak; Brooks, Teon; Parkkonen, Lauri; Hämäläinen, Matti

    2013-12-26

    Magnetoencephalography and electroencephalography (M/EEG) measure the weak electromagnetic signals generated by neuronal activity in the brain. Using these signals to characterize and locate neural activation in the brain is a challenge that requires expertise in physics, signal processing, statistics, and numerical methods. As part of the MNE software suite, MNE-Python is an open-source software package that addresses this challenge by providing state-of-the-art algorithms implemented in Python that cover multiple methods of data preprocessing, source localization, statistical analysis, and estimation of functional connectivity between distributed brain regions. All algorithms and utility functions are implemented in a consistent manner with well-documented interfaces, enabling users to create M/EEG data analysis pipelines by writing Python scripts. Moreover, MNE-Python is tightly integrated with the core Python libraries for scientific comptutation (NumPy, SciPy) and visualization (matplotlib and Mayavi), as well as the greater neuroimaging ecosystem in Python via the Nibabel package. The code is provided under the new BSD license allowing code reuse, even in commercial products. Although MNE-Python has only been under heavy development for a couple of years, it has rapidly evolved with expanded analysis capabilities and pedagogical tutorials because multiple labs have collaborated during code development to help share best practices. MNE-Python also gives easy access to preprocessed datasets, helping users to get started quickly and facilitating reproducibility of methods by other researchers. Full documentation, including dozens of examples, is available at http://martinos.org/mne.

  11. MEG and EEG data analysis with MNE-Python

    OpenAIRE

    Alexandre eGramfort; Martin eLuessi; Eric eLarson; Engemann, Denis A.; Daniel eStrohmeier; Christian eBrodbeck; Roman eGoj; Mainak eJas; Teon eBrooks; Lauri eParkkonen; Matti eHämäläinen

    2013-01-01

    Magnetoencephalography and electroencephalography (M/EEG) measure the weakelectromagnetic signals generated by neuronal activity in the brain. Using thesesignals to characterize and locate neural activation in the brain is achallenge that requires expertise in physics, signalprocessing, statistics, and numerical methods. As part of the MNE softwaresuite, MNE-Python is an open-sourcesoftware package that addresses this challenge by providingstate-of-the-art algorithms implemented in Python tha...

  12. A Framework for Distributed Deep Learning Layer Design in Python

    OpenAIRE

    McLeod, Clay

    2015-01-01

    In this paper, a framework for testing Deep Neural Network (DNN) design in Python is presented. First, big data, machine learning (ML), and Artificial Neural Networks (ANNs) are discussed to familiarize the reader with the importance of such a system. Next, the benefits and detriments of implementing such a system in Python are presented. Lastly, the specifics of the system are explained, and some experimental results are presented to prove the effectiveness of the system.

  13. Pycobra: A Python Toolbox for Ensemble Learning and Visualisation

    OpenAIRE

    Guedj, Benjamin; Srinivasa Desikan, Bhargav

    2017-01-01

    We introduce \\texttt{pycobra}, a Python library devoted to ensemble learning (regression and classification) and visualisation. Its main assets are the implementation of several ensemble learning algorithms, a flexible and generic interface to compare and blend any existing machine learning algorithm available in Python libraries (as long as a \\texttt{predict} method is given), and visualisation tools such as Voronoi tessellations. \\texttt{pycobra} is fully \\texttt{scikit-learn} compatible an...

  14. Using Python to Develop Graphical Interfaces to Scientific Data

    Energy Technology Data Exchange (ETDEWEB)

    MacFarland, L; Streletz, G J

    1999-09-24

    At Lawrence Livermore National Laboratory (LLNL), Python has proven to be a convenient language for the development of graphical user interfaces (GUIs) which allow scientists to view, plot, and analyze scientific data. Two such applications are described in this paper. The first, EOSView, is a browser application for an equation of state data library at LLNL. EOSView is used by scientists throughout the laboratory who use simulation codes that access the data library, or who need equation of state data for other purposes. EOSView provides graphical visualization capabilities, as well as the capability to analyze the data in many different ways. The second application, Zimp, is a GUI that allows interactive use of the Stark Line Shape Database. It is used to access and plot data. The quick construction of Zimp from elements of the EOSView code provides a useful lesson in code reuse, and illustrates how the object-oriented nature of Python facilitates this goal. In general, Python has proven to be an appropriate choice of language for applications of this type for several reasons, including the easy access to GUI functionality provided by Tkinter, the ease with which C functions can be called from Python, and the convenient handling of strings in Python. Moreover, the features of the Python language, combined with the fact that it is interpreted rather than compiled, have allowed for extremely quick prototyping.

  15. PyROOT: Seamless Melting of C++ and Python

    CERN Document Server

    CERN. Geneva

    2016-01-01

    With ROOT it's possible to use any C++ library from Python without writing any bindings nor dictionaries: loading the library and injecting the relevant headers in the ROOT C++ interpreter is enough to guarantee interactive usage from within Python. Just in time (JIT) compilation of C++ code and immediate utilisation of C++ entities from within Python is also supported. Thanks to the ROOT type system and C++ interpreter and JIT compiler, complete Python/C++ interoperability is achieved. In this contribution we explain how this mechanism is general enough to make any library written in C or C++ usable from within Python and how concepts such as template metaprogramming are mapped in Python. We review the basics of the JIT compilation capabilities provided by the Clang based ROOT interpreter, Cling, and the way in which some of the information of the Abstract Syntax Tree (AST) built by Clang is stored by the ROOT type system. The way in which ROOT manages the automatic loading of libraries and parsing of neces...

  16. Hearing with an atympanic ear: good vibration and poor sound-pressure detection in the royal python, Python regius

    DEFF Research Database (Denmark)

    Christensen, Christian Bech; Christensen-Dalsgaard, Jakob; Brandt, Christian

    2012-01-01

    are sensitive to sound pressure and (2) snakes are sensitive to vibrations, but cannot hear the sound pressure per se. Vibration and sound-pressure sensitivities were quantified by measuring brainstem evoked potentials in 11 royal pythons, Python regius. Vibrograms and audiograms showed greatest sensitivity...... at low frequencies of 80-160 Hz, with sensitivities of -54 dB re. 1 m s(-2) and 78 dB re. 20 μPa, respectively. To investigate whether pythons detect sound pressure or sound-induced head vibrations, we measured the sound-induced head vibrations in three dimensions when snakes were exposed to sound...... pressure at threshold levels. In general, head vibrations induced by threshold-level sound pressure were equal to or greater than those induced by threshold-level vibrations, and therefore sound-pressure sensitivity can be explained by sound-induced head vibration. From this we conclude that pythons...

  17. Leveraging Comparative Genomics to Identify and Functionally Characterize Genes Associated with Sperm Phenotypes in Python bivittatus (Burmese Python)

    OpenAIRE

    Kristopher J. L. Irizarry; Josep Rutllant

    2016-01-01

    Comparative genomics approaches provide a means of leveraging functional genomics information from a highly annotated model organism’s genome (such as the mouse genome) in order to make physiological inferences about the role of genes and proteins in a less characterized organism’s genome (such as the Burmese python). We employed a comparative genomics approach to produce the functional annotation of Python bivittatus genes encoding proteins associated with sperm phenotypes. We identify 129 g...

  18. Introducing Python tools for magnetotellurics: MTpy

    Science.gov (United States)

    Krieger, L.; Peacock, J.; Inverarity, K.; Thiel, S.; Robertson, K.

    2013-12-01

    Within the framework of geophysical exploration techniques, the magnetotelluric method (MT) is relatively immature: It is still not as widely spread as other geophysical methods like seismology, and its processing schemes and data formats are not thoroughly standardized. As a result, the file handling and processing software within the academic community is mainly based on a loose collection of codes, which are sometimes highly adapted to the respective local specifications. Although tools for the estimation of the frequency dependent MT transfer function, as well as inversion and modelling codes, are available, the standards and software for handling MT data are generally not unified throughout the community. To overcome problems that arise from missing standards, and to simplify the general handling of MT data, we have developed the software package "MTpy", which allows the handling, processing, and imaging of magnetotelluric data sets. It is written in Python and the code is open-source. The setup of this package follows the modular approach of successful software packages like GMT or Obspy. It contains sub-packages and modules for various tasks within the standard MT data processing and handling scheme. Besides pure Python classes and functions, MTpy provides wrappers and convenience scripts to call external software, e.g. modelling and inversion codes. Even though still under development, MTpy already contains ca. 250 functions that work on raw and preprocessed data. However, as our aim is not to produce a static collection of software, we rather introduce MTpy as a flexible framework, which will be dynamically extended in the future. It then has the potential to help standardise processing procedures and at same time be a versatile supplement for existing algorithms. We introduce the concept and structure of MTpy, and we illustrate the workflow of MT data processing utilising MTpy on an example data set collected over a geothermal exploration site in South

  19. Surgical management of maxillary and premaxillary osteomyelitis in a reticulated python (Python reticulatus).

    Science.gov (United States)

    Latney, La'Toya V; McDermott, Colin; Scott, Gregory; Soltero-Rivera, Maria M; Beguesse, Kyla; Sánchez, Melissa D; Lewis, John R

    2016-05-01

    CASE DESCRIPTION A 1-year-old reticulated python (Python reticulatus) was evaluated because of a 2-week history of wheezing and hissing. CLINICAL FINDINGS Rostral facial cellulitis and deep gingival pockets associated with missing rostral maxillary teeth were evident. Tissues of the nares were swollen, resulting in an audible wheeze during respiration. Multiple scars and superficial facial wounds attributed to biting by live prey were apparent. Radiographic examination revealed bilateral, focal, rostral maxillary osteomyelitis. TREATMENT AND OUTCOME Wound irrigation, antimicrobials, and anti-inflammatory drug treatment resulted in reduced cellulitis. A 3-week regimen that included empirical antimicrobial treatment and improved husbandry resulted in resolution of the respiratory sounds and partial healing of bite wounds, but radiographic evaluation revealed progressive maxillary osteomyelitis. Microbial culture of blood yielded scant gram-positive cocci and Bacillus spp, which were suspected sample contaminants. Bilateral partial maxillectomies were performed; microbial culture and histologic examination of resected bone confirmed osteomyelitis with gram-positive cocci. Treatment with trimethoprim-sulfamethoxazole was initiated on the basis of microbial susceptibility tests. Four months later, follow-up radiography revealed premaxillary osteomyelitis; surgery was declined, and treatment with trimethoprim-sulfamethoxazole was reinstituted. Eight months after surgery, the patient was reevaluated because of recurrent clinical signs; premaxillectomy was performed, and treatment with trimethoprim-sulfamethoxazole was prescribed on the basis of microbial culture of bone and microbial susceptibility testing. Resolution of osteomyelitis was confirmed by CT 11 months after the initial surgery. CONCLUSIONS AND CLINICAL RELEVANCE Focal maxillectomies and premaxillectomy were successfully performed in a large python. Surgical management and appropriate antimicrobial treatment

  20. Morphological respiratory diffusion capacity of the lungs of ball pythons (Python regius).

    Science.gov (United States)

    Starck, J Matthias; Aupperle, Heike; Kiefer, Ingmar; Weimer, Isabel; Krautwald-Junghanns, Maria-Elisabeth; Pees, Michael

    2012-08-01

    This study aims at a functional and morphological characterization of the lung of a boid snake. In particular, we were interested to see if the python's lungs are designed with excess capacity as compared to resting and working oxygen demands. Therefore, the morphological respiratory diffusion capacity of ball pythons (Python regius) was examined following a stereological, hierarchically nested approach. The volume of the respiratory exchange tissue was determined using computed tomography. Tissue compartments were quantified using stereological methods on light microscopic images. The tissue diffusion barrier for oxygen transport was characterized and measured using transmission electron micrographs. We found a significant negative correlation between body mass and the volume of respiratory tissue; the lungs of larger snakes had relatively less respiratory tissue. Therefore, mass-specific respiratory tissue was calculated to exclude effects of body mass. The volume of the lung that contains parenchyma was 11.9±5.0mm(3)g(-1). The volume fraction, i.e., the actual pulmonary exchange tissue per lung parenchyma, was 63.22±7.3%; the total respiratory surface was, on average, 0.214±0.129m(2); it was significantly negatively correlated to body mass, with larger snakes having proportionally smaller respiratory surfaces. For the air-blood barrier, a harmonic mean of 0.78±0.05μm was found, with the epithelial layer representing the thickest part of the barrier. Based on these findings, a median diffusion capacity of the tissue barrier ( [Formula: see text] ) of 0.69±0.38ml O(2)min(-1)mmHg(-1) was calculated. Based on published values for blood oxygen concentration, a total oxygen uptake capacity of 61.16mlO(2)min(-1)kg(-1) can be assumed. This value exceeds the maximum demand for oxygen in ball pythons by a factor of 12. We conclude that healthy individuals of P. regius possess a considerable spare capacity for tissue oxygen exchange.

  1. AJAC: Atomic data calculation tool in Python

    Institute of Scientific and Technical Information of China (English)

    Amani Tahat; Jordi Marti; Kaher Tahat; Ali Khwaldeh

    2013-01-01

    In this work,new features and extensions of a currently used online atomic database management system are reported.A multiplatform flexible computation package is added to the present system,to allow the calculation of various atomic radiative and collisional processes,based on simplifying the use of some existing atomic codes adopted from the literature.The interaction between users and data is facilitated by a rather extensive Python graphical user interface working online and could be installed in personal computers of different classes.In particular,this study gives an overview of the use of one model of the package models (i.e.,electron impact collisional excitation model).The accuracy of computing capability of the electron impact collisional excitation in the adopted model,which follows the distorted wave approximation approach,is enhanced by implementing the Dirac R-matrix approximation approach.The validity and utility of this approach are presented through a comparison of the current computed results with earlier available theoretical and experimental results.Finally,the source code is made available under the general public license and being distributed freely in the hope that it will be useful to a wide community of laboratory and astrophysical plasma diagnostics.

  2. TRIPPy: Trailed Image Photometry in Python

    CERN Document Server

    Fraser, Wesley C; Schwamb, Megan E; Marsset, Michael E; Pike, Rosemary E; Kavelaars, JJ; Bannister, Michele T; Benecchi, Susan; Delsanti, Audrey

    2016-01-01

    Photometry of moving sources typically suffers from reduced signal-to-noise (SNR) or flux measurements biased to incorrect low values through the use of circular apertures. To address this issue we present the software package, TRIPPy: TRailed Image Photometry in Python. TRIPPy introduces the pill aperture, which is the natural extension of the circular aperture appropriate for linearly trailed sources. The pill shape is a rectangle with two semicircular end-caps, and is described by three parameters, the trail length and angle, and the radius. The TRIPPy software package also includes a new technique to generate accurate model point-spread functions (PSF) and trailed point-spread functions (TSF) from stationary background sources in sidereally tracked images. The TSF is merely the convolution of the model PSF, which consists of a moffat profile, and super sampled lookup table. From the TSF, accurate pill aperture corrections can be estimated as a function of pill radius with a accuracy of 10 millimags for hi...

  3. PsychoPy--Psychophysics software in Python.

    Science.gov (United States)

    Peirce, Jonathan W

    2007-05-15

    The vast majority of studies into visual processing are conducted using computer display technology. The current paper describes a new free suite of software tools designed to make this task easier, using the latest advances in hardware and software. PsychoPy is a platform-independent experimental control system written in the Python interpreted language using entirely free libraries. PsychoPy scripts are designed to be extremely easy to read and write, while retaining complete power for the user to customize the stimuli and environment. Tools are provided within the package to allow everything from stimulus presentation and response collection (from a wide range of devices) to simple data analysis such as psychometric function fitting. Most importantly, PsychoPy is highly extensible and the whole system can evolve via user contributions. If a user wants to add support for a particular stimulus, analysis or hardware device they can look at the code for existing examples, modify them and submit the modifications back into the package so that the whole community benefits.

  4. PsychoPy—Psychophysics software in Python

    Science.gov (United States)

    Peirce, Jonathan W.

    2007-01-01

    The vast majority of studies into visual processing are conducted using computer display technology. The current paper describes a new free suite of software tools designed to make this task easier, using the latest advances in hardware and software. PsychoPy is a platform-independent experimental control system written in the Python interpreted language using entirely free libraries. PsychoPy scripts are designed to be extremely easy to read and write, while retaining complete power for the user to customize the stimuli and environment. Tools are provided within the package to allow everything from stimulus presentation and response collection (from a wide range of devices) to simple data analysis such as psychometric function fitting. Most importantly, PsychoPy is highly extensible and the whole system can evolve via user contributions. If a user wants to add support for a particular stimulus, analysis or hardware device they can look at the code for existing examples, modify them and submit the modifications back into the package so that the whole community benefits. PMID:17254636

  5. TRIPPy: Trailed Image Photometry in Python

    Science.gov (United States)

    Fraser, Wesley; Alexandersen, Mike; Schwamb, Megan E.; Marsset, Michaël; Pike, Rosemary E.; Kavelaars, J. J.; Bannister, Michele T.; Benecchi, Susan; Delsanti, Audrey

    2016-06-01

    Photometry of moving sources typically suffers from a reduced signal-to-noise ratio (S/N) or flux measurements biased to incorrect low values through the use of circular apertures. To address this issue, we present the software package, TRIPPy: TRailed Image Photometry in Python. TRIPPy introduces the pill aperture, which is the natural extension of the circular aperture appropriate for linearly trailed sources. The pill shape is a rectangle with two semicircular end-caps and is described by three parameters, the trail length and angle, and the radius. The TRIPPy software package also includes a new technique to generate accurate model point-spread functions (PSFs) and trailed PSFs (TSFs) from stationary background sources in sidereally tracked images. The TSF is merely the convolution of the model PSF, which consists of a moffat profile, and super-sampled lookup table. From the TSF, accurate pill aperture corrections can be estimated as a function of pill radius with an accuracy of 10 mmag for highly trailed sources. Analogous to the use of small circular apertures and associated aperture corrections, small radius pill apertures can be used to preserve S/Ns of low flux sources, with appropriate aperture correction applied to provide an accurate, unbiased flux measurement at all S/Ns.

  6. MTpy: A Python toolbox for magnetotellurics

    Science.gov (United States)

    Krieger, Lars; Peacock, Jared R.

    2014-11-01

    We present the software package MTpy that allows handling, processing, and imaging of magnetotelluric (MT) data sets. Written in Python, the code is open source, containing sub-packages and modules for various tasks within the standard MT data processing and handling scheme. Besides the independent definition of classes and functions, MTpy provides wrappers and convenience scripts to call standard external data processing and modelling software. In its current state, modules and functions of MTpy work on raw and pre-processed MT data. However, opposite to providing a static compilation of software, we prefer to introduce MTpy as a flexible software toolbox, whose contents can be combined and utilised according to the respective needs of the user. Just as the overall functionality of a mechanical toolbox can be extended by adding new tools, MTpy is a flexible framework, which will be dynamically extended in the future. Furthermore, it can help to unify and extend existing codes and algorithms within the (academic) MT community. In this paper, we introduce the structure and concept of MTpy. Additionally, we show some examples from an everyday work-flow of MT data processing: the generation of standard EDI data files from raw electric (E-) and magnetic flux density (B-) field time series as input, the conversion into MiniSEED data format, as well as the generation of a graphical data representation in the form of a Phase Tensor pseudosection.

  7. Python-Assisted MODFLOW Application and Code Development

    Science.gov (United States)

    Langevin, C.

    2013-12-01

    The U.S. Geological Survey (USGS) has a long history of developing and maintaining free, open-source software for hydrological investigations. The MODFLOW program is one of the most popular hydrologic simulation programs released by the USGS, and it is considered to be the most widely used groundwater flow simulation code. MODFLOW was written using a modular design and a procedural FORTRAN style, which resulted in code that could be understood, modified, and enhanced by many hydrologists. The code is fast, and because it uses standard FORTRAN it can be run on most operating systems. Most MODFLOW users rely on proprietary graphical user interfaces for constructing models and viewing model results. Some recent efforts, however, have focused on construction of MODFLOW models using open-source Python scripts. Customizable Python packages, such as FloPy (https://code.google.com/p/flopy), can be used to generate input files, read simulation results, and visualize results in two and three dimensions. Automating this sequence of steps leads to models that can be reproduced directly from original data and rediscretized in space and time. Python is also being used in the development and testing of new MODFLOW functionality. New packages and numerical formulations can be quickly prototyped and tested first with Python programs before implementation in MODFLOW. This is made possible by the flexible object-oriented design capabilities available in Python, the ability to call FORTRAN code from Python, and the ease with which linear systems of equations can be solved using SciPy, for example. Once new features are added to MODFLOW, Python can then be used to automate comprehensive regression testing and ensure reliability and accuracy of new versions prior to release.

  8. The spectacle of the ball python (Python regius): a morphological description.

    Science.gov (United States)

    Da Silva, Mari-Ann O; Heegaard, Steffen; Wang, Tobias; Nyengaard, Jens R; Bertelsen, Mads F

    2014-05-01

    A detailed morphological description of the spectacle of the ball python (Python regius) is provided. The eyes of 21 snakes were examined by light microscopy and/or transmission electron microscopy. Additionally, eyes of nine live snakes were examined using optical coherence tomography (OCT) and Scheimpflug scanning (Pentacam). The spectacle consists of three layers: outer epithelium, stroma and inner epithelium. The outer epithelium is made up of flat basal cells overlaid by keratin, the stroma consists of organized layers of collagen fibrils with interweaving nerve fibers and blood vessels, and the inner epithelium holds squamous cells containing vesicles and microvilli. At the rim of the spectacle, there is a transition zone, where the spectacle merges with the epidermis and dermis of the periocular scales. This zone is characterized by a greater height of the basal cells of the outer epithelium and a less orderly organization of the stroma compared with the spectacle proper. The thickness of the spectacle was uniform throughout. It averaged 96 ± 10 µm in histological specimens and 108 ± 13 µm using OCT. The subspectacular space was extremely narrow in the live snakes; however, the space was visible at the periphery of the spectacle with OCT.

  9. A new dosing schedule for gentamicin in blood pythons (Python curtus): a pharmacokinetic study.

    Science.gov (United States)

    Hilf, M; Swanson, D; Wagner, R; Yu, V L

    1991-03-01

    Gentamicin is frequently used in the treatment of aerobic Gram-negative infections in reptiles. Pharmacokinetic data to ensure proper dosing are scant, especially for large snakes. A pharmacokinetic study of gentamicin was therefore conducted in four blood pythons. Snakes were given intramuscular injections of either 2.5 mg kg-1 or 3.0 mg kg-1 loading dose followed by 1.5 mg kg-1 at 72 and 96 hours. A linear pharmacokinetic relationship between gentamicin serum concentrations and time was demonstrated in each of the four snakes studied. Peak serum concentrations occurred six to 10 hours after injection and ranged from 4.6 to 8.9 micrograms ml-1. Half-life was variable and ranged from 32 to 110 hours. Total body clearance and apparent volume of distribution varied little between the individual snakes studied. There was no evidence of renal toxicity. For blood pythons a loading dose of 2.5 mg kg-1 followed by 1.5 mg kg-1 at 96 hour intervals is recommended. If higher concentrations are desired, a loading dose of 3.0 mg kg-1 followed by 1.5 mg kg-1 at 96 hours can be given. These dosing schedules will provide serum concentrations in excess of the minimum inhibitory concentrations for most aerobic Gram-negative bacilli that are pathogenic in snakes; gentamicin accumulation with subsequent renal dysfunction should not occur.

  10. Cosmic Microwave Background Anisotropy Measurement From Python V

    CERN Document Server

    Coble, K; Dragovan, M; Ganga, K; Knox, L; Kovács, J; Ratra, B; Souradeep, T

    2003-01-01

    We analyze observations of the microwave sky made with the Python experiment in its fifth year of operation at the Amundsen-Scott South Pole Station in Antarctica. After modeling the noise and constructing a map, we extract the cosmic signal from the data. We simultaneously estimate the angular power spectrum in eight bands ranging from large (l ~ 40) to small (l ~ 260) angular scales, with power detected in the first six bands. There is a significant rise in the power spectrum from large to smaller (l ~ 200) scales, consistent with that expected from acoustic oscillations in the early Universe. We compare this Python V map to a map made from data taken in the third year of Python. Python III observations were made at a frequency of 90 GHz and covered a subset of the region of the sky covered by Python V observations, which were made at 40 GHz. Good agreement is obtained both visually (with a filtered version of the map) and via a likelihood ratio test.

  11. Querying and Serving N-gram Language Models with Python

    Directory of Open Access Journals (Sweden)

    2009-06-01

    Full Text Available Statistical n-gram language modeling is a very important technique in Natural Language Processing (NLP and Computational Linguistics used to assess the fluency of an utterance in any given language. It is widely employed in several important NLP applications such as Machine Translation and Automatic Speech Recognition. However, the most commonly used toolkit (SRILM to build such language models on a large scale is written entirely in C++ which presents a challenge to an NLP developer or researcher whose primary language of choice is Python. This article first provides a gentle introduction to statistical language modeling. It then describes how to build a native and efficient Python interface (using SWIG to the SRILM toolkit such that language models can be queried and used directly in Python code. Finally, it also demonstrates an effective use case of this interface by showing how to leverage it to build a Python language model server. Such a server can prove to be extremely useful when the language model needs to be queried by multiple clients over a network: the language model must only be loaded into memory once by the server and can then satisfy multiple requests. This article includes only those listings of source code that are most salient. To conserve space, some are only presented in excerpted form. The complete set of full source code listings may be found in Volume 1 of The Python Papers Source Codes Journal.

  12. Scripting MODFLOW model development using Python and FloPy

    Science.gov (United States)

    Bakker, Mark; Post, Vincent E. A.; Langevin, Christian D.; Hughes, Joseph D.; White, Jeremy; Starn, Jeffrey; Fienen, Michael N.

    2016-01-01

    Graphical user interfaces (GUIs) are commonly used to construct and postprocess numerical groundwater flow and transport models. Scripting model development with the programming language Python is presented here as an alternative approach. One advantage of Python is that there are many packages available to facilitate the model development process, including packages for plotting, array manipulation, optimization, and data analysis. For MODFLOW-based models, the FloPy package was developed by the authors to construct model input files, run the model, and read and plot simulation results. Use of Python with the available scientific packages and FloPy facilitates data exploration, alternative model evaluations, and model analyses that can be difficult to perform with GUIs. Furthermore, Python scripts are a complete, transparent, and repeatable record of the modeling process. The approach is introduced with a simple FloPy example to create and postprocess a MODFLOW model. A more complicated capture-fraction analysis with a real-world model is presented to demonstrate the types of analyses that can be performed using Python and FloPy.

  13. Stochastic spatio-temporal modelling with PCRaster Python

    Science.gov (United States)

    Karssenberg, D.; Schmitz, O.; de Jong, K.

    2012-04-01

    PCRaster Python is a software framework for building spatio-temporal models of land surface processes (Karssenberg, Schmitz, Salamon, De Jong, & Bierkens, 2010; PCRaster, 2012). Building blocks of models are spatial operations on raster maps, including a large suite of operations for water and sediment routing. These operations, developed in C++, are available to model builders as Python functions. Users create models by combining these functions in a Python script. As construction of large iterative models is often difficult and time consuming for non-specialists in programming, the software comes with a set of Python framework classes that provide control flow for static modelling, temporal modelling, stochastic modelling using Monte Carlo simulation, and data assimilation techniques including the Ensemble Kalman filter and the Particle Filter. A framework for integrating model components with different time steps and spatial discretization is currently available as a prototype (Schmitz, de Jong, & Karssenberg, in review). The software includes routines for visualisation of stochastic spatio-temporal data for prompt, interactive, visualisation of model inputs and outputs. Visualisation techniques include animated maps, time series, probability distributions, and animated maps with exceedance probabilities. The PCRaster Python software is used by researchers from a large range of disciplines, including hydrology, ecology, sedimentology, and land use change studies. Applications include global scale hydrological modelling and error propagation in large-scale land use change models. The software runs on MS Windows and Linux operating systems, and OS X (under development).

  14. pyam: Python Implementation of YaM

    Science.gov (United States)

    Myint, Steven; Jain, Abhinandan

    2012-01-01

    pyam is a software development framework with tools for facilitating the rapid development of software in a concurrent software development environment. pyam provides solutions for development challenges associated with software reuse, managing multiple software configurations, developing software product lines, and multiple platform development and build management. pyam uses release-early, release-often development cycles to allow developers to integrate their changes incrementally into the system on a continual basis. It facilitates the creation and merging of branches to support the isolated development of immature software to avoid impacting the stability of the development effort. It uses modules and packages to organize and share software across multiple software products, and uses the concepts of link and work modules to reduce sandbox setup times even when the code-base is large. One sidebenefit is the enforcement of a strong module-level encapsulation of a module s functionality and interface. This increases design transparency, system stability, and software reuse. pyam is written in Python and is organized as a set of utilities on top of the open source SVN software version control package. All development software is organized into a collection of modules. pyam packages are defined as sub-collections of the available modules. Developers can set up private sandboxes for module/package development. All module/package development takes place on private SVN branches. High-level pyam commands support the setup, update, and release of modules and packages. Released and pre-built versions of modules are available to developers. Developers can tailor the source/link module mix for their sandboxes so that new sandboxes (even large ones) can be built up easily and quickly by pointing to pre-existing module releases. All inter-module interfaces are publicly exported via links. A minimal, but uniform, convention is used for building modules.

  15. ETE: a python Environment for Tree Exploration

    Directory of Open Access Journals (Sweden)

    Gabaldón Toni

    2010-01-01

    Full Text Available Abstract Background Many bioinformatics analyses, ranging from gene clustering to phylogenetics, produce hierarchical trees as their main result. These are used to represent the relationships among different biological entities, thus facilitating their analysis and interpretation. A number of standalone programs are available that focus on tree visualization or that perform specific analyses on them. However, such applications are rarely suitable for large-scale surveys, in which a higher level of automation is required. Currently, many genome-wide analyses rely on tree-like data representation and hence there is a growing need for scalable tools to handle tree structures at large scale. Results Here we present the Environment for Tree Exploration (ETE, a python programming toolkit that assists in the automated manipulation, analysis and visualization of hierarchical trees. ETE libraries provide a broad set of tree handling options as well as specific methods to analyze phylogenetic and clustering trees. Among other features, ETE allows for the independent analysis of tree partitions, has support for the extended newick format, provides an integrated node annotation system and permits to link trees to external data such as multiple sequence alignments or numerical arrays. In addition, ETE implements a number of built-in analytical tools, including phylogeny-based orthology prediction and cluster validation techniques. Finally, ETE's programmable tree drawing engine can be used to automate the graphical rendering of trees with customized node-specific visualizations. Conclusions ETE provides a complete set of methods to manipulate tree data structures that extends current functionality in other bioinformatic toolkits of a more general purpose. ETE is free software and can be downloaded from http://ete.cgenomics.org.

  16. The effects of UV light on calcium metabolism in ball pythons (Python regius).

    Science.gov (United States)

    Hedley, J; Eatwell, K

    2013-10-12

    Despite the popularity of keeping snakes in captivity, there has been limited investigation into the effects of UV radiation on vitamin D levels in snakes. The aim of this study was to investigate the effects of UV-b radiation on plasma 25-hydroxyvitamin D3 levels and ionised calcium concentrations in ball pythons (Python regius). Blood samples were taken from 14 ball pythons, which had never been exposed to UV-b light, to obtain baseline 25-hydroxyvitamin D3 levels and ionised calcium concentrations. Blood samples were then taken again from the same snakes 70 days later after one group (Group 1, n=6 females) were exposed to UV-b radiation daily, and the other group (Group 2, n=5 males and 3 females) were exposed to no UV-b radiation. Mean±sd 25-hydroxyvitamin D3 levels on day 0 in Group 1 were 197±35 nmol/l, and on day 70 were 203.5±13.8 nmol/l. Mean±sd 25-hydroxyvitamin D3 levels in Group 2 on day 0 were 77.7±41.5 nmol/l, and on day 70 were 83.0±41.9 nmol/l. Mean±sd ionised calcium levels at day 0 were 1.84±0.05 mmol/l for Group 1, and on day 70 were 1.78±0.07 mmol/l. Mean±sd ionised calcium levels at day 0 were 1.79±0.07 mmol/l for Group 2, and on day 70 were 1.81±0.05 mmol/l. No association was demonstrated between exposure to UV-b radiation and plasma 25-hydroxyvitamin D3 and ionised calcium concentrations. These results may provide baseline parameters for future studies in this and other snake species to determine ability to utilise UV-b light for vitamin D production.

  17. Pharmacokinetics of a long-acting ceftiofur formulation (ceftiofur crystalline free acid) in the ball python (Python regius).

    Science.gov (United States)

    Adkesson, Michael J; Fernandez-Varon, Emilio; Cox, Sherry; Martín-Jiménez, Tomás

    2011-09-01

    The objective of this study was to determine the pharmacokinetics of a long-acting formulation of ceftiofur crystalline-free acid (CCFA) following intramuscular injection in ball pythons (Python regius). Six adult ball pythons received an injection of CCFA (15 mg/kg) in the epaxial muscles. Blood samples were collected by cardiocentesis immediately prior to and at 0.5, 1, 2, 4, 8, 12, 18, 24, 48, 72, 96, 144, 192, 240, 288, 384, 480, 576, 720, and 864 hr after CCFA administration. Plasma ceftiofur concentrations were determined by high-performance liquid chromatography. A noncompartmental pharmacokinetic analysis was applied to the data. Maximum plasma concentration (Cmax) was 7.096 +/- 1.95 microg/ml and occurred at (Tmax) 2.17 +/- 0.98 hr. The area under the curve (0 to infinity) for ceftiofur was 74.59 +/- 13.05 microg x h/ml and the elimination half-life associated with the terminal slope of the concentration-time curve was 64.31 +/- 14.2 hr. Mean residence time (0 to infinity) was 46.85 +/- 13.53 hr. CCFA at 15 mg/kg was well tolerated in all the pythons. Minimum inhibitory concentration (MIC) data for bacterial isolates from snakes are not well established. For MIC values of python. For MICs > or =0.5 microg/ml, more frequent dosing or a higher dosage may be required.

  18. Development of a technique for contrast radiographic examination of the gastrointestinal tract in ball pythons (Python regius).

    Science.gov (United States)

    Banzato, Tommaso; Russo, Elisa; Finotti, Luca; Zotti, Alessandro

    2012-07-01

    To develop a technique for radiographic evaluation of the gastrointestinal tract in ball pythons (Python regius). 10 ball python cadavers (5 males and 5 females) and 18 healthy adult ball pythons (10 males and 8 females). Live snakes were allocated to 3 groups (A, B, and C). A dose (25 mL/kg) of barium sulfate suspension at 3 concentrations (25%, 35%, and 45% [wt/vol]) was administered through an esophageal probe to snakes in groups A, B, and C, respectively. Each evaluation ended when all the contrast medium had reached the large intestine. Transit times through the esophagus, stomach, and small intestine were recorded. Imaging quality was evaluated by 3 investigators who assigned a grading score on the basis of predetermined criteria. Statistical analysis was conducted to evaluate differences in quality among the study groups. The esophagus and stomach had a consistent distribution pattern of contrast medium, whereas 3 distribution patterns of contrast medium were identified in the small intestine, regardless of barium concentration. Significant differences in imaging quality were detected among the 3 groups. Radiographic procedures were tolerated well by all snakes. The 35% concentration of contrast medium yielded the best imaging quality. Use of contrast medium for evaluation of the cranial portion of the gastrointestinal tract could be a reliable technique for the diagnosis of gastrointestinal diseases in ball pythons. However, results of this study may not translate to other snake species because of variables identified in this group of snakes.

  19. Clinical and histologic effects of intracardiac administration of propofol for induction of anesthesia in ball pythons (Python regius).

    Science.gov (United States)

    McFadden, Michael S; Bennett, R Avery; Reavill, Drury R; Ragetly, Guillaume R; Clark-Price, Stuart C

    2011-09-15

    To assess the clinical differences between induction of anesthesia in ball pythons with intracardiac administration of propofol and induction with isoflurane in oxygen and to assess the histologic findings over time in hearts following intracardiac administration of propofol. Prospective randomized study. 30 hatchling ball pythons (Python regius). Anesthesia was induced with intracardiac administration of propofol (10 mg/kg [4.5 mg/lb]) in 18 ball pythons and with 5% isoflurane in oxygen in 12 ball pythons. Induction time, time of anesthesia, and recovery time were recorded. Hearts from snakes receiving intracardiac administration of propofol were evaluated histologically 3, 7, 14, 30, and 60 days following propofol administration. Induction time with intracardiac administration of propofol was significantly shorter than induction time with 5% isoflurane in oxygen. No significant differences were found in total anesthesia time. Recovery following intracardiac administration of propofol was significantly longer than recovery following induction of anesthesia with isoflurane in oxygen. Heart tissue evaluated histologically at 3, 7, and 14 days following intracardiac administration of propofol had mild inflammatory changes, and no histopathologic lesions were seen 30 and 60 days following propofol administration. Intracardiac injection of propofol in snakes is safe and provides a rapid induction of anesthesia but leads to prolonged recovery, compared with that following induction with isoflurane. Histopathologic lesions in heart tissues following intracardiac injection of propofol were mild and resolved after 14 days.

  20. Leveraging Comparative Genomics to Identify and Functionally Characterize Genes Associated with Sperm Phenotypes in Python bivittatus (Burmese Python

    Directory of Open Access Journals (Sweden)

    Kristopher J. L. Irizarry

    2016-01-01

    Full Text Available Comparative genomics approaches provide a means of leveraging functional genomics information from a highly annotated model organism’s genome (such as the mouse genome in order to make physiological inferences about the role of genes and proteins in a less characterized organism’s genome (such as the Burmese python. We employed a comparative genomics approach to produce the functional annotation of Python bivittatus genes encoding proteins associated with sperm phenotypes. We identify 129 gene-phenotype relationships in the python which are implicated in 10 specific sperm phenotypes. Results obtained through our systematic analysis identified subsets of python genes exhibiting associations with gene ontology annotation terms. Functional annotation data was represented in a semantic scatter plot. Together, these newly annotated Python bivittatus genome resources provide a high resolution framework from which the biology relating to reptile spermatogenesis, fertility, and reproduction can be further investigated. Applications of our research include (1 production of genetic diagnostics for assessing fertility in domestic and wild reptiles; (2 enhanced assisted reproduction technology for endangered and captive reptiles; and (3 novel molecular targets for biotechnology-based approaches aimed at reducing fertility and reproduction of invasive reptiles. Additional enhancements to reptile genomic resources will further enhance their value.

  1. Leveraging Comparative Genomics to Identify and Functionally Characterize Genes Associated with Sperm Phenotypes in Python bivittatus (Burmese Python).

    Science.gov (United States)

    Irizarry, Kristopher J L; Rutllant, Josep

    2016-01-01

    Comparative genomics approaches provide a means of leveraging functional genomics information from a highly annotated model organism's genome (such as the mouse genome) in order to make physiological inferences about the role of genes and proteins in a less characterized organism's genome (such as the Burmese python). We employed a comparative genomics approach to produce the functional annotation of Python bivittatus genes encoding proteins associated with sperm phenotypes. We identify 129 gene-phenotype relationships in the python which are implicated in 10 specific sperm phenotypes. Results obtained through our systematic analysis identified subsets of python genes exhibiting associations with gene ontology annotation terms. Functional annotation data was represented in a semantic scatter plot. Together, these newly annotated Python bivittatus genome resources provide a high resolution framework from which the biology relating to reptile spermatogenesis, fertility, and reproduction can be further investigated. Applications of our research include (1) production of genetic diagnostics for assessing fertility in domestic and wild reptiles; (2) enhanced assisted reproduction technology for endangered and captive reptiles; and (3) novel molecular targets for biotechnology-based approaches aimed at reducing fertility and reproduction of invasive reptiles. Additional enhancements to reptile genomic resources will further enhance their value.

  2. Curso Python para científicos e ingenieros

    OpenAIRE

    Cano, Juan Luis

    2014-01-01

    Curso de introducción a Python impartido por Juan Luis Cano (pybonacci.wordpress.com) y organizado por CAChemE (cacheme.org) con el siguiente temario: Introducción a la sintaxis de Python; Uso del Notebook de IPython; Introducción a NumPy; Representación gráfica con matplotlib; Análisis numérico con SciPy; Cálculo simbólico con SymPy; Introducción a la depuración, testing y buenas prácticas; Instalación de Python en Windows. Este material ha sido elaborado gracias a la ayuda económica conc...

  3. High performance Python for direct numerical simulations of turbulent flows

    Science.gov (United States)

    Mortensen, Mikael; Langtangen, Hans Petter

    2016-06-01

    Direct Numerical Simulations (DNS) of the Navier Stokes equations is an invaluable research tool in fluid dynamics. Still, there are few publicly available research codes and, due to the heavy number crunching implied, available codes are usually written in low-level languages such as C/C++ or Fortran. In this paper we describe a pure scientific Python pseudo-spectral DNS code that nearly matches the performance of C++ for thousands of processors and billions of unknowns. We also describe a version optimized through Cython, that is found to match the speed of C++. The solvers are written from scratch in Python, both the mesh, the MPI domain decomposition, and the temporal integrators. The solvers have been verified and benchmarked on the Shaheen supercomputer at the KAUST supercomputing laboratory, and we are able to show very good scaling up to several thousand cores. A very important part of the implementation is the mesh decomposition (we implement both slab and pencil decompositions) and 3D parallel Fast Fourier Transforms (FFT). The mesh decomposition and FFT routines have been implemented in Python using serial FFT routines (either NumPy, pyFFTW or any other serial FFT module), NumPy array manipulations and with MPI communications handled by MPI for Python (mpi4py). We show how we are able to execute a 3D parallel FFT in Python for a slab mesh decomposition using 4 lines of compact Python code, for which the parallel performance on Shaheen is found to be slightly better than similar routines provided through the FFTW library. For a pencil mesh decomposition 7 lines of code is required to execute a transform.

  4. Tongue worm (Pentastomida) infection in ball pythons (Python regius) – a case report

    Science.gov (United States)

    Gałęcki, Remigiusz; Sokół, Rajmund; Dudek, Agnieszka

    Tongue worms (Pentastomida) are endoparasites causing pentastomiasis, an invasive disease representing a threat to exotic animals and humans. Animals acquire infection via the alimentary tract. In reptiles, the parasite is present in the lungs, resulting in symptoms from the respiratory system. Pentastomiasis may be asymptomatic, but nonspecific symptoms may occur at high parasite concentrations. Due to the harmful effects of many antiparasitic substances, tongue worm invasion in reptiles remains not fully treatable. Although pentasomiasis is rarely diagnosed in Poland, pentastomids were diagnosed in two ball pythons, who were patients of the “Poliklinika Weterynaryjna” veterinary clinic. They demonstrated problems with the respiratory system and a significant deterioration of health. Fenbendazole at a dose of 100 mg/kg b.w., repeated after 7 days was shown to be effective.

  5. Python 3 text processing with NLTK 3 cookbook

    CERN Document Server

    Perkins, Jacob

    2014-01-01

    This book is intended for Python programmers interested in learning how to do natural language processing. Maybe you've learned the limits of regular expressions the hard way, or you've realized that human language cannot be deterministically parsed like a computer language. Perhaps you have more text than you know what to do with, and need automated ways to analyze and structure that text. This Cookbook will show you how to train and use statistical language models to process text in ways that are practically impossible with standard programming tools. A basic knowledge of Python and the basi

  6. Reimplementing a Multi-Agent System in Python

    DEFF Research Database (Denmark)

    Villadsen, Jørgen; Jensen, Andreas Schmidt; Ettienne, Mikko Berggren

    2013-01-01

    We provide a brief description of our Python-DTU system, including the overall design, the tools and the algorithms that we used in the Multi-Agent Programming Contest 2012, where the scenario was called Agents on Mars like in 2011. Our solution is an improvement of our Python-DTU system from last...... year. Our team ended in second place after winning at least one match against every opponent and we only lost to the winner of the tournament. We briefly describe our experiments with the Moise organizational model. Finally we propose a few areas of improvement, both with regards to our system...

  7. Reimplementing a Multi-Agent System in Python

    DEFF Research Database (Denmark)

    Villadsen, Jørgen; Jensen, Andreas Schmidt; Ettienne, Mikko Berggren

    2012-01-01

    We provide a brief description of our Python-DTU system, including the overall design, the tools and the algorithms that we used in the Multi-Agent Programming Contest 2012, where the scenario was called Agents on Mars like in 2011. Our solution is an improvement of our Python-DTU system from last...... year. Our team ended in second place after winning at least one match against every opponent and we only lost to the winner of the tournament. We briefly describe our experiments with the Moise organizational model. Finally we propose a few areas of improvement, both with regards to our system...

  8. Solving PDEs in Python the FEniCS tutorial I

    CERN Document Server

    Langtangen, Hans Petter

    2016-01-01

    This book offers a concise and gentle introduction to finite element programming in Python based on the popular FEniCS software library. Using a series of examples, including the Poisson equation, the equations of linear elasticity, the incompressible Navier–Stokes equations, and systems of nonlinear advection–diffusion–reaction equations, it guides readers through the essential steps to quickly solving a PDE in FEniCS, such as how to define a finite variational problem, how to set boundary conditions, how to solve linear and nonlinear systems, and how to visualize solutions and structure finite element Python programs. This book is open access under a CC BY license.

  9. Jet flavor tagging with Deep Learning using Python

    CERN Document Server

    CERN. Geneva

    2016-01-01

    Besides the part that implements the resulting deep neural net in the ATLAS C++ software framework, a Python framework has been developed to connect HEP data to standard Data Science Python based libraries for Machine Learning. It makes use of HDF5, JSON and Pickle as intermediate data storage format, pandas and numpy for data handling and calculations, Keras for neural net construction and training as well as testing and matplotlib for plotting. It can be seen as an example of taking advantage of outside-HEP software developments without relying on the HEP standard ROOT.

  10. The influence of mechanical ventilation on physiological parameters in ball pythons (Python regius).

    Science.gov (United States)

    Jakobsen, Sashia L; Williams, Catherine J A; Wang, Tobias; Bertelsen, Mads F

    2017-05-01

    Mechanical ventilation is widely recommended for reptiles during anesthesia, and while it is well-known that their low ectothermic metabolism requires much lower ventilation than in mammals, very little is known about the influence of ventilation protocol on the recovery from anesthesia. Here, 15 ball pythons (Python regius) were induced and maintained with isoflurane for 60min at one of three ventilation protocols (30, 125, or 250mlmin(-1)kg(-1) body mass) while an arterial catheter was inserted, and ventilation was then continued on 100% oxygen at the specified rate until voluntary extubation. Mean arterial blood pressure and heart rate (HR) were measured, and arterial blood samples collected at 60, 80, 180min and 12 and 24h after intubation. In all three groups, there was evidence of a metabolic acidosis, and snakes maintained at 30mlmin(-1)kg(-1) experienced an additional respiratory acidosis, while the two other ventilation protocols resulted in normal or low arterial PCO2. In general, normal acid-base status was restored within 12h in all three protocols. HR increased by 143±64% during anesthesia with high mechanical ventilation (250mlmin(-1)kg(-1)) in comparison with recovered values. Recovery times after mechanical ventilation at 30, 125, or 250mlmin(-1)kg(-1) were 289±70, 126±16, and 68±7min, respectively. Mild overventilation may result in a faster recovery, and the associated lowering of arterial PCO2 normalised arterial pH in the face of metabolic acidosis. Copyright © 2017 Elsevier Inc. All rights reserved.

  11. Spectral domain optical coherence tomography imaging of spectacular ecdysis in the royal python (Python regius).

    Science.gov (United States)

    Tusler, Charlotte A; Maggs, David J; Kass, Philip H; Paul-Murphy, Joanne R; Schwab, Ivan R; Murphy, Christopher J

    2015-01-01

    To describe using spectral domain optical coherence tomography (SD-OCT), digital slit-lamp biomicroscopy, and external photography, changes in the ophidian cuticle, spectacle, and cornea during ecdysis. Four normal royal pythons (Python regius). Snakes were assessed once daily throughout a complete shed cycle using nasal, axial, and temporal SD-OCT images, digital slit-lamp biomicroscopy, and external photography. Spectral domain optical coherence tomography (SD-OCT) images reliably showed the spectacular cuticle and stroma, subcuticular space (SCS), cornea, anterior chamber, iris, and Schlemm's canal. When visible, the subspectacular space (SSS) was more distended peripherally than axially. Ocular surface changes throughout ecdysis were relatively conserved among snakes at all three regions imaged. From baseline (7 days following completion of a full cycle), the spectacle gradually thickened before separating into superficial cuticular and deep, hyper-reflective stromal components, thereby creating the SCS. During spectacular separation, the stroma regained original reflectivity, and multiple hyper-reflective foci (likely fragments from the cuticular-stromal interface) were noted within the SCS. The cornea was relatively unchanged in character or thickness throughout all stages of ecdysis. Slit-lamp images did not permit observation of these changes. Spectral domain optical coherence tomography (SD-OCT) provided excellent high-resolution images of the snake anterior segment, and especially the cuticle, spectacle, and cornea of manually restrained normal snakes at all stages of ecdysis and warrants investigation in snakes with anterior segment disease. The peripheral spectacle may be the preferred entry point for diagnostic or therapeutic injections into the SSS and for initiating spectacular surgery. © 2014 American College of Veterinary Ophthalmologists.

  12. The Atomic Simulation Environment - A Python library for working with atoms

    DEFF Research Database (Denmark)

    Larsen, Ask Hjorth; Mortensen, Jens Jørgen; Blomqvist, Jakob

    2017-01-01

    The Atomic Simulation Environment (ASE) is a software package written in the Python programming language with the aim of setting up, steering, and analyzing atomistic simula- tions. In ASE, tasks are fully scripted in Python. The powerful syntax of Python combined with the NumPy array library mak...

  13. Record length, mass, and clutch size in the nonindigenous Burmese Python, Python bivittatus Kuhl 1820 (Squamata: Pythonidae), in Florida

    Science.gov (United States)

    Krysko, Kenneth L.; Hart, Kristen M.; Smith, Brian J.; Selby, Thomas H.; Cherkiss, Michael S.; Coutu, Nicholas T.; Reichart, Rebecca M.; Nuñez, Leroy P.; Mazzotti, Frank J.; Snow, Ray W.

    2012-01-01

    The Burmese Python, Python bivittatus Kuhl 1820 (Squamata: Pythonidae), is indigenous to northern India,east to southern China, and south to Vietnam and a few islands in Indonesia (Barker and Barker 2008, Reed and Rodda 2009). This species has been introduced since at least 1979 in southern Florida, USA, where it likely began reproducing and became established during the 1980s (Meshaka et al. 2000, Snowet al. 2007b,Kraus 2009, Krysko et al. 2011, Willson et al. 2011). Python bivittatus has been documented in Florida consuming a variety of mammals and birds, and the American Alligator(Alligator mississippiensis) (Snowet al. 2007a, 2007b; Harvey et al. 2008; Rochford et al. 2010b; Holbrook and Chesnes 2011), many of which are protected species. Herein, we provide details on two of the largest known wild P. bivittatus in Florida to date, including current records on length,mass,clutch size, and diet.

  14. Identification of a novel nidovirus in an outbreak of fatal respiratory disease in ball pythons (Python regius).

    Science.gov (United States)

    Uccellini, Lorenzo; Ossiboff, Robert J; de Matos, Ricardo E C; Morrisey, James K; Petrosov, Alexandra; Navarrete-Macias, Isamara; Jain, Komal; Hicks, Allison L; Buckles, Elizabeth L; Tokarz, Rafal; McAloose, Denise; Lipkin, Walter Ian

    2014-08-08

    Respiratory infections are important causes of morbidity and mortality in reptiles; however, the causative agents are only infrequently identified. Pneumonia, tracheitis and esophagitis were reported in a collection of ball pythons (Python regius). Eight of 12 snakes had evidence of bacterial pneumonia. High-throughput sequencing of total extracted nucleic acids from lung, esophagus and spleen revealed a novel nidovirus. PCR indicated the presence of viral RNA in lung, trachea, esophagus, liver, and spleen. In situ hybridization confirmed the presence of intracellular, intracytoplasmic viral nucleic acids in the lungs of infected snakes. Phylogenetic analysis based on a 1,136 amino acid segment of the polyprotein suggests that this virus may represent a new species in the subfamily Torovirinae. This report of a novel nidovirus in ball pythons may provide insight into the pathogenesis of respiratory disease in this species and enhances our knowledge of the diversity of nidoviruses.

  15. Photodermatitis and photokeratoconjunctivitis in a ball python (Python regius) and a blue-tongue skink (Tiliqua spp.).

    Science.gov (United States)

    Gardiner, David W; Baines, Frances M; Pandher, Karamjeet

    2009-12-01

    A male ball python (Python regius) and a female blue tongue skink (Tiliqua spp.) of unknown age were evaluated for anorexia, lethargy, excessive shedding, corneal opacity (python), and weight loss (skink) of approximately three weeks' duration. These animals represented the worst affected animals from a private herpetarium where many animals exhibited similar signs. At necropsy, the python had bilateral corneal opacity and scattered moderate dysecdysis. The skink had mild dysecdysis, poor body condition, moderate intestinal nematodiasis, and mild liver atrophy. Microscopic evaluation revealed epidermal erosion and ulceration, with severe epidermal basal cell degeneration and necrosis, and superficial dermatitis (python and skink). Severe bilateral ulcerative keratoconjunctivitis with bacterial colonization was noted in the ball python. Microscopic findings within the skin and eyes were suggestive of ultraviolet (UV) radiation damage or of photodermatitis and photokeratoconjunctivitis. Removal of the recently installed new lamps from the terrariums of the surviving reptiles resulted in resolution of clinical signs. Evaluation of a sample lamp of the type associated with these cases revealed an extremely high UV output, including very-short-wavelength UVB, neither found in natural sunlight nor emitted by several other UVB lamps unassociated with photokeratoconjunctivitis. Exposure to high-intensity and/or inappropriate wavelengths of UV radiation may be associated with significant morbidity, and even mortality, in reptiles. Veterinarians who are presented with reptiles with ocular and/or cutaneous disease of unapparent cause should fully evaluate the specifics of the vivarium light sources. Further research is needed to determine the characteristics of appropriate and of toxic UV light for reptiles kept in captivity.

  16. Write Python instead of SQL - an introduction to SQLAlchemy.

    CERN Document Server

    CERN. Geneva

    2016-01-01

    SQLAlchemy is the most popular ORM and SQL abstraction layer for Python and used by multiple big projects at CERN such as Indico or Invenio. In my talk I'm going to give a short introduction on how to use it.

  17. p3d – Python module for structural bioinformatics

    Directory of Open Access Journals (Sweden)

    Fufezan Christian

    2009-08-01

    Full Text Available Abstract Background High-throughput bioinformatic analysis tools are needed to mine the large amount of structural data via knowledge based approaches. The development of such tools requires a robust interface to access the structural data in an easy way. For this the Python scripting language is the optimal choice since its philosophy is to write an understandable source code. Results p3d is an object oriented Python module that adds a simple yet powerful interface to the Python interpreter to process and analyse three dimensional protein structure files (PDB files. p3d's strength arises from the combination of a very fast spatial access to the structural data due to the implementation of a binary space partitioning (BSP tree, b set theory and c functions that allow to combine a and b and that use human readable language in the search queries rather than complex computer language. All these factors combined facilitate the rapid development of bioinformatic tools that can perform quick and complex analyses of protein structures. Conclusion p3d is the perfect tool to quickly develop tools for structural bioinformatics using the Python scripting language.

  18. Python for Scientific Computing Education: Modeling of Queueing Systems

    Directory of Open Access Journals (Sweden)

    Vladimiras Dolgopolovas

    2014-01-01

    Full Text Available In this paper, we present the methodology for the introduction to scientific computing based on model-centered learning. We propose multiphase queueing systems as a basis for learning objects. We use Python and parallel programming for implementing the models and present the computer code and results of stochastic simulations.

  19. pypet: A Python Toolkit for Data Management of Parameter Explorations

    Directory of Open Access Journals (Sweden)

    Robert Meyer

    2016-08-01

    Full Text Available pypet (Python parameter exploration toolkit is a new multi-platform Python toolkit for managing numerical simulations. Sampling the space of model parameters is a key aspect of simulations and numerical experiments. pypet is designed to allow easy and arbitrary sampling of trajectories through a parameter space beyond simple grid searches.pypet collects and stores both simulation parameters and results in a single HDF5 file.This collective storage allows fast and convenient loading of data for further analyses.pypet provides various additional features such as multiprocessing and parallelization of simulations, dynamic loading of data, integration of git version control, and supervision of experiments via the electronic lab notebook Sumatra. pypet supports a rich set of data formats, including native Python types, Numpy and Scipy data, Pandas DataFrames, and BRIAN(2 quantities. Besides these formats, users can easily extend the toolkit to allow customized data types. pypet is a flexible tool suited for both short Python scripts and large scale projects. pypet's various features, especially the tight link between parameters and results, promote reproducible research in computational neuroscience and simulation-based disciplines.

  20. Cost versus Precision for Approximate Typing for Python

    NARCIS (Netherlands)

    Fritz, Levin; Hage, J

    2014-01-01

    In this paper we describe a variation of monotone frameworks that enables us to perform approximate typing of Python, in particular for dealing with some of its more dynamic features such as first-class functions and Python’s dynamic class system. We additionally introduce a substantial number of va

  1. PyKrige: Development of a Kriging Toolkit for Python

    Science.gov (United States)

    Murphy, B. S.

    2014-12-01

    While Python continues to grow in popularity as a convenient and powerful means of data manipulation and analysis, the language still lacks a package that provides easy access to commonly utilized geostatistical routines. PyKrige is a new contribution that attempts to create a Python library that can be used for basic geostatistical tasks, such as creating water level maps using Ordinary and Universal Kriging. While written in pure Python, the code makes extensive use of NumPy in order to enable fast processing. Supported drift terms for Universal Kriging currently include a regional linear drift (such as would be used to simulate an overall groundwater gradient, as discussed in Tonkin and Larson, Groundwater, 2002), a point-logarithmic drift (such as would be used to simulate wells, as discussed in Tonkin and Larson, Groundwater, 2002), and an external digital elevation model drift (such as would be used to simulate a topographically controlled groundwater surface, as discussed in Desbarats et al., Journal of Hydrology, 2002). The package is intended primarily for kriging of two-dimensional data, but limited support for three-dimensional kriging is currently under development. Though similar tools already exist for other commonly utilized scientific languages, such as R and MATLAB, PyKrige is intended to ease data processing by providing further functionality in Python that can be implemented in a single analysis pipeline. The code will be made available on GitHub.

  2. pypet: A Python Toolkit for Data Management of Parameter Explorations.

    Science.gov (United States)

    Meyer, Robert; Obermayer, Klaus

    2016-01-01

    pypet (Python parameter exploration toolkit) is a new multi-platform Python toolkit for managing numerical simulations. Sampling the space of model parameters is a key aspect of simulations and numerical experiments. pypet is designed to allow easy and arbitrary sampling of trajectories through a parameter space beyond simple grid searches. pypet collects and stores both simulation parameters and results in a single HDF5 file. This collective storage allows fast and convenient loading of data for further analyses. pypet provides various additional features such as multiprocessing and parallelization of simulations, dynamic loading of data, integration of git version control, and supervision of experiments via the electronic lab notebook Sumatra. pypet supports a rich set of data formats, including native Python types, Numpy and Scipy data, Pandas DataFrames, and BRIAN(2) quantities. Besides these formats, users can easily extend the toolkit to allow customized data types. pypet is a flexible tool suited for both short Python scripts and large scale projects. pypet's various features, especially the tight link between parameters and results, promote reproducible research in computational neuroscience and simulation-based disciplines.

  3. Wyrm: A Brain-Computer Interface Toolbox in Python.

    Science.gov (United States)

    Venthur, Bastian; Dähne, Sven; Höhne, Johannes; Heller, Hendrik; Blankertz, Benjamin

    2015-10-01

    In the last years Python has gained more and more traction in the scientific community. Projects like NumPy, SciPy, and Matplotlib have created a strong foundation for scientific computing in Python and machine learning packages like scikit-learn or packages for data analysis like Pandas are building on top of it. In this paper we present Wyrm ( https://github.com/bbci/wyrm ), an open source BCI toolbox in Python. Wyrm is applicable to a broad range of neuroscientific problems. It can be used as a toolbox for analysis and visualization of neurophysiological data and in real-time settings, like an online BCI application. In order to prevent software defects, Wyrm makes extensive use of unit testing. We will explain the key aspects of Wyrm's software architecture and design decisions for its data structure, and demonstrate and validate the use of our toolbox by presenting our approach to the classification tasks of two different data sets from the BCI Competition III. Furthermore, we will give a brief analysis of the data sets using our toolbox, and demonstrate how we implemented an online experiment using Wyrm. With Wyrm we add the final piece to our ongoing effort to provide a complete, free and open source BCI system in Python.

  4. pyro: Python-based tutorial for computational methods for hydrodynamics

    Science.gov (United States)

    Zingale, Michael

    2015-07-01

    pyro is a simple python-based tutorial on computational methods for hydrodynamics. It includes 2-d solvers for advection, compressible, incompressible, and low Mach number hydrodynamics, diffusion, and multigrid. It is written with ease of understanding in mind. An extensive set of notes that is part of the Open Astrophysics Bookshelf project provides details of the algorithms.

  5. Setting Up an Integrated Development Environment for Python (Windows

    Directory of Open Access Journals (Sweden)

    William J. Turkel

    2012-07-01

    Full Text Available An Integrated Development Environment lets you write and run your Python code all in one place. For users who do not like the idea of the command line, this offers a solution that is more similar to the types of interfaces you are probably used to using.

  6. Fixing the Sorting Algorithm for Android, Java and Python

    NARCIS (Netherlands)

    C.P.T. de Gouw (Stijn); F.S. de Boer (Frank)

    2015-01-01

    htmlabstractTim Peters developed the Timsort hybrid sorting algorithm in 2002. TimSort was first developed for Python, a popular programming language, but later ported to Java (where it appears as java.util.Collections.sort and java.util.Arrays.sort). TimSort is today used as the default sorting alg

  7. pypet: A Python Toolkit for Data Management of Parameter Explorations

    Science.gov (United States)

    Meyer, Robert; Obermayer, Klaus

    2016-01-01

    pypet (Python parameter exploration toolkit) is a new multi-platform Python toolkit for managing numerical simulations. Sampling the space of model parameters is a key aspect of simulations and numerical experiments. pypet is designed to allow easy and arbitrary sampling of trajectories through a parameter space beyond simple grid searches. pypet collects and stores both simulation parameters and results in a single HDF5 file. This collective storage allows fast and convenient loading of data for further analyses. pypet provides various additional features such as multiprocessing and parallelization of simulations, dynamic loading of data, integration of git version control, and supervision of experiments via the electronic lab notebook Sumatra. pypet supports a rich set of data formats, including native Python types, Numpy and Scipy data, Pandas DataFrames, and BRIAN(2) quantities. Besides these formats, users can easily extend the toolkit to allow customized data types. pypet is a flexible tool suited for both short Python scripts and large scale projects. pypet's various features, especially the tight link between parameters and results, promote reproducible research in computational neuroscience and simulation-based disciplines. PMID:27610080

  8. Cost versus Precision for Approximate Typing for Python

    NARCIS (Netherlands)

    Fritz, Levin; Hage, J

    2014-01-01

    In this paper we describe a variation of monotone frameworks that enables us to perform approximate typing of Python, in particular for dealing with some of its more dynamic features such as first-class functions and Python’s dynamic class system. We additionally introduce a substantial number of va

  9. Fixing the Sorting Algorithm for Android, Java and Python

    NARCIS (Netherlands)

    Gouw, C.P.T. de; Boer, F.S. de

    2015-01-01

    Tim Peters developed the Timsort hybrid sorting algorithm in 2002. TimSort was first developed for Python, a popular programming language, but later ported to Java (where it appears as java.util.Collections.sort and java.util.Arrays.sort). TimSort is today used as the default sorting algorithm in Ja

  10. The ageing body in Monty Python Live (Mostly)

    DEFF Research Database (Denmark)

    Petersen, Line Nybro

    2017-01-01

    This paper analyses representations of the ageing body in the live televised show Monty Python Live (Mostly) (2014). The famous satire group performed in the O2 arena in London, and the show was telecast live in cinemas and aired on television across the world. In the show, the group members, now...

  11. Implementing a Multi-Agent System in Python

    DEFF Research Database (Denmark)

    Ettienne, Mikko Berggren; Vester, Steen; Villadsen, Jørgen

    2012-01-01

    We describe the solution used by the Python-DTU team in the Multi-Agent Programming Contest 2011, where the scenario was called Agents on Mars. We present our auction-based agreement, area controlling and pathfinding algorithms and discuss our chosen strategy and our choice of technology used...

  12. Cost versus Precision for Approximate Typing for Python

    NARCIS (Netherlands)

    Fritz, Levin; Hage, J

    2014-01-01

    In this paper we describe a variation of monotone frameworks that enables us to perform approximate typing of Python, in particular for dealing with some of its more dynamic features such as first-class functions and Python’s dynamic class system. We additionally introduce a substantial number of

  13. Los primeros minutos de Monty Python y el santo Grial

    Directory of Open Access Journals (Sweden)

    Alberto Chimal

    2007-07-01

    Full Text Available Cet article problématise quelques fragments de "Monty Python et le Saint Graal" ("Monty Python and the Holy Grail", film réalisé en 1975 par Terry Gilliam et Terry Jones. En parodiant des textes et des films arthuriens - notamment La mort d’Arthur de Thomas Malory, souvent considéré comme le résumé “canonique” de la tradition arthurienne-, le film met ouvertement en question les réductions faites par le cinéma de la matière de Bretagne, en les ridiculisant et les opposant à d’autres éléments arthuriens pris dans les textes originels.El artículo problematiza momentos importantes de Monty Python y el Santo Grial (Monty Python and the Holy Grail, filme dirigido en 1975 por Terry Gilliam y Terry Jones. Parodia de textos y filmes artúricos -en especial La muerte de Arturo de Thomas Malory, considerada a veces resumen “canónico” de la tradición artúrica-, la película cuestiona abiertamente las reducciones hechas por el cine de la Materia de la Gran Bretaña, ridiculizándolas y contrastándolas con otros elementos artúricos tomados de los textos originales.

  14. OMPC: an open-source MATLAB®-to-Python compiler

    Directory of Open Access Journals (Sweden)

    Peter Jurica

    2009-02-01

    Full Text Available Free access to scientific information facilitates scientific progress. Open-access scientific journals are a first step in this direction; a further step is to make auxiliary and supplementary materials that accompany scientific publications, such as methodological procedures and data-analysis tools, open and accessible to the scientific community. To this purpose it is instrumental to establish a software base, which will grow toward a comprehensive free and open-source language of technical and scientific computing. Endeavors in this direction are met with an important obstacle. MATLAB®, the predominant computation tool in many fields of research, is a closed-source commercial product. To facilitate the transition to an open computation platform, we introduce an Open-source MATLAB®-to-Python Compiler (OMPC, a platform that uses syntax adaptation and emulation to allow transparent import of existing MATLAB® functions into Python programs. The imported MATLAB® modules run independent of MATLAB®, relying on Python's numerical and scientific libraries. Python offers a stable and mature open source platform that, in many respects, surpasses commonly used, expensive commercial closed source packages. The proposed software will therefore facilitate the transparent transition towards a free and general open-source lingua franca for scientific computation, while enabling access to the existing methods and algorithms of technical computing already available in MATLAB®. OMPC is available at http://ompc.juricap.com.

  15. OMPC: an Open-Source MATLAB-to-Python Compiler.

    Science.gov (United States)

    Jurica, Peter; van Leeuwen, Cees

    2009-01-01

    Free access to scientific information facilitates scientific progress. Open-access scientific journals are a first step in this direction; a further step is to make auxiliary and supplementary materials that accompany scientific publications, such as methodological procedures and data-analysis tools, open and accessible to the scientific community. To this purpose it is instrumental to establish a software base, which will grow toward a comprehensive free and open-source language of technical and scientific computing. Endeavors in this direction are met with an important obstacle. MATLAB((R)), the predominant computation tool in many fields of research, is a closed-source commercial product. To facilitate the transition to an open computation platform, we propose Open-source MATLAB((R))-to-Python Compiler (OMPC), a platform that uses syntax adaptation and emulation to allow transparent import of existing MATLAB((R)) functions into Python programs. The imported MATLAB((R)) modules will run independently of MATLAB((R)), relying on Python's numerical and scientific libraries. Python offers a stable and mature open source platform that, in many respects, surpasses commonly used, expensive commercial closed source packages. The proposed software will therefore facilitate the transparent transition towards a free and general open-source lingua franca for scientific computation, while enabling access to the existing methods and algorithms of technical computing already available in MATLAB((R)). OMPC is available at http://ompc.juricap.com.

  16. Implementing a Multi-Agent System in Python

    DEFF Research Database (Denmark)

    Ettienne, Mikko Berggren; Vester, Steen; Villadsen, Jørgen

    2012-01-01

    We describe the solution used by the Python-DTU team in the Multi-Agent Programming Contest 2011, where the scenario was called Agents on Mars. We present our auction-based agreement, area controlling and pathfinding algorithms and discuss our chosen strategy and our choice of technology used...

  17. OMPC: an Open-Source MATLAB®-to-Python Compiler

    Science.gov (United States)

    Jurica, Peter; van Leeuwen, Cees

    2008-01-01

    Free access to scientific information facilitates scientific progress. Open-access scientific journals are a first step in this direction; a further step is to make auxiliary and supplementary materials that accompany scientific publications, such as methodological procedures and data-analysis tools, open and accessible to the scientific community. To this purpose it is instrumental to establish a software base, which will grow toward a comprehensive free and open-source language of technical and scientific computing. Endeavors in this direction are met with an important obstacle. MATLAB®, the predominant computation tool in many fields of research, is a closed-source commercial product. To facilitate the transition to an open computation platform, we propose Open-source MATLAB®-to-Python Compiler (OMPC), a platform that uses syntax adaptation and emulation to allow transparent import of existing MATLAB® functions into Python programs. The imported MATLAB® modules will run independently of MATLAB®, relying on Python's numerical and scientific libraries. Python offers a stable and mature open source platform that, in many respects, surpasses commonly used, expensive commercial closed source packages. The proposed software will therefore facilitate the transparent transition towards a free and general open-source lingua franca for scientific computation, while enabling access to the existing methods and algorithms of technical computing already available in MATLAB®. OMPC is available at http://ompc.juricap.com. PMID:19225577

  18. Duplicating MC-15 Output with Python and MCNP

    Energy Technology Data Exchange (ETDEWEB)

    McSpaden, Alexander Thomas [Los Alamos National Lab. (LANL), Los Alamos, NM (United States)

    2017-08-23

    Two Python scripts have been written that process the output files of MCNP6 into a format that mimics the list-mode output of Los Alamos National Laboratory’s MC-15 and NPOD neutron detection systems. This report details the methods implemented in these scripts and instructions on their use.

  19. Aura: A Multi-Featured Programming Framework in Python

    Directory of Open Access Journals (Sweden)

    2010-09-01

    Full Text Available This paper puts forward the design, programming and application of innovative educational software, ‘Aura’ made using Python and PyQt Python bindings. The research paper presents a new concept of using a single tool to relate between syntaxes of various programming languages and algorithms. It radically increases their understanding and retaining capacity, since they can correlate between many programming languages. The software is a totally unorthodox attempt towards helping students who have their first tryst with programming languages. The application is designed to help students understand how algorithms work and thus, help them in learning multiple programming languages on a single platform using an interactive graphical user interface. This paper elucidates how using Python and PyQt bindings, a comprehensive feature rich application, that implements an interactive algorithm building technique, a web browser, multiple programming language framework, a code generator and a real time code sharing hub be embedded into a single interface. And also explains, that using Python as building tool, it requires much less coding than conventional feature rich applications coded in other programming languages, and at the same time does not compromise on stability, inter-operability and robustness of the application.

  20. Fixing the Sorting Algorithm for Android, Java and Python

    NARCIS (Netherlands)

    C.P.T. de Gouw (Stijn); F.S. de Boer (Frank)

    2015-01-01

    htmlabstractTim Peters developed the Timsort hybrid sorting algorithm in 2002. TimSort was first developed for Python, a popular programming language, but later ported to Java (where it appears as java.util.Collections.sort and java.util.Arrays.sort). TimSort is today used as the default sorting

  1. Monty Python e a inversão do platonismo

    Directory of Open Access Journals (Sweden)

    Flavia Pitaluga

    2008-11-01

    Full Text Available O objetivo deste trabalho é analisar os filmes Monty Python and the holy grail (Em busca do cálice sagrado e Monty Python's life of Brian (A vida de Brian à luz das discussões de Gilles Deleuze sobre o sentido na filosofia dos estóicos. A inversão do platonismo e a ascensão à superfície dos simulacros são problemas centrais para compreendermos o humor do grupo. Ao longo da discussão, as questões sobre o lugar do clichê no cinema, o falso e suas potências e a injeção de temporalidade nas produções cinematográficas, uma das características do cinema moderno, serão abordadas. A hipótese destas articulações é que a morte de Deus (crise da Verdade é inseparável da maneira como o indivíduo moderno experimenta o tempo: o cinema moderno, ao fazer "a apresentação direta do tempo" (DELEUZE, 1990, coloca em questão a linearidade e a própria verdade como representáveis. Palavras-chave: simulacro; nonsense; humor; Monty Python Abstract: Monty Python and the inversion of Platonism — The purpose of this paper is to analyze the films "Monty Python and the Holy Grail" and "Monty Python's Life of Brian" in the light of Gilles Deleuze's reflections about meaning in the philosophy of the Stoics. The inversion of Platonism and the rise of simulacra to the surface are keys to understanding the group's humor. This discussion examines questions relating to the role of clichés in motion pictures, the fake and its powers, and the insertion of temporality in film productions as one of the characteristics of modern moviemaking. The hypothesis underpinning these articulations is that the death of God (the crisis of Truth is inseparable from the way in which modern individuals experience time: modern cinema, in its "direct presentation of time" (DELEUZE, 1990, questions linearity and truth itself as being representable. Keywords: simulacrum; nonsense; humor; Monty Python

  2. What parts of the US mainland are climatically suitable for invasive alien pythons spreading from Everglades National Park?

    Science.gov (United States)

    Rodda, G.H.; Jarnevich, C.S.; Reed, R.N.

    2009-01-01

    The Burmese Python (Python molurus bivittatus) is now well established in southern Florida and spreading northward. The factors likely to limit this spread are unknown, but presumably include climate or are correlated with climate. We compiled monthly rainfall and temperature statistics from 149 stations located near the edge of the python's native range in Asia (Pakistan east to China and south to Indonesia). The southern and eastern native range limits extend to saltwater, leaving unresolved the species' climatic tolerances in those areas. The northern and western limits are associated with cold and aridity respectively. We plotted mean monthly rainfall against mean monthly temperature for the 149 native range weather stations to identify the climate conditions inhabited by pythons in their native range, and mapped areas of the coterminous United States with the same climate today and projected for the year 2100. We accounted for both dry-season aestivation and winter hibernation (under two scenarios of hibernation duration). The potential distribution was relatively insensitive to choice of scenario for hibernation duration. US areas climatically matched at present ranged up the coasts and across the south from Delaware to Oregon, and included most of California, Texas, Oklahoma, Arkansas, Louisiana, Mississippi, Alabama, Florida, Georgia, and South and North Carolina. By the year 2100, projected areas of potential suitable climate extend northward beyond the current limit to include parts of the states of Washington, Colorado, Illinois, Indiana, Ohio, West Virginia, Pennsylvania, New Jersey, and New York. Thus a substantial portion of the mainland US is potentially vulnerable to this ostensibly tropical invader. ?? 2008 Springer Science+Business Media B.V.

  3. Postprandial remodeling of the gut microbiota in Burmese pythons.

    Science.gov (United States)

    Costello, Elizabeth K; Gordon, Jeffrey I; Secor, Stephen M; Knight, Rob

    2010-11-01

    The vertebrate gut microbiota evolved in an environment typified by periodic fluctuations in nutrient availability, yet little is known about its responses to host feeding and fasting. As many model species (for example, mice) are adapted to lifestyles of frequent small meals, we turned to the Burmese python, a sit-and-wait foraging snake that consumes large prey at long intervals (>1 month), to examine the effects of a dynamic nutrient milieu on the gut microbiota. We used multiplexed 16S rRNA gene pyrosequencing to characterize bacterial communities harvested from the intestines of fasted and digesting snakes, and from their rodent meal. In this unprecedented survey of a reptilian host, we found that Bacteroidetes and Firmicutes numerically dominated the python gut. In the large intestine, fasting was associated with increased abundances of the genera Bacteroides, Rikenella, Synergistes and Akkermansia, and with reduced overall diversity. A marked postprandial shift in bacterial community configuration occurred. Between 12 h and 3 days after feeding, Firmicutes, including the taxa Clostridium, Lactobacillus and Peptostreptococcaceae, gradually outnumbered the fasting-dominant Bacteroidetes, and overall 'species'-level diversity increased significantly. Most lineages seemed to be indigenous to the python rather than ingested with the meal, but a dietary source of Lactobacillus could not be ruled out. Thus, the observed large-scale alterations of the gut microbiota that accompany the Burmese python's own dramatic physiological and morphological changes during feeding and fasting emphasize the need to consider both microbial and host cellular responses to nutrient flux. The Burmese python may provide a unique model for dissecting these interrelationships.

  4. Emerge - A Python environment for the modeling of subsurface transfers

    Science.gov (United States)

    Lopez, S.; Smai, F.; Sochala, P.

    2014-12-01

    The simulation of subsurface mass and energy transfers often relies on specific codes that were mainly developed using compiled languages which usually ensure computational efficiency at the expense of relatively long development times and relatively rigid software. Even if a very detailed, possibly graphical, user-interface is developed the core numerical aspects are rarely accessible and the smallest modification will always need a compilation step. Thus, user-defined physical laws or alternative numerical schemes may be relatively difficult to use. Over the last decade, Python has emerged as a popular and widely used language in the scientific community. There already exist several libraries for the pre and post-treatment of input and output files for reservoir simulators (e.g. pytough). Development times in Python are considerably reduced compared to compiled languages, and programs can be easily interfaced with libraries written in compiled languages with several comprehensive numerical libraries that provide sequential and parallel solvers (e.g. PETSc, Trilinos…). The core objective of the Emerge project is to explore the possibility to develop a modeling environment in full Python. Consequently, we are developing an open python package with the classes/objects necessary to express, discretize and solve the physical problems encountered in the modeling of subsurface transfers. We heavily relied on Python to have a convenient and concise way of manipulating potentially complex concepts with a few lines of code and a high level of abstraction. Our result aims to be a friendly numerical environment targeting both numerical engineers and physicist or geoscientists with the possibility to quickly specify and handle geometries, arbitrary meshes, spatially or temporally varying properties, PDE formulations, boundary conditions…

  5. Betrayal: radio-tagged Burmese pythons reveal locations of conspecifics in Everglades National Park

    Science.gov (United States)

    Smith, Brian J.; Cherkiss, Michael S.; Hart, Kristen M.; Rochford, Michael R.; Selby, Thomas H.; Snow, Ray W; Mazzotti, Frank J.

    2016-01-01

    The “Judas” technique is based on the idea that a radio-tagged individual can be used to “betray” conspecifics during the course of its routine social behavior. The Burmese python (Python bivittatus) is an invasive constrictor in southern Florida, and few methods are available for its control. Pythons are normally solitary, but from December–April in southern Florida, they form breeding aggregations containing up to 8 individuals, providing an opportunity to apply the technique. We radio-tracked 25 individual adult pythons of both sexes during the breeding season from 2007–2012. Our goals were to (1) characterize python movements and determine habitat selection for betrayal events, (2) quantify betrayal rates of Judas pythons, and (3) compare the efficacy of this tool with current tools for capturing pythons, both in terms of cost per python removed (CPP) and catch per unit effort (CPUE). In a total of 33 python-seasons, we had 8 betrayal events (24 %) in which a Judas python led us to new pythons. Betrayal events occurred more frequently in lowland forest (including tree islands) than would be expected by chance alone. These 8 events resulted in the capture of 14 new individuals (1–4 new pythons per event). Our effort comparison shows that while the Judas technique is more costly than road cruising surveys per python removed, the Judas technique yields more large, reproductive females and is effective at a time of year that road cruising is not, making it a potential complement to the status quo removal effort.

  6. Interoperability between .Net framework and Python in Component way

    Directory of Open Access Journals (Sweden)

    M. K. Pawar

    2013-01-01

    Full Text Available The objective of this work is to make interoperability of the distributed object based on CORBA middleware technology and standards. The distributed objects for the client-server technology are implemented in C#.Net framework and the Python language. The interoperability result shows the possibilities of application in which objects can communicate in different environment and different languages. It is also analyzing that how to achieve client-server communication in heterogeneous environment using the OmniORBpy IDL compiler and IIOP.NET IDLtoCLS mapping. The results were obtained that demonstrate the interoperability between .Net Framework and Python language. This paper also summarizes a set of fairly simple examples using some reasonably complex software tools.

  7. Pyvolve: A Flexible Python Module for Simulating Sequences along Phylogenies.

    Science.gov (United States)

    Spielman, Stephanie J; Wilke, Claus O

    2015-01-01

    We introduce Pyvolve, a flexible Python module for simulating genetic data along a phylogeny using continuous-time Markov models of sequence evolution. Easily incorporated into Python bioinformatics pipelines, Pyvolve can simulate sequences according to most standard models of nucleotide, amino-acid, and codon sequence evolution. All model parameters are fully customizable. Users can additionally specify custom evolutionary models, with custom rate matrices and/or states to evolve. This flexibility makes Pyvolve a convenient framework not only for simulating sequences under a wide variety of conditions, but also for developing and testing new evolutionary models. Pyvolve is an open-source project under a FreeBSD license, and it is available for download, along with a detailed user-manual and example scripts, from http://github.com/sjspielman/pyvolve.

  8. Probabilistic programming in Python using PyMC3

    Directory of Open Access Journals (Sweden)

    John Salvatier

    2016-04-01

    Full Text Available Probabilistic programming allows for automatic Bayesian inference on user-defined probabilistic models. Recent advances in Markov chain Monte Carlo (MCMC sampling allow inference on increasingly complex models. This class of MCMC, known as Hamiltonian Monte Carlo, requires gradient information which is often not readily available. PyMC3 is a new open source probabilistic programming framework written in Python that uses Theano to compute gradients via automatic differentiation as well as compile probabilistic programs on-the-fly to C for increased speed. Contrary to other probabilistic programming languages, PyMC3 allows model specification directly in Python code. The lack of a domain specific language allows for great flexibility and direct interaction with the model. This paper is a tutorial-style introduction to this software package.

  9. Developing PYTHON Codes for the Undergraduate ALFALFA Team

    Science.gov (United States)

    Troischt, Parker; Ryan, Nicholas; Alfalfa Team

    2016-03-01

    We describe here progress toward developing a number of new PYTHON routines to be used by members of the Undergraduate ALFALFA Team. The codes are designed to analyze HI spectra and assist in identifying and categorizing some of the intriguing sources found in the initial blind ALFALFA survey. Numerical integration is performed on extragalactic sources using 21cm line spectra produced with the L-Band Wide receiver at the National Astronomy and Ionosphere Center. Prior to the integration, polynomial fits are employed to obtain an appropriate baseline for each source. The codes developed here are part of a larger team effort to use new PYTHON routines in order to replace, upgrade, or supplement a wealth of existing IDL codes within the collaboration. This work has been supported by NSF Grant AST-1211005.

  10. Using Virtual Observatory with Python: querying remote astronomical databases

    CERN Document Server

    Paletou, F

    2014-01-01

    This tutorial is devoted to extending an existing catalogue with data taken elsewhere, either from CDS Vizier or Simbad database. As an example, we used the so-called 'Spectroscopic Survey of Stars in the Solar Neighborhood' (aka. S4N, Allende Prieto et al. 2004) in order to retrieve all objects with available data for the set of fundamental stellar parameters effective temperature, surface gravity and metallicity. Then for each object in this dataset we query Simbad database to retrieve the projected rotational velocity. This combines Vizier and Simbad queries made using Python astroquery module. The tutorial covers remote database access, filtering tables with arbitrary criteria, creating and writing your own tables, and basics of plotting in Python.

  11. High-Performance Astrophysical Simulations and Analysis with Python

    CERN Document Server

    Turk, Matthew J

    2011-01-01

    The usage of the high-level scripting language Python has enabled new mechanisms for data interrogation, discovery and visualization of scientific data. We present yt, an open source, community-developed astrophysical analysis and visualization toolkit for data generated by high-performance computing (HPC) simulations of astrophysical phenomena. Through a separation of responsibilities in the underlying Python code, yt allows data generated by incompatible, and sometimes even directly competing, astrophysical simulation platforms to be analyzed in a consistent manner, focusing on physically relevant quantities rather than quantities native to astrophysical simulation codes. We present on its mechanisms for data access, capabilities for MPI-parallel analysis, and its implementation as an in situ analysis and visualization tool.

  12. Expyriment: a Python library for cognitive and neuroscientific experiments.

    Science.gov (United States)

    Krause, Florian; Lindemann, Oliver

    2014-06-01

    Expyriment is an open-source and platform-independent lightweight Python library for designing and conducting timing-critical behavioral and neuroimaging experiments. The major goal is to provide a well-structured Python library for script-based experiment development, with a high priority being the readability of the resulting program code. Expyriment has been tested extensively under Linux and Windows and is an all-in-one solution, as it handles stimulus presentation, the recording of input/output events, communication with other devices, and the collection and preprocessing of data. Furthermore, it offers a hierarchical design structure, which allows for an intuitive transition from the experimental design to a running program. It is therefore also suited for students, as well as for experimental psychologists and neuroscientists with little programming experience.

  13. Processing Government Data: ZIP Codes, Python, and OpenRefine

    Directory of Open Access Journals (Sweden)

    Frank Donnelly

    2014-07-01

    Full Text Available While there is a vast amount of useful US government data on the web, some of it is in a raw state that is not readily accessible to the average user. Data librarians can improve accessibility and usability for their patrons by processing data to create subsets of local interest and by appending geographic identifiers to help users select and aggregate data. This case study illustrates how census geography crosswalks, Python, and OpenRefine were used to create spreadsheets of non-profit organizations in New York City from the IRS Tax-Exempt Organization Masterfile. This paper illustrates the utility of Python for data librarians and should be particularly insightful for those who work with address-based data.

  14. PyCraters: A Python framework for crater function analysis

    CERN Document Server

    Norris, Scott A

    2014-01-01

    We introduce a Python framework designed to automate the most common tasks associated with the extraction and upscaling of the statistics of single-impact crater functions to inform coefficients of continuum equations describing surface morphology evolution. Designed with ease-of-use in mind, the framework allows users to extract meaningful statistical estimates with very short Python programs. Wrappers to interface with specific simulation packages, routines for statistical extraction of output, and fitting and differentiation libraries are all hidden behind simple, high-level user-facing functions. In addition, the framework is extensible, allowing advanced users to specify the collection of specialized statistics or the creation of customized plots. The framework is hosted on the BitBucket service under an open-source license, with the aim of helping non-specialists easily extract preliminary estimates of relevant crater function results associated with a particular experimental system.

  15. xarray: N-D labeled Arrays and Datasets in Python

    Directory of Open Access Journals (Sweden)

    Stephan Hoyer

    2017-04-01

    Full Text Available xarray is an open source project and Python package that provides a toolkit and data structures for N-dimensional labeled arrays. Our approach combines an application programing interface (API inspired by pandas with the Common Data Model for self-described scientific data. Key features of the xarray package include label-based indexing and arithmetic, interoperability with the core scientific Python packages (e.g., pandas, NumPy, Matplotlib, out-of-core computation on datasets that don’t fit into memory, a wide range of serialization and input/output (I/O options, and advanced multi-dimensional data manipulation tools such as group-by and resampling. xarray, as a data model and analytics toolkit, has been widely adopted in the geoscience community but is also used more broadly for multi-dimensional data analysis in physics, machine learning and finance.

  16. Brian: a simulator for spiking neural networks in Python

    Directory of Open Access Journals (Sweden)

    Dan F M Goodman

    2008-11-01

    Full Text Available Brian is a new simulator for spiking neural networks, written in Python (http://brian.di.ens.fr. It is an intuitive and highly flexible tool for rapidly developing new models, especially networks of single-compartment neurons. In addition to using standard types of neuron models, users can define models by writing arbitrary differential equations in ordinary mathematical notation. Python scientific libraries can also be used for defining models and analysing data. Vectorisation techniques allow efficient simulations despite the overheads of an interpreted language. Brian will be especially valuable for working on non-standard neuron models not easily covered by existing software, and as an alternative to using Matlab or C for simulations. With its easy and intuitive syntax, Brian is also very well suited for teaching computational neuroscience.

  17. A Python interface to Diffpack-based classes and solvers

    OpenAIRE

    Munthe-Kaas, Heidi Vikki

    2013-01-01

    Python is a programming language that has gained a lot of popularity during the last 15 years, and as a very easy-to-learn and flexible scripting language it is very well suited for computa- tional science, both in mathematics and in physics. Diffpack is a PDE library written in C++, made for easier implementation of both smaller PDE solvers and for larger libraries of simu- lators. It contains large class hierarchies for different solvers, grids, arrays, parallel computing and almost everyth...

  18. Postprandial remodeling of the gut microbiota in Burmese pythons

    OpenAIRE

    Costello, Elizabeth K.; Gordon, Jeffrey I.; Secor, Stephen M.; Knight, Rob

    2010-01-01

    The vertebrate gut microbiota evolved in an environment typified by periodic fluctuations in nutrient availability, yet little is known about its responses to host feeding and fasting. Because many model species (e.g., mice) are adapted to lifestyles of frequent small meals, we turned to the Burmese python, a sit-and-wait foraging snake that consumes large prey at long intervals (>1 month), to examine the effects of a dynamic nutrient milieu on the gut microbiota. We employed multiplexed 16S ...

  19. A Python Engine for Teaching Artificial Intelligence in Games

    OpenAIRE

    Riedl, Mark O.

    2015-01-01

    Computer games play an important role in our society and motivate people to learn computer science. Since artificial intelligence is integral to most games, they can also be used to teach artificial intelligence. We introduce the Game AI Game Engine (GAIGE), a Python game engine specifically designed to teach about how AI is used in computer games. A progression of seven assignments builds toward a complete, working Multi-User Battle Arena (MOBA) game. We describe the engine, the assignments,...

  20. Python as a federation tool for GENESIS 3.0.

    Directory of Open Access Journals (Sweden)

    Hugo Cornelis

    Full Text Available The GENESIS simulation platform was one of the first broad-scale modeling systems in computational biology to encourage modelers to develop and share model features and components. Supported by a large developer community, it participated in innovative simulator technologies such as benchmarking, parallelization, and declarative model specification and was the first neural simulator to define bindings for the Python scripting language. An important feature of the latest version of GENESIS is that it decomposes into self-contained software components complying with the Computational Biology Initiative federated software architecture. This architecture allows separate scripting bindings to be defined for different necessary components of the simulator, e.g., the mathematical solvers and graphical user interface. Python is a scripting language that provides rich sets of freely available open source libraries. With clean dynamic object-oriented designs, they produce highly readable code and are widely employed in specialized areas of software component integration. We employ a simplified wrapper and interface generator to examine an application programming interface and make it available to a given scripting language. This allows independent software components to be 'glued' together and connected to external libraries and applications from user-defined Python or Perl scripts. We illustrate our approach with three examples of Python scripting. (1 Generate and run a simple single-compartment model neuron connected to a stand-alone mathematical solver. (2 Interface a mathematical solver with GENESIS 3.0 to explore a neuron morphology from either an interactive command-line or graphical user interface. (3 Apply scripting bindings to connect the GENESIS 3.0 simulator to external graphical libraries and an open source three dimensional content creation suite that supports visualization of models based on electron microscopy and their conversion to

  1. pysimm: A python package for simulation of molecular systems

    Science.gov (United States)

    Fortunato, Michael E.; Colina, Coray M.

    In this work, we present pysimm, a python package designed to facilitate structure generation, simulation, and modification of molecular systems. pysimm provides a collection of simulation tools and smooth integration with highly optimized third party software. Abstraction layers enable a standardized methodology to assign various force field models to molecular systems and perform simple simulations. These features have allowed pysimm to aid the rapid development of new applications specifically in the area of amorphous polymer simulations.

  2. Cluster-lensing: A Python Package for Galaxy Clusters & Miscentering

    OpenAIRE

    Ford, Jes; VanderPlas, Jake

    2016-01-01

    We describe a new open source package for calculating properties of galaxy clusters, including NFW halo profiles with and without the effects of cluster miscentering. This pure-Python package, cluster-lensing, provides well-documented and easy-to-use classes and functions for calculating cluster scaling relations, including mass-richness and mass-concentration relations from the literature, as well as the surface mass density $\\Sigma(R)$ and differential surface mass density $\\Delta\\Sigma(R)$...

  3. SCoT: a Python toolbox for EEG source connectivity

    OpenAIRE

    Billinger, Martin; Brunner, Clemens; Müller-Putz, Gernot R.

    2014-01-01

    Analysis of brain connectivity has become an important research tool in neuroscience. Connectivity can be estimated between cortical sources reconstructed from the electroencephalogram (EEG). Such analysis often relies on trial averaging to obtain reliable results. However, some applications such as brain-computer interfaces (BCIs) require single-trial estimation methods. In this paper, we present SCoT—a source connectivity toolbox for Python. This toolbox implements routines for blind source...

  4. A Community Python Library for Solar Physics (SunPy)

    Science.gov (United States)

    Christe, Steven; Shih, A. Y.; Ireland, J.; Perez-Suarez, D.; Mumford, S.; Hughitt, V. K.; Hewett, R.; Mayer, F.; SunPy Dev Team

    2013-07-01

    Python, a free, cross platform, general purpose, high-level programming language, has seen widespread adoption among the scientific community resulting in the availability of a large range of software, from numerical computation (NumPy, SciPy) and machine learning to spectral analysis and visualization (Matplotlib). SunPy is a data analysis toolkit specializing in providing the software necessary to analyze solar and heliospheric datasets in Python. It aims to provide a free and open-source alternative to the IDL-based SolarSoft (SSW) solar data analysis environment. We present the latest release of SunPy (0.3). This release includes a major refactor of the main SunPy code to improve ease of use for the user as well as a more consistent interface. SunPy provides downloading capability through integration with the Virtual Solar Observatory (VSO) and the the Heliophysics Event Knowledgebase (HEK). It can open image fits files from major solar missions (SDO/AIA, SOHO/EIT, SOHO/LASCO, STEREO) into WCS-aware maps. SunPy provides advanced time-series tools for data from mission such as GOES, SDO/EVE, and Proba2/LYRA as well as support for radio spectra (e.g. e-Callisto). We present examples of solar data analysis in SunPy, and show how Python-based solar data-analysis can leverage the many existing data analysis tools already available in Python. We discuss the future goals of the project and encourage interested users to become involved in the planning and development of SunPy.

  5. AstroAsciiData: ASCII table Python module

    Science.gov (United States)

    Kümmel, Martin; Haase, Jonas

    2013-11-01

    ASCII tables continue to be one of the most popular and widely used data exchange formats in astronomy. AstroAsciiData, written in Python, imports all reasonably well-formed ASCII tables. It retains formatting of data values, allows column-first access, supports SExtractor style headings, performs column sorting, and exports data to other formats, including FITS, Numpy/Numarray, and LaTeX table format. It also offers interchangeable comment character, column delimiter and null value.

  6. ObsPy: A Python Toolbox for Seismology

    Science.gov (United States)

    Wassermann, J. M.; Krischer, L.; Megies, T.; Barsch, R.; Beyreuther, M.

    2013-12-01

    Python combines the power of a full-blown programming language with the flexibility and accessibility of an interactive scripting language. Its extensive standard library and large variety of freely available high quality scientific modules cover most needs in developing scientific processing workflows. ObsPy is a community-driven, open-source project extending Python's capabilities to fit the specific needs that arise when working with seismological data. It a) comes with a continuously growing signal processing toolbox that covers most tasks common in seismological analysis, b) provides read and write support for many common waveform, station and event metadata formats and c) enables access to various data centers, webservices and databases to retrieve waveform data and station/event metadata. In combination with mature and free Python packages like NumPy, SciPy, Matplotlib, IPython, Pandas, lxml, and PyQt, ObsPy makes it possible to develop complete workflows in Python, ranging from reading locally stored data or requesting data from one or more different data centers via signal analysis and data processing to visualization in GUI and web applications, output of modified/derived data and the creation of publication-quality figures. All functionality is extensively documented and the ObsPy Tutorial and Gallery give a good impression of the wide range of possible use cases. ObsPy is tested and running on Linux, OS X and Windows and comes with installation routines for these systems. ObsPy is developed in a test-driven approach and is available under the LGPLv3 open source licence. Users are welcome to request help, report bugs, propose enhancements or contribute code via either the user mailing list or the project page on GitHub.

  7. MEG and EEG data analysis with MNE-Python

    OpenAIRE

    Gramfort, Alexandre; Luessi, Martin; Larson, Eric; Engemann, Denis A.; Strohmeier, Daniel; Brodbeck, Christian; Goj, Roman; Jas, Mainak; Brooks, Teon; Parkkonen, Lauri; Hämäläinen, Matti

    2013-01-01

    Magnetoencephalography and electroencephalography (M/EEG) measure the weak electromagnetic signals generated by neuronal activity in the brain. Using these signals to characterize and locate neural activation in the brain is a challenge that requires expertise in physics, signal processing, statistics, and numerical methods. As part of the MNE software suite, MNE-Python is an open-source software package that addresses this challenge by providing state-of-the-art algorithms implemented in Pyt...

  8. MEG and EEG data analysis with MNE-Python.

    OpenAIRE

    Gramfort, Alexandre; Luessi, Martin; Larson, Eric; Engemann, Denis A.; Strohmeier, Daniel; Brodbeck, Christian; Goj, Roman; Jas, Mainak; Brooks, Teon; Parkkonen, Lauri; Hämäläinen, Matti

    2013-01-01

    Magnetoencephalography and electroencephalography (M/EEG) measure the weak electromagnetic signals generated by neuronal activity in the brain. Using these signals to characterize and locate neural activation in the brain is a challenge that requires expertise in physics, signal processing, statistics, and numerical methods. As part of the MNE software suite, MNE-Python is an open-source software package that addresses this challenge by providing state-of-the-art algorithms implemented in Pyt...

  9. Python as a federation tool for GENESIS 3.0.

    Science.gov (United States)

    Cornelis, Hugo; Rodriguez, Armando L; Coop, Allan D; Bower, James M

    2012-01-01

    The GENESIS simulation platform was one of the first broad-scale modeling systems in computational biology to encourage modelers to develop and share model features and components. Supported by a large developer community, it participated in innovative simulator technologies such as benchmarking, parallelization, and declarative model specification and was the first neural simulator to define bindings for the Python scripting language. An important feature of the latest version of GENESIS is that it decomposes into self-contained software components complying with the Computational Biology Initiative federated software architecture. This architecture allows separate scripting bindings to be defined for different necessary components of the simulator, e.g., the mathematical solvers and graphical user interface. Python is a scripting language that provides rich sets of freely available open source libraries. With clean dynamic object-oriented designs, they produce highly readable code and are widely employed in specialized areas of software component integration. We employ a simplified wrapper and interface generator to examine an application programming interface and make it available to a given scripting language. This allows independent software components to be 'glued' together and connected to external libraries and applications from user-defined Python or Perl scripts. We illustrate our approach with three examples of Python scripting. (1) Generate and run a simple single-compartment model neuron connected to a stand-alone mathematical solver. (2) Interface a mathematical solver with GENESIS 3.0 to explore a neuron morphology from either an interactive command-line or graphical user interface. (3) Apply scripting bindings to connect the GENESIS 3.0 simulator to external graphical libraries and an open source three dimensional content creation suite that supports visualization of models based on electron microscopy and their conversion to computational models

  10. Psyplot: Visualizing rectangular and triangular Climate Model Data with Python

    Science.gov (United States)

    Sommer, Philipp

    2016-04-01

    The development and use of climate models often requires the visualization of geo-referenced data. Creating visualizations should be fast, attractive, flexible, easily applicable and easily reproducible. There is a wide range of software tools available for visualizing raster data, but they often are inaccessible to many users (e.g. because they are difficult to use in a script or have low flexibility). In order to facilitate easy visualization of geo-referenced data, we developed a new framework called "psyplot," which can aid earth system scientists with their daily work. It is purely written in the programming language Python and primarily built upon the python packages matplotlib, cartopy and xray. The package can visualize data stored on the hard disk (e.g. NetCDF, GeoTIFF, any other file format supported by the xray package), or directly from the memory or Climate Data Operators (CDOs). Furthermore, data can be visualized on a rectangular grid (following or not following the CF Conventions) and on a triangular grid (following the CF or UGRID Conventions). Psyplot visualizes 2D scalar and vector fields, enabling the user to easily manage and format multiple plots at the same time, and to export the plots into all common picture formats and movies covered by the matplotlib package. The package can currently be used in an interactive python session or in python scripts, and will soon be developed for use with a graphical user interface (GUI). Finally, the psyplot framework enables flexible configuration, allows easy integration into other scripts that uses matplotlib, and provides a flexible foundation for further development.

  11. Understanding network hacks attack and defense with Python

    CERN Document Server

    Ballmann, Bastian

    2015-01-01

    This book explains how to see one's own network through the eyes of an attacker, to understand their techniques and effectively protect against them. Through Python code samples the reader learns to code tools on subjects such as password sniffing, ARP poisoning, DNS spoofing, SQL injection, Google harvesting and Wifi hacking. Furthermore the reader will be introduced to defense methods such as intrusion detection and prevention systems and log file analysis by diving into code.

  12. VPython: Python plus Animations in Stereo 3D

    Science.gov (United States)

    Sherwood, Bruce

    2004-03-01

    Python is a modern object-oriented programming language. VPython (http://vpython.org) is a combination of Python (http://python.org), the Numeric module from LLNL (http://www.pfdubois.com/numpy), and the Visual module created by David Scherer, all of which have been under continuous development as open source projects. VPython makes it easy to write programs that generate real-time, navigable 3D animations. The Visual module includes a set of 3D objects (sphere, cylinder, arrow, etc.), tools for creating other shapes, and support for vector algebra. The 3D renderer runs in a parallel thread, and animations are produced as a side effect of computations, freeing the programmer to concentrate on the physics. Applications include educational and research visualization. In the Fall of 2003 Hugh Fisher at the Australian National University, John Zelle at Wartburg College, and I contributed to a new stereo capability of VPython. By adding a single statement to an existing VPython program, animations can be viewed in true stereo 3D. One can choose several modes: active shutter glasses, passive polarized glasses, or colored glasses (e.g. red-cyan). The talk will demonstrate the new stereo capability and discuss the pros and cons of various schemes for display of stereo 3D for a large audience. Supported in part by NSF grant DUE-0237132.

  13. ACPYPE - AnteChamber PYthon Parser interfacE

    Directory of Open Access Journals (Sweden)

    Sousa da Silva Alan W

    2012-07-01

    Full Text Available Abstract Background ACPYPE (or AnteChamber PYthon Parser interfacE is a wrapper script around the ANTECHAMBER software that simplifies the generation of small molecule topologies and parameters for a variety of molecular dynamics programmes like GROMACS, CHARMM and CNS. It is written in the Python programming language and was developed as a tool for interfacing with other Python based applications such as the CCPN software suite (for NMR data analysis and ARIA (for structure calculations from NMR data. ACPYPE is open source code, under GNU GPL v3, and is available as a stand-alone application at http://www.ccpn.ac.uk/acpype and as a web portal application at http://webapps.ccpn.ac.uk/acpype. Findings We verified the topologies generated by ACPYPE in three ways: by comparing with default AMBER topologies for standard amino acids; by generating and verifying topologies for a large set of ligands from the PDB; and by recalculating the structures for 5 protein–ligand complexes from the PDB. Conclusions ACPYPE is a tool that simplifies the automatic generation of topology and parameters in different formats for different molecular mechanics programmes, including calculation of partial charges, while being object oriented for integration with other applications.

  14. BioC implementations in Go, Perl, Python and Ruby.

    Science.gov (United States)

    Liu, Wanli; Islamaj Doğan, Rezarta; Kwon, Dongseop; Marques, Hernani; Rinaldi, Fabio; Wilbur, W John; Comeau, Donald C

    2014-01-01

    As part of a communitywide effort for evaluating text mining and information extraction systems applied to the biomedical domain, BioC is focused on the goal of interoperability, currently a major barrier to wide-scale adoption of text mining tools. BioC is a simple XML format, specified by DTD, for exchanging data for biomedical natural language processing. With initial implementations in C++ and Java, BioC provides libraries of code for reading and writing BioC text documents and annotations. We extend BioC to Perl, Python, Go and Ruby. We used SWIG to extend the C++ implementation for Perl and one Python implementation. A second Python implementation and the Ruby implementation use native data structures and libraries. BioC is also implemented in the Google language Go. BioC modules are functional in all of these languages, which can facilitate text mining tasks. BioC implementations are freely available through the BioC site: http://bioc.sourceforge.net. Database URL: http://bioc.sourceforge.net/

  15. GAiN: Distributed Array Computation with Python

    Energy Technology Data Exchange (ETDEWEB)

    Daily, Jeffrey A. [Washington State Univ., Pullman, WA (United States)

    2009-05-01

    Scientific computing makes use of very large, multidimensional numerical arrays - typically, gigabytes to terabytes in size - much larger than can fit on even the largest single compute node. Such arrays must be distributed across a "cluster" of nodes. Global Arrays is a cluster-based software system from Battelle Pacific Northwest National Laboratory that enables an efficient, portable, and parallel shared-memory programming interface to manipulate these arrays. Written in and for the C and FORTRAN programming languages, it takes advantage of high-performance cluster interconnections to allow any node in the cluster to access data on any other node very rapidly. The "numpy" module is the de facto standard for numerical calculation in the Python programming language, a language whose use is growing rapidly in the scientific and engineering communities. numpy provides a powerful N-dimensional array class as well as other scientific computing capabilities. However, like the majority of the core Python modules, numpy is inherently serial. Our system, GAiN (Global Arrays in NumPy), is a parallel extension to Python that accesses Global Arrays through numpy. This allows parallel processing and/or larger problem sizes to be harnessed almost transparently within new or existing numpy programs.

  16. DREAMTools: a Python package for scoring collaborative challenges.

    Science.gov (United States)

    Cokelaer, Thomas; Bansal, Mukesh; Bare, Christopher; Bilal, Erhan; Bot, Brian M; Chaibub Neto, Elias; Eduati, Federica; de la Fuente, Alberto; Gönen, Mehmet; Hill, Steven M; Hoff, Bruce; Karr, Jonathan R; Küffner, Robert; Menden, Michael P; Meyer, Pablo; Norel, Raquel; Pratap, Abhishek; Prill, Robert J; Weirauch, Matthew T; Costello, James C; Stolovitzky, Gustavo; Saez-Rodriguez, Julio

    2015-01-01

    DREAM challenges are community competitions designed to advance computational methods and address fundamental questions in system biology and translational medicine. Each challenge asks participants to develop and apply computational methods to either predict unobserved outcomes or to identify unknown model parameters given a set of training data. Computational methods are evaluated using an automated scoring metric, scores are posted to a public leaderboard, and methods are published to facilitate community discussions on how to build improved methods. By engaging participants from a wide range of science and engineering backgrounds, DREAM challenges can comparatively evaluate a wide range of statistical, machine learning, and biophysical methods. Here, we describe DREAMTools, a Python package for evaluating DREAM challenge scoring metrics. DREAMTools provides a command line interface that enables researchers to test new methods on past challenges, as well as a framework for scoring new challenges. As of March 2016, DREAMTools includes more than 80% of completed DREAM challenges. DREAMTools complements the data, metadata, and software tools available at the DREAM website http://dreamchallenges.org and on the Synapse platform at https://www.synapse.org.   DREAMTools is a Python package. Releases and documentation are available at http://pypi.python.org/pypi/dreamtools. The source code is available at http://github.com/dreamtools/dreamtools.

  17. Text Mining in Python through the HTRC Feature Reader

    Directory of Open Access Journals (Sweden)

    Peter Organisciak

    2016-11-01

    Full Text Available We introduce a toolkit for working with the 13.6 million volume Extracted Features Dataset from the HathiTrust Research Center. You will learn how to peer at the words and trends of any book in the collection, while developing broadly useful Python data analysis skills. The HathiTrust holds nearly 15 million digitized volumes from libraries around the world. In addition to their individual value, these works in aggregate are extremely valuable for historians. Spanning many centuries and genres, they offer a way to learn about large-scale trends in history and culture, as well as evidence for changes in language or even the structure of the book. To simplify access to this collection the HathiTrust Research Center (HTRC has released the Extracted Features dataset (Capitanu et al. 2015: a dataset that provides quantitative information describing every page of every volume in the collection. In this lesson, we introduce the HTRC Feature Reader, a library for working with the HTRC Extracted Features dataset using the Python programming language. The HTRC Feature Reader is structured to support work using popular data science libraries, particularly Pandas. Pandas provides simple structures for holding data and powerful ways to interact with it. The HTRC Feature Reader uses these data structures, so learning how to use it will also cover general data analysis skills in Python.

  18. Rodents as intermediate hosts of Hepatozoon ayorgbor (Apicomplexa: Adeleina: Hepatozoidae) from the African ball python, Python regius?

    Science.gov (United States)

    Sloboda, Michal; Kamler, Martin; Bulantová, Jana; Votýpka, Jan; Modrý, David

    2008-03-01

    Two experimental trials were performed to elucidate the role of rodents in the life cycle of Hepatozoon species using snakes as intermediate hosts. In one trial, two ball pythons, Python regius Shaw, 1802 were force fed livers of laboratory mice previously inoculated with sporocysts of Hepatozoon ayorgbor Sloboda, Kamler, Bulantová, Votýpka et Modrý, 2007. Transmission was successful in these experimentally infected snakes as evidenced by the appearance of intraerythrocytic gamonts, which persisted until the end of trial, 12 months after inoculation. Developmental stages of haemogregarines were not observed in histological sections from mice. In another experimental trial, a presence of haemogregarine DNA in mice inoculated with H. ayorgbor was demonstrated by PCR in the liver, lungs and spleen.

  19. Hearing with an atympanic ear: good vibration and poor sound-pressure detection in the royal python, Python regius.

    Science.gov (United States)

    Christensen, Christian Bech; Christensen-Dalsgaard, Jakob; Brandt, Christian; Madsen, Peter Teglberg

    2012-01-15

    Snakes lack both an outer ear and a tympanic middle ear, which in most tetrapods provide impedance matching between the air and inner ear fluids and hence improve pressure hearing in air. Snakes would therefore be expected to have very poor pressure hearing and generally be insensitive to airborne sound, whereas the connection of the middle ear bone to the jaw bones in snakes should confer acute sensitivity to substrate vibrations. Some studies have nevertheless claimed that snakes are quite sensitive to both vibration and sound pressure. Here we test the two hypotheses that: (1) snakes are sensitive to sound pressure and (2) snakes are sensitive to vibrations, but cannot hear the sound pressure per se. Vibration and sound-pressure sensitivities were quantified by measuring brainstem evoked potentials in 11 royal pythons, Python regius. Vibrograms and audiograms showed greatest sensitivity at low frequencies of 80-160 Hz, with sensitivities of -54 dB re. 1 m s(-2) and 78 dB re. 20 μPa, respectively. To investigate whether pythons detect sound pressure or sound-induced head vibrations, we measured the sound-induced head vibrations in three dimensions when snakes were exposed to sound pressure at threshold levels. In general, head vibrations induced by threshold-level sound pressure were equal to or greater than those induced by threshold-level vibrations, and therefore sound-pressure sensitivity can be explained by sound-induced head vibration. From this we conclude that pythons, and possibly all snakes, lost effective pressure hearing with the complete reduction of a functional outer and middle ear, but have an acute vibration sensitivity that may be used for communication and detection of predators and prey.

  20. Laminar Python: tools for cortical depth-resolved analysis of high-resolution brain imaging data in Python

    Directory of Open Access Journals (Sweden)

    Julia Huntenburg

    2017-02-01

    Full Text Available Increasingly available high-resolution brain imaging data require specialized processing tools that can leverage their anatomical detail and handle their size. Here, we present user-friendly Python tools for cortical depth resolved analysis in such data. Our implementation is based on the CBS High-Res Brain Processing framework, and aims to make high-resolution data processing tools available to the broader community.

  1. Giant Constrictors: Biological and Management Profiles and an Establishment Risk Assessment for Nine Large Species of Pythons, Anacondas, and the Boa Constrictor

    Science.gov (United States)

    Reed, Robert N.; Rodda, Gordon H.

    2009-01-01

    Giant Constrictors: Biological and Management Profiles and an Establishment Risk Assessment for Nine Large Species of Pythons, Anacondas, and the Boa Constrictor, estimates the ecological risks associated with colonization of the United States by nine large constrictors. The nine include the world's four largest snake species (Green Anaconda, Eunectes murinus; Indian or Burmese Python, Python molurus; Northern African Python, Python sebae; and Reticulated Python, Broghammerus reticulatus), the Boa Constrictor (Boa constrictor), and four species that are ecologically or visually similar to one of the above (Southern African Python, Python natalensis; Yellow Anaconda, Eunectes notaeus; DeSchauensee's Anaconda, Eunectes deschauenseei; and Beni Anaconda, Eunectes beniensis). At present, the only probable pathway by which these species would become established in the United States is the pet trade. Although importation for the pet trade involves some risk that these animals could become established as exotic or invasive species, it does not guarantee such establishment. Federal regulators have the task of appraising the importation risks and balancing those risks against economic, social, and ecological benefits associated with the importation. The risk assessment quantifies only the ecological risks, recognizing that ecosystem processes are complex and only poorly understood. The risk assessment enumerates the types of economic impacts that may be experienced, but leaves quantification of economic costs to subsequent studies. Primary factors considered in judging the risk of establishment were: (1) history of establishment in other countries, (2) number of each species in commerce, (3) suitability of U.S. climates for each species, and (4) natural history traits, such as reproductive rate and dispersal ability, that influence the probability of establishment, spread, and impact. In addition, the risk assessment reviews all management tools for control of invasive giant

  2. Giant Constrictors: Biological and Management Profiles and an Establishment Risk Assessment for Nine Large Species of Pythons, Anacondas, and the Boa Constrictor

    Science.gov (United States)

    Reed, Robert N.; Rodda, Gordon H.

    2009-01-01

    Giant Constrictors: Biological and Management Profiles and an Establishment Risk Assessment for Nine Large Species of Pythons, Anacondas, and the Boa Constrictor, estimates the ecological risks associated with colonization of the United States by nine large constrictors. The nine include the world's four largest snake species (Green Anaconda, Eunectes murinus; Indian or Burmese Python, Python molurus; Northern African Python, Python sebae; and Reticulated Python, Broghammerus reticulatus), the Boa Constrictor (Boa constrictor), and four species that are ecologically or visually similar to one of the above (Southern African Python, Python natalensis; Yellow Anaconda, Eunectes notaeus; DeSchauensee's Anaconda, Eunectes deschauenseei; and Beni Anaconda, Eunectes beniensis). At present, the only probable pathway by which these species would become established in the United States is the pet trade. Although importation for the pet trade involves some risk that these animals could become established as exotic or invasive species, it does not guarantee such establishment. Federal regulators have the task of appraising the importation risks and balancing those risks against economic, social, and ecological benefits associated with the importation. The risk assessment quantifies only the ecological risks, recognizing that ecosystem processes are complex and only poorly understood. The risk assessment enumerates the types of economic impacts that may be experienced, but leaves quantification of economic costs to subsequent studies. Primary factors considered in judging the risk of establishment were: (1) history of establishment in other countries, (2) number of each species in commerce, (3) suitability of U.S. climates for each species, and (4) natural history traits, such as reproductive rate and dispersal ability, that influence the probability of establishment, spread, and impact. In addition, the risk assessment reviews all management tools for control of invasive giant

  3. Leveraging Python Interoperability Tools to Improve Sapphire's Usability

    Energy Technology Data Exchange (ETDEWEB)

    Gezahegne, A; Love, N S

    2007-12-10

    The Sapphire project at the Center for Applied Scientific Computing (CASC) develops and applies an extensive set of data mining algorithms for the analysis of large data sets. Sapphire's algorithms are currently available as a set of C++ libraries. However many users prefer higher level scripting languages such as Python for their ease of use and flexibility. In this report, we evaluate four interoperability tools for the purpose of wrapping Sapphire's core functionality with Python. Exposing Sapphire's functionality through a Python interface would increase its usability and connect its algorithms to existing Python tools.

  4. First record of invasive Burmese Python oviposition and brooding inside an anthropogenic structure

    Science.gov (United States)

    Hanslowe, Emma; Falk, Bryan; Collier, Michelle A. M.; Josimovich, Jillian; Rahill, Thomas; Reed, Robert

    2016-01-01

    We discovered an adult female Python bivittatus (Burmese Python) coiled around a clutch of 25 eggs in a cement culvert in Flamingo, FL, in Everglades National Park. To our knowledge, this is the first record of an invasive Burmese Python laying eggs and brooding inside an anthropogenic structure in Florida. A 92% hatch-success rate suggests that the cement culvert provided suitable conditions for oviposition, embryonic development, and hatching. Given the plenitude of such anthropogenic structures across the landscape, available sites for oviposition and brooding may not be limiting for the invasive Burmese Python population.

  5. PyEEG: an open source Python module for EEG/MEG feature extraction.

    Science.gov (United States)

    Bao, Forrest Sheng; Liu, Xin; Zhang, Christina

    2011-01-01

    Computer-aided diagnosis of neural diseases from EEG signals (or other physiological signals that can be treated as time series, e.g., MEG) is an emerging field that has gained much attention in past years. Extracting features is a key component in the analysis of EEG signals. In our previous works, we have implemented many EEG feature extraction functions in the Python programming language. As Python is gaining more ground in scientific computing, an open source Python module for extracting EEG features has the potential to save much time for computational neuroscientists. In this paper, we introduce PyEEG, an open source Python module for EEG feature extraction.

  6. The PYTHON Microwave Background Anisotropy Experiment: Instrumentation and Analysis

    Science.gov (United States)

    Ruhl, J.; Dragovan, M.; Novak, G.; Platt, S. R.; Crone, B.; Pernic, R.

    1993-05-01

    We will discuss the instrumentation and data analysis for the PYTHON microwave background anisotropy experiment. This instrument was used at the South Pole from 1/1 to 1/15 1993 for observations of the microwave sky at a frequency of 90 GHz. The telescope has a FWHM beam of 45', and a chop of 2.75(deg) . This work was supported by The Center for Astrophysics in Antarctica, PYI grant NSF AST-9057089, the James S. McDonnell Foundation, and NASA grant NGT-50622.

  7. Anisotropy in the microwave sky: latest results from PYTHON

    Science.gov (United States)

    Ruhl, J. E.; Dragovan, M.; Platt, S. R.; Pernic, R.; Novak, G.; Kovac, J.; Vinje, B.; Peterson, J. B.

    1994-12-01

    We will report results from the second season of observations with Python, a system designed to search for degree-scale anisotropies in the Cosmic Microwave Background. The instrument, which has an array of four bolometric detectors in its focal plane, is sensitive to radiation centered at lambda = 3.3 mm. Significant fluctuations (Delta T_{RJ,rms} ~ 70mu K) were found in the first seasons observations at the South Pole, January 1993. The same fields were reobserved during December 1993; we will report on the correlation between these two data sets. Additionally, results from a second set of fields will be given.

  8. Spherical Panorama Visualization of Astronomical Data with Blender and Python

    Science.gov (United States)

    Kent, Brian R.

    2016-06-01

    We describe methodology to generate 360 degree spherical panoramas of both 2D and 3D data. The techniques apply to a variety of astronomical data types - all sky maps, 2D and 3D catalogs as well as planetary surface maps. The results can be viewed in a desktop browser or interactively with a mobile phone or tablet. Static displays or panoramic video renderings of the data can be produced. We review the Python code and usage of the 3D Blender software for projecting maps onto 3D surfaces and the various tools for distributing visualizations.

  9. Unbinned likelihood maximisation framework for neutrino clustering in Python

    Energy Technology Data Exchange (ETDEWEB)

    Coenders, Stefan [Technische Universitaet Muenchen, Boltzmannstr. 2, 85748 Garching (Germany)

    2016-07-01

    Albeit having detected an astrophysical neutrino flux with IceCube, sources of astrophysical neutrinos remain hidden up to now. A detection of a neutrino point source is a smoking gun for hadronic processes and acceleration of cosmic rays. The search for neutrino sources has many degrees of freedom, for example steady versus transient, point-like versus extended sources, et cetera. Here, we introduce a Python framework designed for unbinned likelihood maximisations as used in searches for neutrino point sources by IceCube. Implementing source scenarios in a modular way, likelihood searches on various kinds can be implemented in a user-friendly way, without sacrificing speed and memory management.

  10. Specifying the Behaviour of Python Programs: Language and Basic Examples

    Directory of Open Access Journals (Sweden)

    2010-04-01

    Full Text Available This manuscript describe BeSSY, a function-centric language for formal behavioural specification that requires no more than high-school mathematics on arithmetic, functions, Boolean algebra and sets theory. An object can be modelled as a union of data sets and functions whereas inherited object can be modelled as a union of supersets and a set of object-specific functions. Python list and dictionary operations will be specified in BeSSY for illustration.

  11. PYESSENCE - Generalised Coupled Quintessence Linear Perturbation Python Code - User Guide

    CERN Document Server

    Leithes, Alexander

    2016-01-01

    This paper is a guide to the installation and use of the Python package PYESSENCE. PYESSENCE is designed to evolve linear perturbations to Coupled Quintessence models with a arbitrary number of cold dark matter (CDM) fluids and dark energy (DE) scalar fields as dictated by a given model. The equations are sufficiently general to allow for more exotic dark matter with a non-zero equation of state. Several example uses are included in order to demonstrate typical functionality to the potential user. PYESSENCE is released under an open source modified BSD license and is available on Bitbucket.

  12. Use of Python and Phoenix-M Interface in Robotics

    CERN Document Server

    Chakraborty, Shubham

    2011-01-01

    In this paper I will show how to use Python programming with a computer interface such as Phoenix-M 1 to drive simple robots. In my quest towards Artificial Intelligence(AI) I am experimenting with a lot of different possibilities in Robotics. This one will try to mimic the working of a simple insect's nervous system using hard wiring and some minimal software usage. This is the precursor to my advanced robotics and AI integration where I plan to use a new paradigm of AI based on Machine Learning and Self Consciousness via Knowledge Feedback and Update Process.

  13. Respiratory consequences of feeding in the snake Python molorus.

    Science.gov (United States)

    Overgaard, J; Busk, M; Hicks, J W; Jensen, F B; Wang, T

    1999-11-01

    Snakes can ingest large meals and exhibit marked increases in metabolic rate during digestion. Because postprandial oxygen consumption in some snakes may surpass that attained during exercise, studies of digestion offers an alternative avenue to understand the cardio-respiratory responses to elevated metabolic rate in reptiles. The effects of feeding on metabolic rate, arterial oxygen levels, and arterial acid-base status in the snake Python molorus are described. Four snakes (180-250 g) were cannulated in the dorsal aorta and blood samples were obtained during 72 h following ingestion of a meal (rat pups) exceeding 20% of body weight. Oxygen consumption increased from a fasting value of 1.71 +/- 0.08 to 5.54 +/- 0.42 ml kg-1 min-1 at 48 h following feeding, and the respiratory gas exchange ratio increased from 0.67 +/- 0.02 to a maximum of 0.92 +/- 0.03 at 32 h. Plasma lactate was always less than 0.5 mM, so the postprandial increase in metabolic rate was met by aerobic respiration. In fasting animals, arterial PO2 was 66 +/- 4 mmHg and haemoglobin-O2 saturation was 92 +/- 3%; similar values were recorded during digestion, but haematocrit decreased from 15.8 +/- 1.0 to 9.8 +/- 0.8 due to repeated blood sampling. Plasma [HCO3-] increased from a fasting level of 19.3 +/- 0.8 to 25.8 +/- 1.0 mmol l-1 at 24 h after feeding. However, because arterial PCO2 increased from 21.1 +/- 0.5 to 27.9 +/- 1.4 mmHg, there was no significant change in arterial pH from the fasting value of 7.52 +/- 0.01. Acid-base status returned to pre-feeding levels at 72 h following feeding. The increased arterial PCO2 is most likely explained by a reduction in ventilation relative to metabolism, but we predict that lung PO2 does not decrease below 115 mmHg. Although ingestion of large meals is associated with large metabolic changes in pythons, the attendant changes in blood gases are relatively small. In particular, the small changes in plasma [HCO3-] and stable pH show that pythons respond

  14. Python text processing with NLTK 2.0 cookbook LITE

    CERN Document Server

    Perkins, Jacob

    2011-01-01

    The learn-by-doing approach of this book will enable you to dive right into the heart of text processing from the very first page. Each recipe is carefully designed to fulfill your appetite for Natural Language Processing. Packed with numerous illustrative examples and code samples, it will make the task of using the NLTK for Natural Language Processing easy and straightforward. This book is for Python programmers who want to quickly get to grips with using the NLTK for Natural Language Processing. Familiarity with basic text processing concepts is required. Programmers experienced in the NLTK

  15. PyVO: Python access to the Virtual Observatory

    Science.gov (United States)

    Graham, Matthew; Plante, Ray; Tody, Doug; Fitzpatrick, Mike

    2014-02-01

    PyVO provides access to remote data and services of the Virtual observatory (VO) using Python. It allows archive searches for data of a particular type or related to a particular topic and query submissions to obtain data to a particular archive to download selected data products. PyVO supports querying the VAO registry; simple data access services (DAL) to access images (SIA), source catalog records (Cone Search), spectra (SSA), and spectral line emission/absorption data (SLAP); and object name resolution (for converting names of objects in the sky into positions). PyVO requires both AstroPy and NumPy.

  16. Amateur Image Pipeline Processing using Python plus PyRAF

    Science.gov (United States)

    Green, Wayne

    2012-05-01

    A template pipeline spanning observing planning to publishing is offered as a basis for establishing a long term observing program. The data reduction pipeline encapsulates all policy and procedures, providing an accountable framework for data analysis and a teaching framework for IRAF. This paper introduces the technical details of a complete pipeline processing environment using Python, PyRAF and a few other languages. The pipeline encapsulates all processing decisions within an auditable framework. The framework quickly handles the heavy lifting of image processing. It also serves as an excellent teaching environment for astronomical data management and IRAF reduction decisions.

  17. Interfacing of high temperature Z-meter setup using python

    Science.gov (United States)

    Patel, Ashutosh; Sisodia, Shashank; Pandey, Sudhir K.

    2017-05-01

    In this work, we interface high temperature Z-meter setup to automize the whole measurement process. A program is built on open source programming language `Python' which convert the manual measurement process into fully automated process without any cost addition. Using this program, simultaneous measurement of Seebeck coefficient (α), thermal conductivity (κ) and electrical resistivity (ρ), are performed and using all three, figure-of-merit (ZT) is calculated. Developed program is verified by performing measurement over p-type Bi0.36Sb1.45Te3 sample and the data obtained are found to be in good agreement with the reported data.

  18. An object oriented Python interface for atomistic simulations

    Science.gov (United States)

    Hynninen, T.; Himanen, L.; Parkkinen, V.; Musso, T.; Corander, J.; Foster, A. S.

    2016-01-01

    Programmable simulation environments allow one to monitor and control calculations efficiently and automatically before, during, and after runtime. Environments directly accessible in a programming environment can be interfaced with powerful external analysis tools and extensions to enhance the functionality of the core program, and by incorporating a flexible object based structure, the environments make building and analysing computational setups intuitive. In this work, we present a classical atomistic force field with an interface written in Python language. The program is an extension for an existing object based atomistic simulation environment.

  19. PyCSP - Communicating Sequential Processes for Python

    DEFF Research Database (Denmark)

    Vinter, Brian; Bjørndalen, John Markus; Anshus, Otto Johan

    The Python programming language is effective for rapidly specifying programs and experimenting with them. It is increasingly being used in computational sciences, and in teaching computer science. CSP is effective for describing concurrency. It has become especially relevant with the emergence......CSP presently supports the core CSP abstractions. We introduce the PyCSP library, its implementation, a few performance benchmarks, and show example code using PyCSP. An early prototype of PyCSP has been used in this year's Extreme Multiprogramming Class at the CS department, university of Copenhagen...

  20. The definitive guide to Jython Python for the Java platform

    CERN Document Server

    Juneau, Josh; Ng, Victor; Soto, Leo; Wierzbicki, Frank

    2010-01-01

    Jython is an open source implementation of the high-level, dynamic, object-oriented scripting language Python seamlessly integrated with the Java platform. The predecessor to Jython, JPython, is certified as 100% Pure Java. Jython is freely available for both commercial and noncommercial use and is distributed with source code. Jython is complementary to Java. The Definitive Guide to Jython, written by the official Jython team leads, covers the latest Jython 2.5 (or 2.5.x) from the basics to the advanced features. This book begins with a brief introduction to the language and then journeys thr

  1. Python GST Implementation v. 0.9 beta

    Energy Technology Data Exchange (ETDEWEB)

    2015-12-18

    PyGSTi is an implementation of Gate Set Tomography in the python programming language. Gate Set Tomography (GST) is a theory and protocol for simultaneously estimating the state preparation, gate operations, and measurement effects of a physical system of one or many quantum bits (qubits). These estimates are based entirely on the statistics of experimental measurements, and their interpretation and analysis can provide a detailed understanding of the types of errors/imperfections in the physical system. In this way, GST provides not only a means of certifying the "goodness" of qubits but also a means of debugging (i.e. improving) them.

  2. Multi-Agent Programming Contest 2011 - The Python-DTU Team

    DEFF Research Database (Denmark)

    Villadsen, Jørgen; Ettienne, Mikko Berggren; Vester, Steen

    We provide a brief description of the Python-DTU system, including the overall design, the tools and the algorithms that we plan to use in the agent contest.......We provide a brief description of the Python-DTU system, including the overall design, the tools and the algorithms that we plan to use in the agent contest....

  3. Multi-Agent Programming Contest 2012 - The Python-DTU Team

    DEFF Research Database (Denmark)

    Villadsen, Jørgen; Jensen, Andreas Schmidt; Ettienne, Mikko Berggren

    We provide a brief description of the Python-DTU system, including the overall design, the tools and the algorithms that we plan to use in the agent contest.......We provide a brief description of the Python-DTU system, including the overall design, the tools and the algorithms that we plan to use in the agent contest....

  4. Towards Python-based Domain-specific Languages for Self-reconfigurable Modular Robotics Research

    DEFF Research Database (Denmark)

    Moghadam, Mikael; Christensen, David Johan; Brandt, David

    2011-01-01

    for ATRON II which utilizes Linux and Python to significantly improve software abstraction and portability while providing some basic features which could prove useful when using Python, either stand-alone or via a DSL, on a selfreconfigurable robot system. These features include transparent socket...

  5. Towards Python-based Domain-specific Languages for Self-reconfigurable Modular Robotics Research

    DEFF Research Database (Denmark)

    Moghadam, Mikael; Johan Christensen, David; Brandt, David

    2013-01-01

    for ATRON II which utilizes Linux and Python to significantly improve software abstraction and portability while providing some basic features which could prove useful when using Python, either stand-alone or via a DSL, on a self-reconfigurable robot system. These features include transparent socket...

  6. Towards Python-based Domain-specific Languages for Self-reconfigurable Modular Robotics Research

    DEFF Research Database (Denmark)

    Moghadam, Mikael; Johan Christensen, David; Brandt, David

    2013-01-01

    for ATRON II which utilizes Linux and Python to significantly improve software abstraction and portability while providing some basic features which could prove useful when using Python, either stand-alone or via a DSL, on a self-reconfigurable robot system. These features include transparent socket...

  7. An introduction to statistics with Python with applications in the life sciences

    CERN Document Server

    Haslwanter, Thomas

    2016-01-01

    This textbook provides an introduction to the free software Python and its use for statistical data analysis. It covers common statistical tests for continuous, discrete and categorical data, as well as linear regression analysis and topics from survival analysis and Bayesian statistics. Working code and data for Python solutions for each test, together with easy-to-follow Python examples, can be reproduced by the reader and reinforce their immediate understanding of the topic. With recent advances in the Python ecosystem, Python has become a popular language for scientific computing, offering a powerful environment for statistical data analysis and an interesting alternative to R. The book is intended for master and PhD students, mainly from the life and medical sciences, with a basic knowledge of statistics. As it also provides some statistics background, the book can be used by anyone who wants to perform a statistical data analysis. .

  8. Fatty acids identified in the Burmese python promote beneficial cardiac growth.

    Science.gov (United States)

    Riquelme, Cecilia A; Magida, Jason A; Harrison, Brooke C; Wall, Christopher E; Marr, Thomas G; Secor, Stephen M; Leinwand, Leslie A

    2011-10-28

    Burmese pythons display a marked increase in heart mass after a large meal. We investigated the molecular mechanisms of this physiological heart growth with the goal of applying this knowledge to the mammalian heart. We found that heart growth in pythons is characterized by myocyte hypertrophy in the absence of cell proliferation and by activation of physiological signal transduction pathways. Despite high levels of circulating lipids, the postprandial python heart does not accumulate triglycerides or fatty acids. Instead, there is robust activation of pathways of fatty acid transport and oxidation combined with increased expression and activity of superoxide dismutase, a cardioprotective enzyme. We also identified a combination of fatty acids in python plasma that promotes physiological heart growth when injected into either pythons or mice.

  9. Conservative constraints on early cosmology with MONTE PYTHON

    Science.gov (United States)

    Audren, Benjamin; Lesgourgues, Julien; Benabed, Karim; Prunet, Simon

    2013-02-01

    Models for the latest stages of the cosmological evolution rely on a less solid theoretical and observational ground than the description of earlier stages like BBN and recombination. As suggested in a previous work by Vonlanthen et al., it is possible to tweak the analysis of CMB data in such way to avoid making assumptions on the late evolution, and obtain robust constraints on ''early cosmology parameters''. We extend this method in order to marginalise the results over CMB lensing contamination, and present updated results based on recent CMB data. Our constraints on the minimal early cosmology model are weaker than in a standard ΛCDM analysis, but do not conflict with this model. Besides, we obtain conservative bounds on the effective neutrino number and neutrino mass, showing no hints for extra relativistic degrees of freedom, and proving in a robust way that neutrinos experienced their non-relativistic transition after the time of photon decoupling. This analysis is also an occasion to describe the main features of the new parameter inference code MONTE PYTHON, that we release together with this paper. MONTE PYTHON is a user-friendly alternative to other public codes like COSMOMC, interfaced with the Boltzmann code CLASS.

  10. SCoT: A Python Toolbox for EEG Source Connectivity

    Directory of Open Access Journals (Sweden)

    Martin eBillinger

    2014-03-01

    Full Text Available Analysis of brain connectivity has become an important research tool in neuroscience. Connectivity can be estimated between cortical sources reconstructed from the electroencephalogram (EEG. Such analysis often relies on trial averaging to obtain reliable results. However, some applications such as brain-computer interfaces (BCIs require single-trial estimation methods.In this paper, we present SCoT – a source connectivity toolbox for Python. This toolbox implements routines for blind source decomposition and connectivity estimation with theMVARICA approach. Additionally, a novel extension called CSPVARICA is available for labeled data. SCoT estimates connectivity from various spectral measures relying on vector autoregressive (VAR models. Optionally, these VAR models can be regularized to facilitate ill posed applications such as single-trial fitting.We demonstrate basic usage of SCoT on motor imagery (MI data. Furthermore, we show simulation results of utilizing SCoT for feature extraction in a BCI application. These results indicate that CSPVARICA and correct regularization can significantly improve MI classification. While SCoT was mainly designed for application in BCIs, it contains useful tools for other areas of neuroscience. SCoT is a software package that (1 brings combined source decomposition and connectivtiy estimation to the open Python platform, and (2 offers tools for single-trial connectivity estimation. The source code is released under the MIT license and is available online at github.com/SCoT-dev/SCoT.

  11. Pythran: enabling static optimization of scientific Python programs

    Science.gov (United States)

    Guelton, Serge; Brunet, Pierrick; Amini, Mehdi; Merlini, Adrien; Corbillon, Xavier; Raynaud, Alan

    2015-01-01

    Pythran is an open source static compiler that turns modules written in a subset of Python language into native ones. Assuming that scientific modules do not rely much on the dynamic features of the language, it trades them for powerful, possibly inter-procedural, optimizations. These optimizations include detection of pure functions, temporary allocation removal, constant folding, Numpy ufunc fusion and parallelization, explicit thread-level parallelism through OpenMP annotations, false variable polymorphism pruning, and automatic vector instruction generation such as AVX or SSE. In addition to these compilation steps, Pythran provides a C++ runtime library that leverages the C++ STL to provide generic containers, and the Numeric Template Toolbox for Numpy support. It takes advantage of modern C++11 features such as variadic templates, type inference, move semantics and perfect forwarding, as well as classical idioms such as expression templates. Unlike the Cython approach, Pythran input code remains compatible with the Python interpreter. Output code is generally as efficient as the annotated Cython equivalent, if not more, but without the backward compatibility loss.

  12. Hardware-accelerated interactive data visualization for neuroscience in Python.

    Science.gov (United States)

    Rossant, Cyrille; Harris, Kenneth D

    2013-01-01

    Large datasets are becoming more and more common in science, particularly in neuroscience where experimental techniques are rapidly evolving. Obtaining interpretable results from raw data can sometimes be done automatically; however, there are numerous situations where there is a need, at all processing stages, to visualize the data in an interactive way. This enables the scientist to gain intuition, discover unexpected patterns, and find guidance about subsequent analysis steps. Existing visualization tools mostly focus on static publication-quality figures and do not support interactive visualization of large datasets. While working on Python software for visualization of neurophysiological data, we developed techniques to leverage the computational power of modern graphics cards for high-performance interactive data visualization. We were able to achieve very high performance despite the interpreted and dynamic nature of Python, by using state-of-the-art, fast libraries such as NumPy, PyOpenGL, and PyTables. We present applications of these methods to visualization of neurophysiological data. We believe our tools will be useful in a broad range of domains, in neuroscience and beyond, where there is an increasing need for scalable and fast interactive visualization.

  13. SClib, a hack for straightforward embedded C functions in Python

    CERN Document Server

    Fuentes, Esteban

    2014-01-01

    We present SClib, a simple hack that allows easy and straightforward evaluation of C functions within Python code, boosting flexibility for better trade-off between computation power and feature availability, such as visualization and existing computation routines in SciPy. We also present two cases were SClib has been used. In the first set of applications we use SClib to write a port to Python of a Schr\\"odinger equation solver that has been extensively used the literature, the resulting script presents a speed-up of about 150x with respect to the original one. A review of the situations where the speeded-up script has been used is presented. We also describe the solution to the related problem of solving a set of coupled Schr\\"odinger-like equations where SClib is used to implement the speed-critical parts of the code. We argue that when using SClib within IPython we can use NumPy and Matplotlib for the manipulation and visualization of the solutions in an interactive environment with no performance compro...

  14. Hardware-accelerated interactive data visualization for neuroscience in Python

    Directory of Open Access Journals (Sweden)

    Cyrille eRossant

    2013-12-01

    Full Text Available Large datasets are becoming more and more common in science, particularly in neuroscience where experimental techniques are rapidly evolving. Obtaining interpretable results from raw data can sometimes be done automatically; however, there are numerous situations where there is a need, at all processing stages, to visualize the data in an interactive way. This enables the scientist to gain intuition, discover unexpected patterns, and find guidance about subsequent analysis steps. Existing visualization tools mostly focus on static publication-quality figures and do not support interactive visualization of large datasets.While working on Python software for visualization of neurophysiological data, we developed techniques to leverage the computational power of modern graphics cards for high-performance interactive data visualization. We were able to achieve very high performance despite the interpreted and dynamic nature of Python, by using state-of-the-art, fast libraries such as NumPy, PyOpenGL and PyTables. We present applications of these methods to visualization of neurophysiological data. We believe our tools will be useful in a broad range of domains, in neuroscience and beyond, where there is an increasing need for scalable and fast interactive visualization.

  15. Programming biological models in Python using PySB.

    Science.gov (United States)

    Lopez, Carlos F; Muhlich, Jeremy L; Bachman, John A; Sorger, Peter K

    2013-01-01

    Mathematical equations are fundamental to modeling biological networks, but as networks get large and revisions frequent, it becomes difficult to manage equations directly or to combine previously developed models. Multiple simultaneous efforts to create graphical standards, rule-based languages, and integrated software workbenches aim to simplify biological modeling but none fully meets the need for transparent, extensible, and reusable models. In this paper we describe PySB, an approach in which models are not only created using programs, they are programs. PySB draws on programmatic modeling concepts from little b and ProMot, the rule-based languages BioNetGen and Kappa and the growing library of Python numerical tools. Central to PySB is a library of macros encoding familiar biochemical actions such as binding, catalysis, and polymerization, making it possible to use a high-level, action-oriented vocabulary to construct detailed models. As Python programs, PySB models leverage tools and practices from the open-source software community, substantially advancing our ability to distribute and manage the work of testing biochemical hypotheses. We illustrate these ideas using new and previously published models of apoptosis.

  16. precession: Dynamics of spinning black-hole binaries with python

    Science.gov (United States)

    Gerosa, Davide; Kesden, Michael

    2016-06-01

    We present the numerical code precession, a new open-source python module to study the dynamics of precessing black-hole binaries in the post-Newtonian regime. The code provides a comprehensive toolbox to (i) study the evolution of the black-hole spins along their precession cycles, (ii) perform gravitational-wave-driven binary inspirals using both orbit-averaged and precession-averaged integrations, and (iii) predict the properties of the merger remnant through fitting formulas obtained from numerical-relativity simulations. precession is a ready-to-use tool to add the black-hole spin dynamics to larger-scale numerical studies such as gravitational-wave parameter estimation codes, population synthesis models to predict gravitational-wave event rates, galaxy merger trees and cosmological simulations of structure formation. precession provides fast and reliable integration methods to propagate statistical samples of black-hole binaries from/to large separations where they form to/from small separations where they become detectable, thus linking gravitational-wave observations of spinning black-hole binaries to their astrophysical formation history. The code is also a useful tool to compute initial parameters for numerical-relativity simulations targeting specific precessing systems. precession can be installed from the python Package Index, and it is freely distributed under version control on github, where further documentation is provided.

  17. PyFACT: Python and FITS analysis for Cherenkov telescopes

    Science.gov (United States)

    Raue, Martin; Deil, Christoph

    2012-12-01

    Ground-based very-high energy (VHE; E>100 GeV) gamma-ray astronomy is growing from being conducted by small teams in closed collaborations into a full-fledged branch of astronomy with open observatories. This is best illustrated by the number of known sources: it increased by one order of magnitude in the past ten years, from 10 in the year 2000 to more than 100 in 2010. It is expected that this trend will continue with the next-generation instrument Cherenkov Telescope Array (CTA). This transformation has a profound impact on the data format and analysis of Imaging Atmospheric Cherenkov Telescopes (IACTs). Up to now, IACT data analysis was an internal task performed by specialists with no public access to the data or software. In the future, a large community of VHE astronomers from different scientific topics should be enabled to work with the data. Ease of use, compatibility, and integration with existing astronomy standards and tools will be key. In this contribution, a collection of Python tools for the analysis of data in FITS format (PyFACT; Python and FITS Analysis for Cherenkov Telescopes) is presented, which connects with existing tools like xspec, sherpa, and ds9. The package is available as open source (https://github.com/mraue/pyfact, comments and contributions welcome). Advantages of the chosen ansatz are discussed and implications for future observatories and data archival are presented.

  18. The Monty Python Method for Generating Gamma Variables

    Directory of Open Access Journals (Sweden)

    George Marsaglia

    1999-01-01

    Full Text Available The Monty Python Method for generating random variables takes a decreasing density, cuts it into three pieces, then, using area-preserving transformations, folds it into a rectangle of area 1. A random point (x,y from that rectangle is used to provide a variate from the given density, most of the time as itself or a linear function of x . The decreasing density is usually the right half of a symmetric density. The Monty Python method has provided short and fast generators for normal, t and von Mises densities, requiring, on the average, from 1.5 to 1.8 uniform variables. In this article, we apply the method to non-symmetric densities, particularly the important gamma densities. We lose some of the speed and simplicity of the symmetric densities, but still get a method for γα variates that is simple and fast enough to provide beta variates in the form γa/(γa+γb. We use an average of less than 1.7 uniform variates to produce a gamma variate whenever α ≥ 1 . Implementation is simpler and from three to five times as fast as a recent method reputed to be the best for changing α's.

  19. Data science and complex networks real case studies with Python

    CERN Document Server

    Caldarelli, Guido

    2016-01-01

    This book provides a comprehensive yet short description of the basic concepts of complex network theory and the code to implement this theory. Differently from other books, we present these concepts starting from real cases of study. The application topics span from food webs, to the Internet, the World Wide Web, and social networks, passing through the international trade web and financial time series. The final part is devoted to definition and implementation of the most important network models. We provide information on the structure of the data and on the quality of available datasets. Furthermore, we provide a series of codes to implement instantly what is described theoretically in the book. People knowing the basis of network theory could learn the art of coding in Python by checking our codes and using the online material. In particular, the interactive Python notebook format is used so that the reader can immediately experiment by themselves with the codes present in the manuscript. To this purpose...

  20. A Distributed Python HPC Framework: ODIN, PyTrilinos, & Seamless

    Energy Technology Data Exchange (ETDEWEB)

    Grant, Robert [Enthought, Inc., Austin, TX (United States)

    2015-11-23

    Under this grant, three significant software packages were developed or improved, all with the goal of improving the ease-of-use of HPC libraries. The first component is a Python package, named DistArray (originally named Odin), that provides a high-level interface to distributed array computing. This interface is based on the popular and widely used NumPy package and is integrated with the IPython project for enhanced interactive parallel distributed computing. The second Python package is the Distributed Array Protocol (DAP) that enables separate distributed array libraries to share arrays efficiently without copying or sending messages. If a distributed array library supports the DAP, it is then automatically able to communicate with any other library that also supports the protocol. This protocol allows DistArray to communicate with the Trilinos library via PyTrilinos, which was also enhanced during this project. A third package, PyTrilinos, was extended to support distributed structured arrays (in addition to the unstructured arrays of its original design), allow more flexible distributed arrays (i.e., the restriction to double precision data was lifted), and implement the DAP. DAP support includes both exporting the protocol so that external packages can use distributed Trilinos data structures, and importing the protocol so that PyTrilinos can work with distributed data from external packages.

  1. Evaluation of the histologic reactions to commonly used suture materials in the skin and musculature of ball pythons (Python regius).

    Science.gov (United States)

    McFadden, Michael S; Bennett, R Avery; Kinsel, Michael J; Mitchell, Mark A

    2011-10-01

    To evaluate histologic reactions to 8 suture materials and cyanoacrylate tissue adhesive (CTA) in the musculature and skin of ball pythons. 30 hatchling ball pythons. In each snake, ten 1-cm skin incisions were made (day 0). At 8 sites, a suture of 1 of 8 materials was placed in the epaxial musculature, and the incision was closed with the same material. One incision was closed by use of CTA. No suture material was placed in the tenth incision, which was allowed to heal by second intention (negative control). Snakes (n = 5/group) were euthanized for harvest of treatment-site tissues at days 3, 7, 14, 30, 60, and 90. Skin and muscle sections were examined microscopically and assigned a subjective score (0 to 4) for each of the following: overall severity of inflammation, fibrosis, number of macrophages, number of granulocytes, number of perivascular lymphocytes, and degree of suture fragmentation. Subjective score analysis revealed that CTA did not cause a significant inflammatory response, compared with the negative control. All suture materials caused significantly more inflammation over all time points; for all suture materials, inflammatory response scores were significantly higher than values for the negative control 90 days after implantation. No sutures were completely absorbed by the end of the study period, and several sutures appeared to be in the process of extrusion. In snakes, CTA can be used to close small superficial incisions or lacerations with minimal inflammatory response, and sutures may undergo extrusion from tissues prior to complete absorption.

  2. Python 解析XML文件的软件实现

    Institute of Scientific and Technical Information of China (English)

    宋汉宏

    2015-01-01

    在民用航空电子产品的测试过程中,需要用 Python 对 XML 文件的数据进行解析。本文首先介绍了 Python 语言特点,然后给出Python解析XML文件的软件实现,最后总结了 XML 文件以及 Python语言在测试领域中的应用越来越多,使得用 Python 解析 XML 文件显得越来越重要。

  3. PYTRANSIT: fast and easy exoplanet transit modelling in PYTHON

    Science.gov (United States)

    Parviainen, Hannu

    2015-07-01

    We present a fast and user friendly exoplanet transit light-curve modelling package PYTRANSIT, implementing optimized versions of the Giménez and Mandel & Agol transit models. The package offers an object-oriented PYTHON interface to access the two models implemented natively in FORTRAN with OpenMP parallelization. A partial OpenCL version of the quadratic Mandel-Agol model is also included for GPU-accelerated computations. The aim of PYTRANSIT is to facilitate the analysis of photometric time series of exoplanet transits consisting of hundreds of thousands of data points, and of multipassband transit light curves from spectrophotometric observations, as a part of a researcher's programming toolkit for building complex, problem-specific analyses.

  4. One-dimensional statistical parametric mapping in Python.

    Science.gov (United States)

    Pataky, Todd C

    2012-01-01

    Statistical parametric mapping (SPM) is a topological methodology for detecting field changes in smooth n-dimensional continua. Many classes of biomechanical data are smooth and contained within discrete bounds and as such are well suited to SPM analyses. The current paper accompanies release of 'SPM1D', a free and open-source Python package for conducting SPM analyses on a set of registered 1D curves. Three example applications are presented: (i) kinematics, (ii) ground reaction forces and (iii) contact pressure distribution in probabilistic finite element modelling. In addition to offering a high-level interface to a variety of common statistical tests like t tests, regression and ANOVA, SPM1D also emphasises fundamental concepts of SPM theory through stand-alone example scripts. Source code and documentation are available at: www.tpataky.net/spm1d/.

  5. PyORBIT: A Python Shell For ORBIT

    Energy Technology Data Exchange (ETDEWEB)

    Jean-Francois Ostiguy; Jeffrey Holmes

    2003-07-01

    ORBIT is code developed at SNS to simulate beam dynamics in accumulation rings and synchrotrons. The code is structured as a collection of external C++ modules for SuperCode, a high level interpreter shell developed at LLNL in the early 1990s. SuperCode is no longer actively supported and there has for some time been interest in replacing it by a modern scripting language, while preserving the feel of the original ORBIT program. In this paper, we describe a new version of ORBIT where the role of SuperCode is assumed by Python, a free, well-documented and widely supported object-oriented scripting language. We also compare PyORBIT to ORBIT from the standpoint of features, performance and future expandability.

  6. A cross-validation package driving Netica with python

    Science.gov (United States)

    Fienen, Michael N.; Plant, Nathaniel G.

    2014-01-01

    Bayesian networks (BNs) are powerful tools for probabilistically simulating natural systems and emulating process models. Cross validation is a technique to avoid overfitting resulting from overly complex BNs. Overfitting reduces predictive skill. Cross-validation for BNs is known but rarely implemented due partly to a lack of software tools designed to work with available BN packages. CVNetica is open-source, written in Python, and extends the Netica software package to perform cross-validation and read, rebuild, and learn BNs from data. Insights gained from cross-validation and implications on prediction versus description are illustrated with: a data-driven oceanographic application; and a model-emulation application. These examples show that overfitting occurs when BNs become more complex than allowed by supporting data and overfitting incurs computational costs as well as causing a reduction in prediction skill. CVNetica evaluates overfitting using several complexity metrics (we used level of discretization) and its impact on performance metrics (we used skill).

  7. Intraspecific scaling of arterial blood pressure in the Burmese python.

    Science.gov (United States)

    Enok, Sanne; Slay, Christopher; Abe, Augusto S; Hicks, James W; Wang, Tobias

    2014-07-01

    Interspecific allometric analyses indicate that mean arterial blood pressure (MAP) increases with body mass of snakes and mammals. In snakes, MAP increases in proportion to the increased distance between the heart and the head, when the heart-head vertical distance is expressed as ρgh (where ρ is the density of blood, G: is acceleration due to gravity and h is the vertical distance above the heart), and the rise in MAP is associated with a larger heart to normalize wall stress in the ventricular wall. Based on measurements of MAP in Burmese pythons ranging from 0.9 to 3.7 m in length (0.20-27 kg), we demonstrate that although MAP increases with body mass, the rise in MAP is merely half of that predicted by heart-head distance. Scaling relationships within individual species, therefore, may not be accurately predicted by existing interspecific analyses.

  8. Multiple papillomas in a diamond python, Morelia spilota spilota.

    Science.gov (United States)

    Gull, Jessica M; Lange, Christian E; Favrot, Claude; Dorrestein, Gerry M; Hatt, Jean-Michel

    2012-12-01

    A 4-yr-old male diamond python (Morelia spilota spilota) was evaluated for multiple black papillated exophytic skin proliferations and signs of pneumonia. The histopathologic structure of the skin biopsy specimens led to the diagnosis of a benign papilloma-like neoplasia. In this case, papillomavirus DNA could be amplified from a biopsy sample with a broad range polymerase chain reaction. Nested pan-herpes polymerase chain reaction was negative, and herpesvirus inclusion bodies were not found. Because of the histologically benign nature of the papilloma, the skin proliferations were left untreated. Ten mo after the first presentation, the skin lesions had regressed almost completely; 34 mo later, only scars from the biopsies were left.

  9. LazySorted: A Lazily, Partially Sorted Python List

    Directory of Open Access Journals (Sweden)

    Naftali Harris

    2015-06-01

    Full Text Available LazySorted is a Python C extension implementing a partially and lazily sorted list data structure. It solves a common problem faced by programmers, in which they need just part of a sorted list, like its middle element (the median, but sort the entire list to get it. LazySorted presents them with the abstraction that they are working with a fully sorted list, while actually only sorting the list partially with quicksort partitions to return the requested sub-elements. This enables programmers to use naive "sort first" algorithms but nonetheless attain linear run-times when possible. LazySorted may serve as a drop-in replacement for the built-in sorted function in most cases, and can sometimes achieve run-times more than 7 times faster.

  10. Oral flora of Python regius kept as pets.

    Science.gov (United States)

    Dipineto, L; Russo, T P; Calabria, M; De Rosa, L; Capasso, M; Menna, L F; Borrelli, L; Fioretti, A

    2014-05-01

    This study was aimed at evaluating the oral bacterial flora of 60 Python regius kept as pets by culture and biochemical methods. All isolates were also submitted to antimicrobial susceptibility testing using the disc diffusion method. The oral cavity of snakes sampled harboured a wide range of Gram-negative bacteria mainly constituted by Pseudomonas spp., Morganella morganii, Acinetobacter calcoaceticus, Aeromonas hydrophila, but also by Salmonella spp. Staphylococcus spp. was the commonest Gram-positive isolates, and various anaerobic Clostridium species were also found. The most effective antimicrobial agents were enrofloxacin and ciprofloxacin, followed by doxycycline and gentamicin. The oral cavity of snakes sampled harboured a wide range of bacteria. Our results suggest that people who come in contact with snakes could be at risk of infection and should follow proper hygiene practices when handling these reptiles. © 2014 The Society for Applied Microbiology.

  11. pyBSM: A Python package for modeling imaging systems

    Science.gov (United States)

    LeMaster, Daniel A.; Eismann, Michael T.

    2017-05-01

    There are components that are common to all electro-optical and infrared imaging system performance models. The purpose of the Python Based Sensor Model (pyBSM) is to provide open source access to these functions for other researchers to build upon. Specifically, pyBSM implements much of the capability found in the ERIM Image Based Sensor Model (IBSM) V2.0 along with some improvements. The paper also includes two use-case examples. First, performance of an airborne imaging system is modeled using the General Image Quality Equation (GIQE). The results are then decomposed into factors affecting noise and resolution. Second, pyBSM is paired with openCV to evaluate performance of an algorithm used to detect objects in an image.

  12. pycalphad: CALPHAD-based Computational Thermodynamics in Python

    Directory of Open Access Journals (Sweden)

    Richard Otis

    2017-01-01

    Full Text Available The pycalphad software package is a free and open-source Python library for designing thermodynamic models, calculating phase diagrams and investigating phase equilibria using the CALPHAD method. It provides routines for reading thermodynamic databases and solving the multi-component, multi-phase Gibbs energy minimization problem. The pycalphad software project advances the state of thermodynamic modeling by providing a flexible yet powerful interface for manipulating CALPHAD data and models. The key feature of the software is that the thermodynamic models of individual phases and their associated databases can be programmatically manipulated and overridden at run-time without modifying any internal solver or calculation code. Because the models are internally decoupled from the equilibrium solver and the models themselves are represented symbolically, pycalphad is an ideal tool for CALPHAD database development and model prototyping.

  13. PyRAT (python radiography analysis tool): overview

    Energy Technology Data Exchange (ETDEWEB)

    Armstrong, Jerawan C [Los Alamos National Laboratory; Temple, Brian A [Los Alamos National Laboratory; Buescher, Kevin L [Los Alamos National Laboratory

    2011-01-14

    PyRAT was developed as a quantitative tool for robustly characterizing objects from radiographs to solve problems such as the hybrid nonlinear inverse problem. The optimization software library that was used is the nonsmooth optimization by MADS algorithm (NOMAD). Some of PyRAT's features are: (1) hybrid nonlinear inverse problem with calculated x-ray spectrum and detector response; (2) optimization based inversion approach with goal of identifying unknown object configurations - MVO problem; (3) using functionalities of Python libraries for radiographic image processing and analysis; (4) using the Tikhonov regularization method of linear inverse problem to recover partial information of object configurations; (5) using a priori knowledge of problem solutions to define feasible region and discrete neighbor for the MVO problem - initial data analysis + material library {yields} a priori knowledge; and (6) using the NOMAD (C++ version) software in the object.

  14. OPUS: A CORBA Pipeline for Java, Python, and Perl Applications

    Science.gov (United States)

    Miller, W. W., III; Sontag, C.; Rose, J. F.

    With the introduction of the OPUS CORBA mode, a limited subset of OPUS Applications Programming Interface (OAPI) functionality was cast into CORBA IDL so that both OPUS applications and the Java-based OPUS pipeline managers were able to use the same CORBA infrastructure to access information on blackboards. Exposing even more of the OAPI through CORBA interfaces benefits OPUS applications in similar ways. Those applications not developed in C++ could use CORBA to interact with OPUS facilities directly, providing that a CORBA binding exists for the programming language of choice. Other applications might benefit from running `outside' of the traditional file system-based OPUS environment like the Java managers and, in particular, on platforms not supported by OPUS. The enhancements to OPUS discussed in this paper have been exercised in both Java and Python, and the code for these examples are available on the web.

  15. DNest4: Diffusive Nested Sampling in C++ and Python

    CERN Document Server

    Brewer, Brendon J

    2016-01-01

    In probabilistic (Bayesian) inferences, we typically want to compute properties of the posterior distribution, describing knowledge of unknown quantities in the context of a particular dataset and the assumed prior information. The marginal likelihood, also known as the "evidence", is a key quantity in Bayesian model selection. The Diffusive Nested Sampling algorithm, a variant of Nested Sampling, is a powerful tool for generating posterior samples and estimating marginal likelihoods. It is effective at solving complex problems including many where the posterior distribution is multimodal or has strong dependencies between variables. DNest4 is an open source (MIT licensed), multi-threaded implementation of this algorithm in C++11, along with associated utilities including: i) RJObject, a class template for finite mixture models, (ii) A Python package allowing basic use without C++ coding, and iii) Experimental support for models implemented in Julia. In this paper we demonstrate DNest4 usage through examples ...

  16. Using Python to Construct a Scalable Parallel Nonlinear Wave Solver

    KAUST Repository

    Mandli, Kyle

    2011-01-01

    Computational scientists seek to provide efficient, easy-to-use tools and frameworks that enable application scientists within a specific discipline to build and/or apply numerical models with up-to-date computing technologies that can be executed on all available computing systems. Although many tools could be useful for groups beyond a specific application, it is often difficult and time consuming to combine existing software, or to adapt it for a more general purpose. Python enables a high-level approach where a general framework can be supplemented with tools written for different fields and in different languages. This is particularly important when a large number of tools are necessary, as is the case for high performance scientific codes. This motivated our development of PetClaw, a scalable distributed-memory solver for time-dependent nonlinear wave propagation, as a case-study for how Python can be used as a highlevel framework leveraging a multitude of codes, efficient both in the reuse of code and programmer productivity. We present scaling results for computations on up to four racks of Shaheen, an IBM BlueGene/P supercomputer at King Abdullah University of Science and Technology. One particularly important issue that PetClaw has faced is the overhead associated with dynamic loading leading to catastrophic scaling. We use the walla library to solve the issue which does so by supplanting high-cost filesystem calls with MPI operations at a low enough level that developers may avoid any changes to their codes.

  17. SunPy 0.8 - Python for Solar Physics

    Science.gov (United States)

    Inglis, Andrew; Bobra, Monica; Christe, Steven; Hewett, Russell; Ireland, Jack; Mumford, Stuart; Martinez Oliveros, Juan Carlos; Perez-Suarez, David; Reardon, Kevin P.; Savage, Sabrina; Shih, Albert Y.; Ryan, Daniel; Sipocz, Brigitta; Freij, Nabil

    2017-08-01

    SunPy is a community-developed open-source software library for solar physics. It is written in Python, a free, cross-platform, general-purpose, high-level programming language which is being increasingly adopted throughout the scientific community. Python is one of the top ten most often used programming languages, as such it provides a wide array of software packages, such as numerical computation (NumPy, SciPy), machine learning (scikit-learn), signal processing (scikit-image, statsmodels) to visualization and plotting (matplotlib, mayavi). SunPy aims to provide the software for obtaining and analyzing solar and heliospheric data. This poster introduces a new major release of SunPy (0.8). This release includes two major new functionalities, as well as a number of bug fixes. It is based on 1120 contributions from 34 unique contributors. Fido is the new primary interface to download data. It provides a consistent and powerful search interface to all major data sources provides including VSO, JSOC, as well as individual data sources such as GOES XRS time series and and is fully pluggable to add new data sources, i.e. DKIST. In anticipation of Solar Orbiter and the Parker Solar Probe, SunPy now provides a powerful way of representing coordinates, allowing conversion between coordinate systems and viewpoints of different instruments, including preliminary reprojection capabilities. Other new features including new timeseries capabilities with better support for concatenation and metadata, updated documentation and example gallery. SunPy is distributed through pip and conda and all of its code is publicly available (sunpy.org).

  18. A Python Interface for the Dakota Iterative Systems Analysis Toolkit

    Science.gov (United States)

    Piper, M.; Hutton, E.; Syvitski, J. P.

    2016-12-01

    Uncertainty quantification is required to improve the accuracy, reliability, and accountability of Earth science models. Dakota is a software toolkit, developed at Sandia National Laboratories, that provides an interface between models and a library of analysis methods, including support for sensitivity analysis, uncertainty quantification, optimization, and calibration techniques. Dakota is a powerful tool, but its learning curve is steep: the user not only must understand the structure and syntax of the Dakota input file, but also must develop intermediate code, called an analysis driver, that allows Dakota to run a model. The CSDMS Dakota interface (CDI) is a Python package that wraps and extends Dakota's user interface. It simplifies the process of configuring and running a Dakota experiment. A user can program to the CDI, allowing a Dakota experiment to be scripted. The CDI creates Dakota input files and provides a generic analysis driver. Any model written in Python that exposes a Basic Model Interface (BMI), as well as any model componentized in the CSDMS modeling framework, automatically works with the CDI. The CDI has a plugin architecture, so models written in other languages, or those that don't expose a BMI, can be accessed by the CDI by programmatically extending a template; an example is provided in the CDI distribution. Currently, six Dakota analysis methods have been implemented for examples from the much larger Dakota library. To demonstrate the CDI, we performed an uncertainty quantification experiment with the HydroTrend hydrological water balance and transport model. In the experiment, we evaluated the response of long-term suspended sediment load at the river mouth (Qs) to uncertainty in two input parameters, annual mean temperature (T) and precipitation (P), over a series of 100-year runs, using the polynomial chaos method. Through Dakota, we calculated moments, local and global (Sobol') sensitivity indices, and probability density and

  19. Multi Scale Investigation of Surface Topography of Ball Python (Python Regius) Shed Skin in Comparison to Human skin

    CERN Document Server

    Abdel-Aal, H A; Mezghani, S; 10.1007/s11249-009-9547-y

    2010-01-01

    Constructing a surface that is an integral part of the function of tribosystems (deterministic surface) is an intriguing goal. Inspirations for such surfaces come from studying natural systems and deducing design rules. The major attraction is that natural systems, while functionally complex, are, in general, of optimized shape and performance. It is further believed that functional complexity of natural systems is what affords natural species to morph continuously to adapt with the operating environment. One bio-species that is of interest is the Ball Python. This is because such a species continuously slides against various surfaces, many of which are deemed tribologically hostile, without sustaining much damage. Much of the success of that species in adapting to its environment is attributed to surface design features. In that respect, studying these features and how do they contribute to the control of friction and wear is very attractive. This paper is a step in this direction. In this work we apply a mu...

  20. Pārskatu ģenerēšanas bibliotēka Python valodai

    OpenAIRE

    Paltovs, Deniss

    2012-01-01

    Kvalifikācijas darba pamatā ir pārskatu ģenerēšanas bibliotēka Python valodai - PythonReports, kura ļauj Python izstrādātajiem no datiem un šablona izveidot izdruku uz ekrāna vai printera. Gala produkts ir vizuālais redaktors, kurš ļauj ērti un uzskatāmi veidot un rediģēt PythonReports šablonus, izmantojot mūsdienu lietotāju saskarnes tehnoloģijas operētājsistēmās ar grafisku lietotāja saskarni. Kvalifikācijas darbs balstās uz iepriekšējo pieredzi, iegūto izmantojot līdzīgus rīkus citās sist...

  1. PyTrilinos: Recent Advances in the Python Interface to Trilinos

    Directory of Open Access Journals (Sweden)

    William F. Spotz

    2012-01-01

    Full Text Available PyTrilinos is a set of Python interfaces to compiled Trilinos packages. This collection supports serial and parallel dense linear algebra, serial and parallel sparse linear algebra, direct and iterative linear solution techniques, algebraic and multilevel preconditioners, nonlinear solvers and continuation algorithms, eigensolvers and partitioning algorithms. Also included are a variety of related utility functions and classes, including distributed I/O, coloring algorithms and matrix generation. PyTrilinos vector objects are compatible with the popular NumPy Python package. As a Python front end to compiled libraries, PyTrilinos takes advantage of the flexibility and ease of use of Python, and the efficiency of the underlying C++, C and Fortran numerical kernels. This paper covers recent, previously unpublished advances in the PyTrilinos package.

  2. Scipy Lecture Notes : One document to learn numerics, science, and data with Python

    OpenAIRE

    Varoquaux, Gaël; Gouillart, Emmanuelle; Vahtras, Olav; Haenel, Valentin; Rougier, Nicolas P.; Gommers, Ralf; Pedregosa, Fabian; Jędrzejewski-Szmek, Zbigniew; Virtanen, Pauli; Combelles, Christophe; Pinte, Didrik; Cimrman, Robert; Espaze, André; Chauve, Adrien; Burns, Christopher

    2015-01-01

    International audience; Tutorials on the scientific Python ecosystem: a quick introduction to central tools and techniques. The different chapters each correspond to a 1 to 2 hours course with increasing level of expertise, from beginner to expert.

  3. Developers@CERN Forum | Python at CERN | 30 – 31 May

    CERN Multimedia

    2016-01-01

    The Developers@CERN Forum is an event by developers for developers aimed at promoting knowledge- and experience-sharing (see here). The second forum will take place in the IT auditorium in the afternoons of 30 and 31 May.   With the topic “Python at CERN”, it will consist of a series of talks regarding the Python language, frameworks and tools used at CERN. Are you a Python guru or would you like to learn? Come and share your Python experiences with other developers! Submissions for presentations and workshops are open until 9 May at http://cern.ch/dev-forum. If you would like to stay informed about this or future events, please subscribe to the announcement e-group (just a few e-mails per year) here. 

  4. Planetary Geologic Mapping Python Toolbox: A Suite of Tools to Support Mapping Workflows

    Science.gov (United States)

    Hunter, M. A.; Skinner, J. A.; Hare, T. M.; Fortezzo, C. M.

    2017-06-01

    The collective focus of the Planetary Geologic Mapping Python Toolbox is to provide researchers with additional means to migrate legacy GIS data, assess the quality of data and analysis results, and simplify common mapping tasks.

  5. Biopython: freely available Python tools for computational molecular biology and bioinformatics

    DEFF Research Database (Denmark)

    Cock, Peter J A; Antao, Tiago; Chang, Jeffrey T

    2009-01-01

    SUMMARY: The Biopython project is a mature open source international collaboration of volunteer developers, providing Python libraries for a wide range of bioinformatics problems. Biopython includes modules for reading and writing different sequence file formats and multiple sequence alignments...

  6. On the Performance of the Python Programming Language for Serial and Parallel Scientific Computations

    Directory of Open Access Journals (Sweden)

    Xing Cai

    2005-01-01

    Full Text Available This article addresses the performance of scientific applications that use the Python programming language. First, we investigate several techniques for improving the computational efficiency of serial Python codes. Then, we discuss the basic programming techniques in Python for parallelizing serial scientific applications. It is shown that an efficient implementation of the array-related operations is essential for achieving good parallel performance, as for the serial case. Once the array-related operations are efficiently implemented, probably using a mixed-language implementation, good serial and parallel performance become achievable. This is confirmed by a set of numerical experiments. Python is also shown to be well suited for writing high-level parallel programs.

  7. The Python ARM Radar Toolkit (Py-ART, a Library for Working with Weather Radar Data in the Python Programming Language

    Directory of Open Access Journals (Sweden)

    Jonathan J Helmus

    2016-07-01

    Full Text Available The Python ARM Radar Toolkit is a package for reading, visualizing, correcting and analysing data from weather radars. Development began to meet the needs of the Atmospheric Radiation Measurement Climate Research Facility and has since expanded to provide a general-purpose framework for working with data from weather radars in the Python programming language. The toolkit is built on top of libraries in the Scientific Python ecosystem including NumPy, SciPy, and matplotlib, and makes use of Cython for interfacing with existing radar libraries written in C and to speed up computationally demanding algorithms. The source code for the toolkit is available on GitHub and is distributed under a BSD license.

  8. Sharma's Python Sign: A New Tubal Sign in Female Genital Tuberculosis.

    Science.gov (United States)

    Sharma, Jai Bhagwan

    2016-01-01

    Female genital tuberculosis (FGTB) is an important cause of infertility in developing countries. Various type of TB salpingitis can be endosalpingitis, exosalpingitis, interstitial TB salpingitis, and salpingitis isthmica nodosa. The fallopian tubes are thickened enlarged and tortuous. Unilateral or bilateral hydrosalpinx or pyosalpinx may be formed. A new sign python sign is presented in which fallopian tube looks like a blue python on dye testing in FGTB.

  9. Sharma′s python sign: A New tubal sign in female genital tuberculosis

    Directory of Open Access Journals (Sweden)

    Jai Bhagwan Sharma

    2016-01-01

    Full Text Available Female genital tuberculosis (FGTB is an important cause of infertility in developing countries. Various type of TB salpingitis can be endosalpingitis, exosalpingitis, interstitial TB salpingitis, and salpingitis isthmica nodosa. The fallopian tubes are thickened enlarged and tortuous. Unilateral or bilateral hydrosalpinx or pyosalpinx may be formed. A new sign python sign is presented in which fallopian tube looks like a blue python on dye testing in FGTB.

  10. Obtaining and processing Daymet data using Python and ArcGIS

    Science.gov (United States)

    Bohms, Stefanie

    2013-01-01

    This set of scripts was developed to automate the process of downloading and mosaicking daily Daymet data to a user defined extent using ArcGIS and Python programming language. The three steps are downloading the needed Daymet tiles for the study area extent, converting the netcdf file to a tif raster format, and mosaicking those rasters to one file. The set of scripts is intended for all levels of experience with Python programming language and requires no scripting by the user.

  11. PyPanda: a Python package for gene regulatory network reconstruction

    OpenAIRE

    van IJzendoorn, David G. P.; Glass, Kimberly; Quackenbush, John; Kuijjer, Marieke L

    2016-01-01

    Summary: PANDA (Passing Attributes between Networks for Data Assimilation) is a gene regulatory network inference method that uses message-passing to integrate multiple sources of ‘omics data. PANDA was originally coded in C ++. In this application note we describe PyPanda, the Python version of PANDA. PyPanda runs considerably faster than the C ++ version and includes additional features for network analysis. Availability and implementation: The open source PyPanda Python package is freely a...

  12. Molecular identification of python species: development and validation of a novel assay for forensic investigations.

    Science.gov (United States)

    Ciavaglia, Sherryn A; Tobe, Shanan S; Donnellan, Stephen C; Henry, Julianne M; Linacre, Adrian M T

    2015-05-01

    Python snake species are often encountered in illegal activities and the question of species identity can be pertinent to such criminal investigations. Morphological identification of species of pythons can be confounded by many issues and molecular examination by DNA analysis can provide an alternative and objective means of identification. Our paper reports on the development and validation of a PCR primer pair that amplifies a segment of the mitochondrial cytochrome b gene that has been suggested previously as a good candidate locus for differentiating python species. We used this DNA region to perform species identification of pythons, even when the template DNA was of poor quality, as might be the case with forensic evidentiary items. Validation tests are presented to demonstrate the characteristics of the assay. Tests involved the cross-species amplification of this marker in non-target species, minimum amount of DNA template required, effects of degradation on product amplification and a blind trial to simulate a casework scenario that provided 100% correct identity. Our results demonstrate that this assay performs reliably and robustly on pythons and can be applied directly to forensic investigations where the presence of a species of python is in question.

  13. Python 3.0抢“鲜”体验——兼谈Python 3.0的历史、现状和未来

    Institute of Scientific and Technical Information of China (English)

    赖勇浩

    2007-01-01

    2007年8月31日,Python 3.0版本终于发布了第一个alpha版本。这是一个充满历史意义的日子,意味着之前经常彼人称为Python 3000的Python 3.0走进了现实。Python的设计者Guido van Rossum在加盟Google后宣称有一半的工作时间用以完成Python 3.0的开发,宽裕的自由时间让Guido实现众多新特性成为可能。回味一下Python 3.0的过去,了解它所经历的风风雨雨,在Python 3.0这第一个alpha版本发布之际具有独特意义。

  14. batman: BAsic Transit Model cAlculatioN in Python

    Science.gov (United States)

    Kreidberg, Laura

    2015-11-01

    I introduce batman, a Python package for modeling exoplanet transit light curves. The batman package supports calculation of light curves for any radially symmetric stellar limb darkening law, using a new integration algorithm for models that cannot be quickly calculated analytically. The code uses C extension modules to speed up model calculation and is parallelized with OpenMP. For a typical light curve with 100 data points in transit, batman can calculate one million quadratic limb-darkened models in 30 seconds with a single 1.7 GHz Intel Core i5 processor. The same calculation takes seven minutes using the four-parameter nonlinear limb darkening model (computed to 1 ppm accuracy). Maximum truncation error for integrated models is an input parameter that can be set as low as 0.001 ppm, ensuring that the community is prepared for the precise transit light curves we anticipate measuring with upcoming facilities. The batman package is open source and publicly available at https://github.com/lkreidberg/batman .

  15. SIMA: Python software for analysis of dynamic fluorescence imaging data

    Directory of Open Access Journals (Sweden)

    Patrick eKaifosh

    2014-09-01

    Full Text Available Fluorescence imaging is a powerful method for monitoring dynamic signals in the nervous system. However, analysis of dynamic fluorescence imaging data remains burdensome, in part due to the shortage of available software tools. To address this need, we have developed SIMA, an open source Python package that facilitates common analysis tasks related to fluorescence imaging. Functionality of this package includes correction of motion artifacts occurring during in vivo imaging with laser-scanning microscopy, segmentation of imaged fields into regions of interest (ROIs, and extraction of signals from the segmented ROIs. We have also developed a graphical user interface (GUI for manual editing of the automatically segmented ROIs and automated registration of ROIs across multiple imaging datasets. This software has been designed with flexibility in mind to allow for future extension with different analysis methods and potential integration with other packages. Software, documentation, and source code for the SIMA package and ROI Buddy GUI are freely available at http://www.losonczylab.org/sima/.

  16. MCPB.py: A Python Based Metal Center Parameter Builder.

    Science.gov (United States)

    Li, Pengfei; Merz, Kenneth M

    2016-04-25

    MCPB.py, a python based metal center parameter builder, has been developed to build force fields for the simulation of metal complexes employing the bonded model approach. It has an optimized code structure, with far fewer required steps than the previous developed MCPB program. It supports various AMBER force fields and more than 80 metal ions. A series of parametrization schemes to derive force constants and charge parameters are available within the program. We give two examples (one metalloprotein example and one organometallic compound example), indicating the program's ability to build reliable force fields for different metal ion containing complexes. The original version was released with AmberTools15. It is provided via the GNU General Public License v3.0 (GNU_GPL_v3) agreement and is free to download and distribute. MCPB.py provides a bridge between quantum mechanical calculations and molecular dynamics simulation software packages thereby enabling the modeling of metal ion centers. It offers an entry into simulating metal ions in a number of situations by providing an efficient way for researchers to handle the vagaries and difficulties associated with metal ion modeling.

  17. Screening_mgmt: a Python module for managing screening data.

    Science.gov (United States)

    Helfenstein, Andreas; Tammela, Päivi

    2015-02-01

    High-throughput screening is an established technique in drug discovery and, as such, has also found its way into academia. High-throughput screening generates a considerable amount of data, which is why specific software is used for its analysis and management. The commercially available software packages are often beyond the financial limits of small-scale academic laboratories and, furthermore, lack the flexibility to fulfill certain user-specific requirements. We have developed a Python module, screening_mgmt, which is a lightweight tool for flexible data retrieval, analysis, and storage for different screening assays in one central database. The module reads custom-made analysis scripts and plotting instructions, and it offers a graphical user interface to import, modify, and display the data in a uniform manner. During the test phase, we used this module for the management of 10,000 data points of various origins. It has provided a practical, user-friendly tool for sharing and exchanging information between researchers.

  18. SPOTting Model Parameters Using a Ready-Made Python Package.

    Science.gov (United States)

    Houska, Tobias; Kraft, Philipp; Chamorro-Chavez, Alejandro; Breuer, Lutz

    2015-01-01

    The choice for specific parameter estimation methods is often more dependent on its availability than its performance. We developed SPOTPY (Statistical Parameter Optimization Tool), an open source python package containing a comprehensive set of methods typically used to calibrate, analyze and optimize parameters for a wide range of ecological models. SPOTPY currently contains eight widely used algorithms, 11 objective functions, and can sample from eight parameter distributions. SPOTPY has a model-independent structure and can be run in parallel from the workstation to large computation clusters using the Message Passing Interface (MPI). We tested SPOTPY in five different case studies to parameterize the Rosenbrock, Griewank and Ackley functions, a one-dimensional physically based soil moisture routine, where we searched for parameters of the van Genuchten-Mualem function and a calibration of a biogeochemistry model with different objective functions. The case studies reveal that the implemented SPOTPY methods can be used for any model with just a minimal amount of code for maximal power of parameter optimization. They further show the benefit of having one package at hand that includes number of well performing parameter search methods, since not every case study can be solved sufficiently with every algorithm or every objective function.

  19. A python framework for environmental model uncertainty analysis

    Science.gov (United States)

    White, Jeremy; Fienen, Michael; Doherty, John E.

    2016-01-01

    We have developed pyEMU, a python framework for Environmental Modeling Uncertainty analyses, open-source tool that is non-intrusive, easy-to-use, computationally efficient, and scalable to highly-parameterized inverse problems. The framework implements several types of linear (first-order, second-moment (FOSM)) and non-linear uncertainty analyses. The FOSM-based analyses can also be completed prior to parameter estimation to help inform important modeling decisions, such as parameterization and objective function formulation. Complete workflows for several types of FOSM-based and non-linear analyses are documented in example notebooks implemented using Jupyter that are available in the online pyEMU repository. Example workflows include basic parameter and forecast analyses, data worth analyses, and error-variance analyses, as well as usage of parameter ensemble generation and management capabilities. These workflows document the necessary steps and provides insights into the results, with the goal of educating users not only in how to apply pyEMU, but also in the underlying theory of applied uncertainty quantification.

  20. photPARTY: Python automated square-aperture photometry

    Science.gov (United States)

    Symons, Teresa A.; Anthony-Twarog, Barbara J.

    2017-01-01

    As CCD’s have drastically increased the amount of information recorded per frame, so too have they increased the time and effort needed to sift through the data. For observations of a single star, information from millions of pixels needs to be distilled into one number: the magnitude. Various computer systems have been used to streamline this process over the years. The CCDPhot photometer, in use at the Kitt Peak 0.9-m telescope in the 1990’s, allowed for user settings and provided real time magnitudes during observation of single stars. It is this level of speed and convenience that inspired the development of the Python-based software analysis system photPARTY, which can quickly and efficiently produce magnitudes for a set of single-star or un-crowded field CCD frames. Seeking to remove the need for manual interaction after initial settings for a group of images, photPARTY automatically locates stars, subtracts the background, and performs square-aperture photometry. Rather than being a package of available functions, it is essentially a self-contained, one-click analysis system, with the capability to process several hundred frames in just a couple of minutes. Results of comparisons against present systems such as IRAF will be presented. The support of the National Science Foundation through grant AST-1211621 is gratefully acknowledged.

  1. SPOTting Model Parameters Using a Ready-Made Python Package.

    Directory of Open Access Journals (Sweden)

    Tobias Houska

    Full Text Available The choice for specific parameter estimation methods is often more dependent on its availability than its performance. We developed SPOTPY (Statistical Parameter Optimization Tool, an open source python package containing a comprehensive set of methods typically used to calibrate, analyze and optimize parameters for a wide range of ecological models. SPOTPY currently contains eight widely used algorithms, 11 objective functions, and can sample from eight parameter distributions. SPOTPY has a model-independent structure and can be run in parallel from the workstation to large computation clusters using the Message Passing Interface (MPI. We tested SPOTPY in five different case studies to parameterize the Rosenbrock, Griewank and Ackley functions, a one-dimensional physically based soil moisture routine, where we searched for parameters of the van Genuchten-Mualem function and a calibration of a biogeochemistry model with different objective functions. The case studies reveal that the implemented SPOTPY methods can be used for any model with just a minimal amount of code for maximal power of parameter optimization. They further show the benefit of having one package at hand that includes number of well performing parameter search methods, since not every case study can be solved sufficiently with every algorithm or every objective function.

  2. batman: BAsic Transit Model cAlculatioN in Python

    CERN Document Server

    Kreidberg, Laura

    2015-01-01

    I introduce batman, a Python package for modeling exoplanet transit light curves. The batman package supports calculation of light curves for any radially symmetric stellar limb darkening law, using a new integration algorithm for models that cannot be quickly calculated analytically. The code uses C extension modules to speed up model calculation and is parallelized with OpenMP. For a typical light curve with 100 data points in transit, batman can calculate one million quadratic limb-darkened models in 30 seconds with a single 1.7 GHz Intel Core i5 processor. The same calculation takes seven minutes using the four-parameter nonlinear limb darkening model (computed to 1 ppm accuracy). Maximum truncation error for integrated models is an input parameter that can be set as low as 0.001 ppm, ensuring that the community is prepared for the precise transit light curves we anticipate measuring with upcoming facilities. The batman package is open source and publicly available at https://github.com/lkreidberg/batman.

  3. Cluster-lensing: A Python Package for Galaxy Clusters & Miscentering

    CERN Document Server

    Ford, Jes

    2016-01-01

    We describe a new open source package for calculating properties of galaxy clusters, including NFW halo profiles with and without the effects of cluster miscentering. This pure-Python package, cluster-lensing, provides well-documented and easy-to-use classes and functions for calculating cluster scaling relations, including mass-richness and mass-concentration relations from the literature, as well as the surface mass density $\\Sigma(R)$ and differential surface mass density $\\Delta\\Sigma(R)$ profiles, probed by weak lensing magnification and shear. Galaxy cluster miscentering is especially a concern for stacked weak lensing shear studies of galaxy clusters, where offsets between the assumed and the true underlying matter distribution can lead to a significant bias in the mass estimates if not accounted for. This software has been developed and released in a public GitHub repository, and is licensed under the permissive MIT license. The cluster-lensing package is archived on Zenodo (Ford 2016). Full documenta...

  4. Gammapy - A Python package for {\\gamma}-ray astronomy

    CERN Document Server

    Donath, Axel; Arribas, Manuel P; King, Johannes; Owen, Ellis; Terrier, Régis; Reichardt, Ignasi; Harris, Jon; Bühler, Rolf; Klepser, Stefan

    2015-01-01

    In the past decade imaging atmospheric Cherenkov telescope arrays such as H.E.S.S., MAGIC, VERITAS, as well as the Fermi-LAT space telescope have provided us with detailed images and spectra of the {\\gamma}-ray universe for the first time. Currently the {\\gamma}-ray community is preparing to build the next-generation Cherenkov Telecope Array (CTA), which will be operated as an open observatory. Gammapy (available at https://github.com/gammapy/gammapy under the open-source BSD li- cense) is a new in-development Astropy affiliated package for high-level analysis and simulation of astronomical {\\gamma}-ray data. It is built on the scientific Python stack (Numpy, Scipy, matplotlib and scikit-image) and makes use of other open-source astronomy packages such as Astropy, Sherpa and Naima to provide a flexible set of tools for {\\gamma}-ray astronomers. We present an overview of the current Gammapy features and example analyses on real as well as simulated {\\gamma}-ray datasets. We would like Gammapy to become a commu...

  5. GOGrapher: A Python library for GO graph representation and analysis

    Directory of Open Access Journals (Sweden)

    Lu Xinghua

    2009-07-01

    Full Text Available Abstract Background The Gene Ontology is the most commonly used controlled vocabulary for annotating proteins. The concepts in the ontology are organized as a directed acyclic graph, in which a node corresponds to a biological concept and a directed edge denotes the parent-child semantic relationship between a pair of terms. A large number of protein annotations further create links between proteins and their functional annotations, reflecting the contemporary knowledge about proteins and their functional relationships. This leads to a complex graph consisting of interleaved biological concepts and their associated proteins. What is needed is a simple, open source library that provides tools to not only create and view the Gene Ontology graph, but to analyze and manipulate it as well. Here we describe the development and use of GOGrapher, a Python library that can be used for the creation, analysis, manipulation, and visualization of Gene Ontology related graphs. Findings An object-oriented approach was adopted to organize the hierarchy of the graphs types and associated classes. An Application Programming Interface is provided through which different types of graphs can be pragmatically created, manipulated, and visualized. GOGrapher has been successfully utilized in multiple research projects, e.g., a graph-based multi-label text classifier for protein annotation. Conclusion The GOGrapher project provides a reusable programming library designed for the manipulation and analysis of Gene Ontology graphs. The library is freely available for the scientific community to use and improve.

  6. Gastric adenocarcinoma in a diamond python (Morelia spilota spilota).

    Science.gov (United States)

    Baron, H R; Allavena, R; Melville, L M; Doneley, R J T

    2014-10-01

    A 5-year-old captive male diamond python (Morelia spilota spilota) was presented with a 1-month history of regurgitation and anorexia and discrete coelomic distention. Physical examination revealed a firm, immobile mass at approximately two-thirds of the snout-vent length from the front of the head. Ultrasound-guided fine needle aspirate biopsy of the mass in the region of the stomach showed necrosis with bacterial infiltration and possibly neoplastic changes. A gastroscopy was conducted, but showed grossly normal gastric mucosa, confirmed by biopsy. On exploratory coeliotomy, it was confirmed the mass involved most of the stomach wall and occluded the gastric lumen. The mass was completely excised and based on histopathology, a diagnosis of gastric adenocarcinoma was made. The snake was found dead 12 h postoperatively, but no specific cause of death was found on postmortem examination. Most cases of adenocarcinoma in snakes go undiagnosed. This case report illustrates that the architecture of gastric masses may lead to false-negative gastric biopsy results in snakes with neoplasia. © 2014 Australian Veterinary Association.

  7. Programming PHREEQC calculations with C++ and Python a comparative study

    Science.gov (United States)

    Charlton, Scott R.; Parkhurst, David L.; Muller, Mike

    2011-01-01

    The new IPhreeqc module provides an application programming interface (API) to facilitate coupling of other codes with the U.S. Geological Survey geochemical model PHREEQC. Traditionally, loose coupling of PHREEQC with other applications required methods to create PHREEQC input files, start external PHREEQC processes, and process PHREEQC output files. IPhreeqc eliminates most of this effort by providing direct access to PHREEQC capabilities through a component object model (COM), a library, or a dynamically linked library (DLL). Input and calculations can be specified through internally programmed strings, and all data exchange between an application and the module can occur in computer memory. This study compares simulations programmed in C++ and Python that are tightly coupled with IPhreeqc modules to the traditional simulations that are loosely coupled to PHREEQC. The study compares performance, quantifies effort, and evaluates lines of code and the complexity of the design. The comparisons show that IPhreeqc offers a more powerful and simpler approach for incorporating PHREEQC calculations into transport models and other applications that need to perform PHREEQC calculations. The IPhreeqc module facilitates the design of coupled applications and significantly reduces run times. Even a moderate knowledge of one of the supported programming languages allows more efficient use of PHREEQC than the traditional loosely coupled approach.

  8. PRECESSION. Dynamics of spinning black-hole binaries with python

    CERN Document Server

    Gerosa, Davide

    2016-01-01

    We present the numerical code PRECESSION: a new open-source python module to study the dynamics of precessing black-hole binaries in the post-Newtonian regime. The code provides a comprehensive toolbox to (i) study the evolution of the black-hole spins along their precession cycles, (ii) perform gravitational-wave driven binary inspirals using both orbit-averaged and precession-averaged integrations, and (iii) predict the properties of the merger remnant through fitting formulae obtained from numerical-relativity simulations. PRECESSION is a ready-to-use tool to add the black-hole spin dynamics to larger-scale numerical studies such as gravitational-wave parameter estimation codes, population synthesis models to predict gravitational-wave event rates, galaxy merger trees and cosmological simulations of structure formation. PRECESSION provides fast and reliable integration methods to propagate statistical samples of black-hole binaries from/to large separations where they form to/from small separations where t...

  9. Python framework for kinetic modeling of electronically excited reaction pathways

    Science.gov (United States)

    Verboncoeur, John; Parsey, Guy; Guclu, Yaman; Christlieb, Andrew

    2012-10-01

    The use of plasma energy to enhance and control the chemical reactions during combustion, a technology referred to as ``plasma assisted combustion'' (PAC), can result in a variety of beneficial effects: e.g. stable lean operation, pollution reduction, and wider range of p-T operating conditions. While experimental evidence abounds, theoretical understanding of PAC is at best incomplete, and numerical tools still lack in reliable predictive capabilities. In the context of a joint experimental-numerical effort at Michigan State University, we present here an open-source modular Python framework dedicated to the dynamic optimization of non-equilibrium PAC systems. Multiple sources of experimental reaction data, e.g. reaction rates, cross-sections and oscillator strengths, are used in order to quantify the effect of data uncertainty and limiting assumptions. A collisional-radiative model (CRM) is implemented to organize reactions by importance and as a potential means of measuring a non-Maxwellian electron energy distribution function (EEDF), when coupled to optical emission spectroscopy data. Finally, we explore scaling laws in PAC parameter space using a kinetic global model (KGM) accelerated with CRM optimized reaction sequences and sparse stiff integrators.

  10. ObsPy: A Python Toolbox for Seismology

    Science.gov (United States)

    Krischer, Lion; Megies, Tobias; Sales de Andrade, Elliott; Barsch, Robert; MacCarthy, Jonathan

    2017-04-01

    In recent years the Python ecosystem evolved into one of the most powerful and productive scientific environments across disciplines. ObsPy (https://www.obspy.org) is a fully community-driven, open-source project dedicated to providing a bridge for seismology into that ecosystem. It does so by offering Read and write support for essentially every commonly used data format in seismology with a unified interface and automatic format detection. This includes waveform data (MiniSEED, SAC, SEG-Y, Reftek, …) as well as station (SEED, StationXML, …) and event meta information (QuakeML, ZMAP, …). Integrated access to the largest data centers, web services, and real-time data streams (FDSNWS, ArcLink, SeedLink, ...). A powerful signal processing toolbox tuned to the specific needs of seismologists. Utility functionality like travel time calculations with the TauP method, geodetic functions, and data visualizations. ObsPy has been in constant development for more than seven years and is developed and used by scientists around the world with successful applications in all branches of seismology. Additionally it nowadays serves as the foundation for a large number of more specialized packages. This presentation will give a short overview of the capabilities of ObsPy and point out several representative or new use cases. Additionally we will discuss the road ahead as well as the long-term sustainability of open-source scientific software.

  11. Hyperopt: a Python library for model selection and hyperparameter optimization

    Science.gov (United States)

    Bergstra, James; Komer, Brent; Eliasmith, Chris; Yamins, Dan; Cox, David D.

    2015-01-01

    Sequential model-based optimization (also known as Bayesian optimization) is one of the most efficient methods (per function evaluation) of function minimization. This efficiency makes it appropriate for optimizing the hyperparameters of machine learning algorithms that are slow to train. The Hyperopt library provides algorithms and parallelization infrastructure for performing hyperparameter optimization (model selection) in Python. This paper presents an introductory tutorial on the usage of the Hyperopt library, including the description of search spaces, minimization (in serial and parallel), and the analysis of the results collected in the course of minimization. This paper also gives an overview of Hyperopt-Sklearn, a software project that provides automatic algorithm configuration of the Scikit-learn machine learning library. Following Auto-Weka, we take the view that the choice of classifier and even the choice of preprocessing module can be taken together to represent a single large hyperparameter optimization problem. We use Hyperopt to define a search space that encompasses many standard components (e.g. SVM, RF, KNN, PCA, TFIDF) and common patterns of composing them together. We demonstrate, using search algorithms in Hyperopt and standard benchmarking data sets (MNIST, 20-newsgroups, convex shapes), that searching this space is practical and effective. In particular, we improve on best-known scores for the model space for both MNIST and convex shapes. The paper closes with some discussion of ongoing and future work.

  12. 速眠新和异氟烷对蟒蛇的全麻效果研究%Research on Sumianxin and Isoflurane Anesthesia for Burmese Python

    Institute of Scientific and Technical Information of China (English)

    刘建才; 曹婷; 于萍; 张建省; 刘雅芳; 张立岭

    2012-01-01

    本试验通过使用速眠新和异氟烷两种常用全身麻醉剂对缅甸蟒的麻醉效果进行了研究.对15条蟒蛇肌肉注射和腹腔注射(0.1、0.2、0.4 mL/kg)速眠新麻醉剂和对6条蟒蛇使用异氟烷吸人性麻醉后,进行麻醉效果的评估.试验结果表明,常规动物2~4倍的速眠新Ⅱ注射剂对蟒蛇的麻醉效果不明显;4%的异氟烷吸人性麻醉剂可用于蟒蛇的诱导麻醉,2.5%的异氟烷可用于蟒蛇的维持麻醉,其麻醉效果显著,具有诱导麻醉迅速、维持麻醉稳定、肌松作用好、安全性高、可控性强、苏醒快、副作用小等优点.结果显示,异氟烷吸人性麻醉剂可运用于蟒蛇的临床麻醉保定中.%To evaluate the efficacy and safety of general anesthesia with Sumianxin vs isoflurane in Burmese python (Python molurus bivittatus). 15 pythons were anesthetized with Sumianxin- TJ (0. 1, 0. 2, 0. 4 mL/kg) I. M. And I. P. , 6 pythons were anesthetized with isoflurane inhalation. Analgesic effecti righting reflex, breathing, muscle relaxation, time of anesthesia induction, time of recovery from anesthesia, side effects were recorded. High doses of Sumianxin-U which is 2-4 times higher than that used in conventional animals did not show good anesthetic efficacy. In contrast, isoflurane when used 4% for anesthesia induction and 2. 5% for maintenance showed satisfactory efficacy with notable advantages of induction rapidly, good anesthetic efficacy, muscle relaxation, high safety, recovery quickly and less side effects etc. Isoflurane inhalation anesthesia can be used clinically in pythons safely and effectively.

  13. Short telomeres in hatchling snakes: erythrocyte telomere dynamics and longevity in tropical pythons.

    Directory of Open Access Journals (Sweden)

    Beata Ujvari

    Full Text Available BACKGROUND: Telomere length (TL has been found to be associated with life span in birds and humans. However, other studies have demonstrated that TL does not affect survival among old humans. Furthermore, replicative senescence has been shown to be induced by changes in the protected status of the telomeres rather than the loss of TL. In the present study we explore whether age- and sex-specific telomere dynamics affect life span in a long-lived snake, the water python (Liasis fuscus. METHODOLOGY/PRINCIPAL FINDINGS: Erythrocyte TL was measured using the Telo TAGGG TL Assay Kit (Roche. In contrast to other vertebrates, TL of hatchling pythons was significantly shorter than that of older snakes. However, during their first year of life hatchling TL increased substantially. While TL of older snakes decreased with age, we did not observe any correlation between TL and age in cross-sectional sampling. In older snakes, female TL was longer than that of males. When using recapture as a proxy for survival, our results do not support that longer telomeres resulted in an increased water python survival/longevity. CONCLUSIONS/SIGNIFICANCE: In fish high telomerase activity has been observed in somatic cells exhibiting high proliferation rates. Hatchling pythons show similar high somatic cell proliferation rates. Thus, the increase in TL of this group may have been caused by increased telomerase activity. In older humans female TL is longer than that of males. This has been suggested to be caused by high estrogen levels that stimulate increased telomerase activity. Thus, high estrogen levels may also have caused the longer telomeres in female pythons. The lack of correlation between TL and age among old snakes and the fact that longer telomeres did not appear to affect python survival do not support that erythrocyte telomere dynamics has a major impact on water python longevity.

  14. Python for hydrological modeling: interfacing C code with ctypes, dynamic typing and introspection

    Science.gov (United States)

    Bogaart, P. W.

    2008-12-01

    The Python programming language has several features that make it an ideal front-end language for user-friendly numerical modelling of hydrological systems. In this presentation we will demonstrate this with a comprehensive hillslope hydrological modelling framework, where the following features are highlighted: •[Extensibility:] Often a low-level langage like C is better suited for the core functionality of numerical models, for instance because of the inherent higher computational speed, or the availability of specialized algorithms, like the well-known Numerical Recipes or the open source GNU Scientific Library. The now standard Python "ctypes" enables easy manipulation of the C functions and datastructures, provided the C code is compiled into a shared library. High-level Python wrapper functions or classes are easily constructed. •[Flexibility and introspection:] Python is strong but dynamically typed, meaning that variables can change type. This enables the construction of highly flexible functions that operate on a single model parameter, or a list of parameters, or a function that yields parameter values. Related to this, is the capacity of Python to inspect its own types and variables during runtime. So, depending on the actual type of a function argument (scalar, list, function) different actions are taken. Python classes are highly flexibly in the sense that member fields can be added to them during runtime. Python's introspection capacities enables finding out which member fields are actually present. This enables the construction of 'smart' functions that probe an object for the presence or absence of specified members (using their name), and then taking action. On example that will be worked out is a flexible parameter optimizer that takes a reference to a model object, and a list of a parameter names that are to be optimized.

  15. Review of the reticulated python (Python reticulatus Schneider, 1801) with the description of new subspecies from Indonesia

    Science.gov (United States)

    Auliya, M.; Mausfeld, P.; Schmitz, A.; Böhme, W.

    2002-04-01

    The geographically widespread Python reticulatus, the world's longest snake, has been largely neglected by taxonomists. Dwarfed individuals from Tanahjampea Island, Indonesia, differ strikingly in morphology. Phylogenetic relationships were analyzed using a 345-bp fragment of the cytochrome b gene for 12 specimens from different populations. Both genetic differences and morphological characters distinctly revealed two taxonomic subunits. The island populations of Tanahjampea and Selayar form two monophyletic lineages, supported by high bootstrap values, with distinct differences in color pattern and scalation. We consider these forms to represent two new subspecies. The Tanahjampea form is genetically related to populations of the Sunda Islands and mainland Southeast Asia, whereas the Selayar form is related to populations of Southwest Sulawesi. We conclude that, due to strong directional surface currents in this region, gene flow between Tanahjampea and Selayar is prevented. Sea-level changes during the Pleistocene probably contributed to the isolation of the two taxa described. Aspects of ecology and conservation status are briefly discussed. Electronic supplementary material to this paper can be obtained by using the Springer LINK server located at http://dx.doi.org/10.1007/s00114-002-0320-4.

  16. Python Regius (Ball Python) shed skin: Biomimetic analogue for function-targeted design of tribo-surfaces

    CERN Document Server

    Abdel-Aal, H A; Gebeshuber, I C

    2010-01-01

    A major concern in designing tribo-systems is to minimize friction, save energy, and to reduce wear. Satisfying these requirements depends on the integrity of the rubbing surface and its suitability to sliding conditions. As such, designers currently focus on constructing surfaces that are an integral part of the function of the tribo-system. Inspirations for such constructs come from studying natural systems and from implementing natural design rules. One species that may serve as an analogue for design is the Ball python. This is because such a creature while depending on legless locomotion when sliding against various surfaces, many of which are deemed tribologically hostile, doesn't sustain much damage. Resistance to damage in this case originates from surface design features. As such, studying these features and how do they contribute to the control of friction and wear is very attractive for design purposes. In this work we apply a multi scale surface characterization approach to study surface design fe...

  17. ObsPy: a bridge for seismology into the scientific Python ecosystem

    Science.gov (United States)

    Krischer, Lion; Megies, Tobias; Barsch, Robert; Beyreuther, Moritz; Lecocq, Thomas; Caudron, Corentin; Wassermann, Joachim

    2015-01-01

    The Python libraries NumPy and SciPy are extremely powerful tools for numerical processing and analysis well suited to a large variety of applications. We developed ObsPy (http://obspy.org), a Python library for seismology intended to facilitate the development of seismological software packages and workflows, to utilize these abilities and provide a bridge for seismology into the larger scientific Python ecosystem. Scientists in many domains who wish to convert their existing tools and applications to take advantage of a platform like the one Python provides are confronted with several hurdles such as special file formats, unknown terminology, and no suitable replacement for a non-trivial piece of software. We present an approach to implement a domain-specific time series library on top of the scientific NumPy stack. In so doing, we show a realization of an abstract internal representation of time series data permitting I/O support for a diverse collection of file formats. Then we detail the integration and repurposing of well established legacy codes, enabling them to be used in modern workflows composed in Python. Finally we present a case study on how to integrate research code into ObsPy, opening it to the broader community. While the implementations presented in this work are specific to seismology, many of the described concepts and abstractions are directly applicable to other sciences, especially to those with an emphasis on time series analysis.

  18. SunPy - Python for Solar Physics, Version 0.4

    Science.gov (United States)

    Christe, Steven; Mumford, Stuart; Perez-Suarez, David; Ireland, Jack; Shih, Albert Y.; Inglis, Andrew; Liedtke, Simon; Hewett, Russel

    2014-06-01

    We presents version 0.4 of SunPy, a community-developed Python package for solar physics. Python, a free, cross-platform, general-purpose, high-level programming language, has seen widespread adoption among the scientific community, resulting in the availability of a large number of software packages, from numerical computation NumPy, SciPy and machine learning (scikit-learn) to visualisation and plotting (matplotlib).SunPy is a data-analysis environment specialising in providing the software necessary to analyse solar and heliospheric datasets in Python. SunPy is open-source software (BSD licence) and has an open and transparent development workflow that anyone can contribute to. SunPy provides access to solar data through integration with the Virtual Solar Observatory (VSO), the Heliophysics Event Knowledgebase (HEK), and the HELiophysics Integrated Observatory (HELIO) webservices. It currently supports image data from major solar missions (e.g., SDO, SOHO, STEREO, and IRIS), time-series data from missions such as GOES, SDO/EVE, and PROBA2/LYRA, and radio spectra from e-Callisto and STEREO/SWAVES. We describe SunPy's functionality, provide examples of solar data analysis in SunPy, and show how Python-based solar data-analysis can leverage the many existing tools already available in Python. We discuss the future goals of the project and encourage interested users to become involved in the planning and development of SunPy.

  19. Pybel: a Python wrapper for the OpenBabel cheminformatics toolkit

    Directory of Open Access Journals (Sweden)

    Morley Chris

    2008-03-01

    Full Text Available Abstract Background Scripting languages such as Python are ideally suited to common programming tasks in cheminformatics such as data analysis and parsing information from files. However, for reasons of efficiency, cheminformatics toolkits such as the OpenBabel toolkit are often implemented in compiled languages such as C++. We describe Pybel, a Python module that provides access to the OpenBabel toolkit. Results Pybel wraps the direct toolkit bindings to simplify common tasks such as reading and writing molecular files and calculating fingerprints. Extensive use is made of Python iterators to simplify loops such as that over all the molecules in a file. A Pybel Molecule can be easily interconverted to an OpenBabel OBMol to access those methods or attributes not wrapped by Pybel. Conclusion Pybel allows cheminformaticians to rapidly develop Python scripts that manipulate chemical information. It is open source, available cross-platform, and offers the power of the OpenBabel toolkit to Python programmers.

  20. ESCRIPT-RT: Reactive transport simulation in PYTHON using ESCRIPT

    Science.gov (United States)

    Poulet, T.; Gross, L.; Georgiev, D.; Cleverley, J.

    2012-08-01

    We present ESCRIPT-RT, a new reactive transport simulation code for fully saturated porous media which is based on a finite element method (FEM) combined with three other components: (i) a Gibbs minimisation solver for equilibrium modelling of fluid-rock interactions, (ii) an equation of state for pure water to calculate fluid properties and (iii) a thermodynamically consistent material database to determine rocks' material properties. Using decoupling of most of the standard governing equations, this code solves sequentially for temperature, pressure, mass transport and chemical equilibrium. In contrast, pressure and Darcy flow velocities are solved as a coupled system. The reactive transport itself is performed using the masses of chemical elements instead of chemical species. In such way it requires less computing memory and time than the majority of other packages. The code is based on ESCRIPT, a parallelised platform which supports efficient stepwise simulation of realistic geodynamic scenarios at multiple scales. It is particularly suitable to analyse hydrothermal systems involving geometrically complex geological structures with strong permeability contrasts and subject to complex fluid-rock chemical interactions. The modular architecture of the code and its high level Python interface also provide flexibility for modellers who can easily modify or add new feedbacks between the different physical processes. In addition, the implemented abstract user interface allows geologists to run the code without knowledge of the underlying numerical implementation. As an example we show the simulation of hydrothermal gold precipitation in a granite-greenstone geological sequence, which illustrates the important coupling between thermal response and mass transfer to the localisation of gold.

  1. seismic-py: Reading seismic data with Python

    Directory of Open Access Journals (Sweden)

    2008-08-01

    Full Text Available The field of seismic exploration of the Earth has changed
    dramatically over the last half a century. The Society of Exploration
    Geophysicists (SEG has worked to create standards to store the vast
    amounts of seismic data in a way that will be portable across computer
    architectures. However, it has been impossible to predict the needs of the
    immense range of seismic data acquisition systems. As a result, vendors have
    had to bend the rules to accommodate the needs of new instruments and
    experiment types. For low level access to seismic data, there is need for a
    standard open source library to allow access to a wide range of vendor data
    files that can handle all of the variations. A new seismic software package,
    seismic-py, provides an infrastructure for creating and managing drivers for
    each particular format. Drivers can be derived from one of the known formats
    and altered to handle any slight variations. Alternatively drivers can be
    developed from scratch for formats that are very different from any previously
    defined format. Python has been the key to making driver development easy
    and efficient to implement. The goal of seismic-py is to be the base system
    that will power a wide range of experimentation with seismic data and at the
    same time provide clear documentation for the historical record of seismic
    data formats.

  2. Analyzing rasters, vectors and time series using new Python interfaces in GRASS GIS 7

    Science.gov (United States)

    Petras, Vaclav; Petrasova, Anna; Chemin, Yann; Zambelli, Pietro; Landa, Martin; Gebbert, Sören; Neteler, Markus; Löwe, Peter

    2015-04-01

    GRASS GIS 7 is a free and open source GIS software developed and used by many scientists (Neteler et al., 2012). While some users of GRASS GIS prefer its graphical user interface, significant part of the scientific community takes advantage of various scripting and programing interfaces offered by GRASS GIS to develop new models and algorithms. Here we will present different interfaces added to GRASS GIS 7 and available in Python, a popular programming language and environment in geosciences. These Python interfaces are designed to satisfy the needs of scientists and programmers under various circumstances. PyGRASS (Zambelli et al., 2013) is a new object-oriented interface to GRASS GIS modules and libraries. The GRASS GIS libraries are implemented in C to ensure maximum performance and the PyGRASS interface provides an intuitive, pythonic access to their functionality. GRASS GIS Python scripting library is another way of accessing GRASS GIS modules. It combines the simplicity of Bash and the efficiency of the Python syntax. When full access to all low-level and advanced functions and structures from GRASS GIS library is required, Python programmers can use an interface based on the Python ctypes package. Ctypes interface provides complete, direct access to all functionality as it would be available to C programmers. GRASS GIS provides specialized Python library for managing and analyzing spatio-temporal data (Gebbert and Pebesma, 2014). The temporal library introduces space time datasets representing time series of raster, 3D raster or vector maps and allows users to combine various spatio-temporal operations including queries, aggregation, sampling or the analysis of spatio-temporal topology. We will also discuss the advantages of implementing scientific algorithm as a GRASS GIS module and we will show how to write such module in Python. To facilitate the development of the module, GRASS GIS provides a Python library for testing (Petras and Gebbert, 2014) which

  3. PyTransport: A Python package for the calculation of inflationary correlation functions

    CERN Document Server

    Mulryne, David J

    2016-01-01

    PyTransport constitutes a straightforward code written in C++ together with Python scripts which automatically edit, compile and run the C++ code as a Python module. It has been written for Unix-like systems (OS X and Linux). Primarily the module employs the transport approach to inflationary cosmology to calculate the tree-level power-spectrum and bispectrum of user specified models of multi-field inflation, accounting for all sub and super-horizon effects. The transport method we utilise means only coupled differential equations need to be solved, and the implementation presented here combines the speed of C++ with the functionality and convenience of Python. At present the code is restricted to canonical models. This document details the code and illustrates how to use it with a worked example.

  4. Pteros 2.0: Evolution of the fast parallel molecular analysis library for C++ and python.

    Science.gov (United States)

    Yesylevskyy, Semen O

    2015-07-15

    Pteros is the high-performance open-source library for molecular modeling and analysis of molecular dynamics trajectories. Starting from version 2.0 Pteros is available for C++ and Python programming languages with very similar interfaces. This makes it suitable for writing complex reusable programs in C++ and simple interactive scripts in Python alike. New version improves the facilities for asynchronous trajectory reading and parallel execution of analysis tasks by introducing analysis plugins which could be written in either C++ or Python in completely uniform way. The high level of abstraction provided by analysis plugins greatly simplifies prototyping and implementation of complex analysis algorithms. Pteros is available for free under Artistic License from http://sourceforge.net/projects/pteros/.

  5. PeptideBuilder: A simple Python library to generate model peptides

    Directory of Open Access Journals (Sweden)

    Matthew Z. Tien

    2013-05-01

    Full Text Available We present a simple Python library to construct models of polypeptides from scratch. The intended use case is the generation of peptide models with pre-specified backbone angles. For example, using our library, one can generate a model of a set of amino acids in a specific conformation using just a few lines of python code. We do not provide any tools for energy minimization or rotamer packing, since powerful tools are available for these purposes. Instead, we provide a simple Python interface that enables one to add residues to a peptide chain in any desired conformation. Bond angles and bond lengths can be manipulated if so desired, and reasonable values are used by default.

  6. GPAW - massively parallel electronic structure calculations with Python-based software

    DEFF Research Database (Denmark)

    Enkovaara, Jussi; Romero, Nichols A.; Shende, Sameer

    2011-01-01

    popular choice. While dynamic, interpreted languages, such as Python, can increase the effciency of programmer, they cannot compete directly with the raw performance of compiled languages. However, by using an interpreted language together with a compiled language, it is possible to have most...... of the productivity enhancing features together with a good numerical performance. We have used this approach in implementing an electronic structure simulation software GPAW using the combination of Python and C programming languages. While the chosen approach works well in standard workstations and Unix...... environments, massively parallel supercomputing systems can present some challenges in porting, debugging and profiling the software. In this paper we describe some details of the implementation and discuss the advantages and challenges of the combined Python/C approach. We show that despite the challenges...

  7. The Analysis of Turn-taking in Monty Python and the Holy Grail

    Institute of Scientific and Technical Information of China (English)

    董一雯

    2016-01-01

    Guided by the turn-taking mechanics of the conversation analysis and with the aid of pragmatics and linguistic relevance theories, the paper aims to reveal the stylistic feature of Monty Python and the Holy Grail and how this kind of feature is conveyed, by means of analyzing a 3-minute movie clip from Monty Python and the Holy Grail. The study points out that Monty Python and the Holy Grail succeeds in creating humor, which is conveyed by the ingenious designation of the dialogue, especialy in terms of adjacency pairs, interruption and so on. It is hoped that the current study would present a comprehensive and deep stylistic analysis of the movie and offer a useful tool as wel as a new perspective to appreciate current films.

  8. The mechanical properties of the systemic and pulmonary arteries of Python regius correlate with blood pressures.

    Science.gov (United States)

    van Soldt, Benjamin J; Danielsen, Carl Christian; Wang, Tobias

    2015-12-01

    Pythons are unique amongst snakes in having different pressures in the aortas and pulmonary arteries because of intraventricular pressure separation. In this study, we investigate whether this correlates with different blood vessel strength in the ball python Python regius. We excised segments from the left, right, and dorsal aortas, and from the two pulmonary arteries. These were subjected to tensile testing. We show that the aortic vessel wall is significantly stronger than the pulmonary artery wall in P. regius. Gross morphological characteristics (vessel wall thickness and correlated absolute amount of collagen content) are likely the most influential factors. Collagen fiber thickness and orientation are likely to have an effect, though the effect of collagen fiber type and cross-links between fibers will need further study.

  9. A Python-based Post-processing Toolset For Seismic Analyses

    CERN Document Server

    Brasier, Steve

    2014-01-01

    This paper discusses the design and implementation of a Python-based toolset to aid in assessing the response of the UK's Advanced Gas Reactor nuclear power stations to earthquakes. The seismic analyses themselves are carried out with a commercial Finite Element solver, but understanding the raw model output this produces requires customised post-processing and visualisation tools. Extending the existing tools had become increasingly difficult and a decision was made to develop a new, Python-based toolset. This comprises of a post-processing framework (aftershock) which includes an embedded Python interpreter, and a plotting package (afterplot) based on numpy and matplotlib. The new toolset had to be significantly more flexible and easier to maintain than the existing code-base, while allowing the majority of development to be carried out by engineers with little training in software development. The resulting architecture will be described with a focus on exploring how the design drivers were met and the suc...

  10. GPAW - massively parallel electronic structure calculations with Python-based software

    DEFF Research Database (Denmark)

    Enkovaara, Jussi; Romero, Nichols A.; Shende, Sameer

    2011-01-01

    popular choice. While dynamic, interpreted languages, such as Python, can increase the effciency of programmer, they cannot compete directly with the raw performance of compiled languages. However, by using an interpreted language together with a compiled language, it is possible to have most...... of the productivity enhancing features together with a good numerical performance. We have used this approach in implementing an electronic structure simulation software GPAW using the combination of Python and C programming languages. While the chosen approach works well in standard workstations and Unix...... environments, massively parallel supercomputing systems can present some challenges in porting, debugging and profiling the software. In this paper we describe some details of the implementation and discuss the advantages and challenges of the combined Python/C approach. We show that despite the challenges...

  11. A Python-based interface to examine motions in time series of solar images

    Science.gov (United States)

    Campos-Rozo, J. I.; Vargas Domínguez, S.

    2017-10-01

    Python is considered to be a mature programming language, besides of being widely accepted as an engaging option for scientific analysis in multiple areas, as will be presented in this work for the particular case of solar physics research. SunPy is an open-source library based on Python that has been recently developed to furnish software tools to solar data analysis and visualization. In this work we present a graphical user interface (GUI) based on Python and Qt to effectively compute proper motions for the analysis of time series of solar data. This user-friendly computing interface, that is intended to be incorporated to the Sunpy library, uses a local correlation tracking technique and some extra tools that allows the selection of different parameters to calculate, vizualize and analyze vector velocity fields of solar data, i.e. time series of solar filtergrams and magnetograms.

  12. The atomic simulation environment—a Python library for working with atoms

    Science.gov (United States)

    Hjorth Larsen, Ask; Jørgen Mortensen, Jens; Blomqvist, Jakob; Castelli, Ivano E.; Christensen, Rune; Dułak, Marcin; Friis, Jesper; Groves, Michael N.; Hammer, Bjørk; Hargus, Cory; Hermes, Eric D.; Jennings, Paul C.; Bjerre Jensen, Peter; Kermode, James; Kitchin, John R.; Leonhard Kolsbjerg, Esben; Kubal, Joseph; Kaasbjerg, Kristen; Lysgaard, Steen; Bergmann Maronsson, Jón; Maxson, Tristan; Olsen, Thomas; Pastewka, Lars; Peterson, Andrew; Rostgaard, Carsten; Schiøtz, Jakob; Schütt, Ole; Strange, Mikkel; Thygesen, Kristian S.; Vegge, Tejs; Vilhelmsen, Lasse; Walter, Michael; Zeng, Zhenhua; Jacobsen, Karsten W.

    2017-07-01

    The atomic simulation environment (ASE) is a software package written in the Python programming language with the aim of setting up, steering, and analyzing atomistic simulations. In ASE, tasks are fully scripted in Python. The powerful syntax of Python combined with the NumPy array library make it possible to perform very complex simulation tasks. For example, a sequence of calculations may be performed with the use of a simple ‘for-loop’ construction. Calculations of energy, forces, stresses and other quantities are performed through interfaces to many external electronic structure codes or force fields using a uniform interface. On top of this calculator interface, ASE provides modules for performing many standard simulation tasks such as structure optimization, molecular dynamics, handling of constraints and performing nudged elastic band calculations.

  13. WekaPyScript: Classification, Regression, and Filter Schemes for WEKA Implemented in Python

    Directory of Open Access Journals (Sweden)

    Christopher Beckham

    2016-08-01

    Full Text Available WekaPyScript is a package for the machine learning software WEKA that allows learning algorithms and preprocessing methods for classification and regression to be written in Python, as opposed to WEKA’s implementation language, Java. This opens up WEKA to its machine learning and scientific computing ecosystem. Furthermore, due to Python’s minimalist syntax, learning algorithms and preprocessing methods can be prototyped easily and utilised from within WEKA. WekaPyScript works by running a local Python server using the host’s installation of Python; as a result, any libraries installed in the host installation can be leveraged when writing a script for WekaPyScript. Three example scripts (two learning algorithms and one preprocessing method are presented.

  14. Object-oriented implementations of the MPDATA advection equation solver in C++, Python and Fortran

    CERN Document Server

    Arabas, Sylwester; Jaruga, Anna; Fijałkowski, Maciej

    2013-01-01

    Three object-oriented implementations of a prototype solver of the advection equation are introduced. Presented programs are based on Blitz++ (C++), NumPy (Python), and Fortran's built-in array containers. The solvers include an implementation of the Multidimensional Positive-Definite Advective Transport Algorithm (MPDATA). The introduced codes exemplify how the application of object-oriented programming (OOP) techniques allows to reproduce the mathematical notation used in the literature within the program code. The introduced codes serve as a basis for discussion on the tradeoffs of the programming language choice. The main angles of comparison are code brevity and syntax clarity (and hence maintainability and auditability) as well as performance. In case of Python, a significant performance gain is observed when switching from the standard interpreter (CPython) to the PyPy implementation of Python. Entire source code of all three implementations is embedded in the text and is licensed under the terms of th...

  15. A three-dimensional kinematic analysis of tongue flicking in Python molurus

    NARCIS (Netherlands)

    Groot, de J.H.; Sluijs, van der I.; Snelderwaard, P.C.; Leeuwen, van J.L.

    2004-01-01

    The forked snake tongue is a muscular organ without hard skeletal support. A functional interpretation of the variable arrangement of the intrinsic muscles along the tongue requires a quantitative analysis of the motion performance during tongue protrusion and flicking. Therefore, high-speed fluoros

  16. Molecular genetic evidence for parthenogenesis in the Burmese phyton, Python molurus bivitattus

    NARCIS (Netherlands)

    Groot, T.V.M.; Breeuwer, J.A.J.; Bruins, E.

    2003-01-01

    Abstract: Parthenogenesis among reptiles is rare. Only a few species have the ability to reproduce asexually. Most of these are obligate parthenogenetic species that consist (almost) entirely of females, which can reproduce solely through parthenogenesis. Rarer are sexual species that only

  17. The role of python eggshell permeability dynamics in a respiration-hydration trade-off.

    Science.gov (United States)

    Stahlschmidt, Zachary R; Heulin, Benoit; DeNardo, Dale F

    2010-01-01

    Parental care is taxonomically widespread because it improves developmental conditions and thus fitness of offspring. Although relatively simplistic compared with parental behaviors of other taxa, python egg-brooding behavior exemplifies parental care because it mediates a trade-off between embryonic respiration and hydration. However, because egg brooding increases gas-exchange resistance between embryonic and nest environments and because female pythons do not adjust their brooding behavior in response to the increasing metabolic requirements of developing offspring, python egg brooding imposes hypoxic costs on embryos during the late stages of incubation. We conducted a series of experiments to determine whether eggshells coadapted with brooding behavior to minimize the negative effects of developmental hypoxia. We tested the hypotheses that python eggshells (1) increase permeability over time to accommodate increasing embryonic respiration and (2) exhibit permeability plasticity in response to chronic hypoxia. Over incubation, we serially measured the atomic and structural components of Children's python (Antaresia childreni) eggshells as well as in vivo and in vitro gas exchange across eggshells. In support of our first hypothesis, A. childreni eggshells exhibited a reduced fibrous layer, became more permeable, and facilitated greater gas exchange as incubation progressed. Our second hypothesis was not supported, as incubation O(2) concentration did not affect the shells' permeabilities to O(2) and H(2)O vapor. Our results suggest that python eggshell permeability changes during incubation but that the alterations over time are fixed and independent of environmental conditions. These findings are of broad evolutionary interest because they demonstrate that, even in relatively simple parental-care models, successful parent-offspring relationships depend on adjustments made by both the parent (i.e., egg-brooding behavioral shifts) and the offspring (i

  18. HOPE: A Python just-in-time compiler for astrophysical computations

    Science.gov (United States)

    Akeret, J.; Gamper, L.; Amara, A.; Refregier, A.

    2015-04-01

    The Python programming language is becoming increasingly popular for scientific applications due to its simplicity, versatility, and the broad range of its libraries. A drawback of this dynamic language, however, is its low runtime performance which limits its applicability for large simulations and for the analysis of large data sets, as is common in astrophysics and cosmology. While various frameworks have been developed to address this limitation, most focus on covering the complete language set, and either force the user to alter the code or are not able to reach the full speed of an optimised native compiled language. In order to combine the ease of Python and the speed of C++, we developed HOPE, a specialised Python just-in-time (JIT) compiler designed for numerical astrophysical applications. HOPE focuses on a subset of the language and is able to translate Python code into C++ while performing numerical optimisation on mathematical expressions at runtime. To enable the JIT compilation, the user only needs to add a decorator to the function definition. We assess the performance of HOPE by performing a series of benchmarks and compare its execution speed with that of plain Python, C++ and the other existing frameworks. We find that HOPE improves the performance compared to plain Python by a factor of 2 to 120, achieves speeds comparable to that of C++, and often exceeds the speed of the existing solutions. We discuss the differences between HOPE and the other frameworks, as well as future extensions of its capabilities. The fully documented HOPE package is available at http://hope.phys.ethz.ch and is published under the GPLv3 license on PyPI and GitHub.

  19. Python forensics a workbench for inventing and sharing digital forensic technology

    CERN Document Server

    Hosmer, Chet

    2014-01-01

    Python Forensics provides many never-before-published proven forensic modules, libraries, and solutions that can be used right out of the box. In addition, detailed instruction and documentation provided with the code samples will allow even novice Python programmers to add their own unique twists or use the models presented to build new solutions. Rapid development of new cybercrime investigation tools is an essential ingredient in virtually every case and environment. Whether you are performing post-mortem investigation, executing live triage, extracting evidence from mobile devices or cl

  20. ModFossa: A library for modeling ion channels using Python.

    Science.gov (United States)

    Ferneyhough, Gareth B; Thibealut, Corey M; Dascalu, Sergiu M; Harris, Frederick C

    2016-06-01

    The creation and simulation of ion channel models using continuous-time Markov processes is a powerful and well-used tool in the field of electrophysiology and ion channel research. While several software packages exist for the purpose of ion channel modeling, most are GUI based, and none are available as a Python library. In an attempt to provide an easy-to-use, yet powerful Markov model-based ion channel simulator, we have developed ModFossa, a Python library supporting easy model creation and stimulus definition, complete with a fast numerical solver, and attractive vector graphics plotting.