Jump to content

physica

Senior Members
  • Posts

    321
  • Joined

  • Last visited

Everything posted by physica

  1. Yes I would love it thanks. I am finding the coding community to be very helpful and creative. I wish I got involved in it sooner. I start my masters in sept so I have just under a year to get my head round some programming and apply my physics I learnt in my major to engineering subjects. I will purchase matlab soon as it it is used a fair amount in the masters. I am working on python, I would also like to get off the ground in C++ . Do you know how to get started in terms of where to download a compiler and editor? I am using mac.
  2. wow you have really taken it to the next level. This will definitely help when I start collecting data on the amount of patients in the department and how it will affect the nursing levels. The next step is calculating how many patients have to wait and for how long. At handover which is 8am there are usually no patients left to be processed which makes it a goo handover time. The task at hand is to start at 8am, add the patients that come in at 8am and then minus the amount of doctors on for that hour giving the amount of patients left to be seen. The next hour taking away the amount of doctors on from the patients left over in the previous hour, the main aim is to calculate how many patients have to wait X amount of hours to be seen by a doctor if we have a y configuration on the rota. There has to be some function. I started writing a ton of if conditions for each hour but it spun out of control very quickly. my major is physics. I got into University College London for msc(physics and engineering in medicine). The fields I'm interested in working in require masters minimum. As you can see I am new to programming so I need to practice my programming on simple tasks before I start over wise I'm going to find tasks like signal processing to be very hard.
  3. thank you so much. This has really helped my program. I am on the last stretch. Looks very swish, slightly kicking myself. Hopefully I will have your problem solving skills one day.
  4. For the patients coming in I have accessed a data base and did a probability distribution of 6000 attendances with respect to the time they came in. I then wrote a matlab program mimicking the distribution but scaled to the amount of patients coming in for that day. It made a prediction reconstructing the distribution based on the amount of patients coming in between 10am to 11am. I then calculated the error of prediction per hour. It's fairly accurate. I then looked at the average number of patients coming in in that time over 3 months. This is why my consultant asked me to write a computer program to get him to optimise the rota. Thank you for the help. I am new to python. Could you show me an example of how you'd implement a while loop? There is also another technicality. Some doctors will start in the evening and work through till the morning. This means that the time finished will be lower than the time started. I'm guessing you can make an if condition (finish < start) you can go down a different path. many thanks
  5. I am practicing my programming before I start my masters. I am writing a simple rota program for work. We already having rostering system. The main focus of this program is to look at the amount of patients coming in per hour, make the assumption that one doctor takes one hour per patient to process and calculate how many people will be waiting over 4 hours and how many people have to wait x y and z hours before seeing a doctor depending on the amount of patients coming in per hour and the amount of doctors on for that hour. I am having problems assigning doctors to each hour. Here is the following code: patients_each_hour = [4, 3, 2, 2, 2, 2, 1, 1, 3, 3, 5, 7, 7, 6, 7, 6, 6, 6, 5, 5, 5, 4, 5, 5] hours_in_day = list(range(1, 25)) doctors_per_hour = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0] print print("Above are the amount of patients coming into the department per hour with the first diget being 1am to 2am and the final diget being 11pm to midnight based on an average presentation in the data of 6000 attendances and the distribution.") print print(patients_each_hour) print print("Above are the following hours in the 24 hour period which you have to choose from when inputing following hours for the SHO shifts.") print clocking_in = int(raw_input("please enter an hour he/she starts: ")) clocking_out = int(raw_input("please enter an hour he/she finishes: ")) for i, n in doctors_per_hour[clocking_in : clocking_out]: if n == 0: n = 1 elif n == 1: n = 2 print print(doctors_per_hour) I did a 24 bit list. However, when I try and do the final part 'int' object is not iterable. Could someone please help? If I can alter a slice in the list I will then do it for the other 7 doctors and I can move forward with my program. Many thanks
  6. Many thanks. I have downloaded python 2 from python.org and it runs with no problems. Considering that I have gotten fairly far on code academy and I will not be writing the most complex programs I will stick with this. Many thanks for the help. Before this thread I didn't even know there was 2 versions of python. Will look into compilers.
  7. Thanks for the input. To be honest I am very new to this so when you guys talk about shells etc I am a bit lost. Is there a download you can recommend for a starter? I want to get used to the syntax and write some very basic programs so I can get a hang of the basics. Yes I downloaded python 3 but I have been learning how to code from code academy.com. I am not sure if codeacademy.com is teaching in python 2.
  8. I'm starting to learn python for post grad. However, I am having trouble utilising it. I can run code in the terminal via text wrangler. This works fine however, if I try and run it by itself it comes up with NameError: name raw_input("Enter name: ") I then downloaded IDLE and python launcher from python.org. However, it gives the same error message. It seems that I can only run by code through the terminal (I'm on mac). I am also at a loss on how to compile programs. I have no idea how to use python launcher and I can't find any tutorials. Can anyone point me in the right direction for guidance? Many thanks
  9. Yes ultrasound, MRI, ionising imaging and computing in medicine is covered in both streams. The difference is the physics stream focuses on radiotherapy and charged particle interactions, the engineering stream looks at signal processing and control, resp and cardio measurement devices, tissue engineering and biomaterials. In terms of my job I want to do something where pay is good and I get to apply some physics to medical problems. There are clearly jobs in hospitals for medical physics however, I'd love to work for industry. We have an NHS in the UK and I've worked in it for the last 5 years and I'm sick of incompetent lazy people and rampant corruption.
  10. I have been given a place at UCL (University College London) for an msc in physics and engineering in medicine. I picked it because I have 5 years accident and emergency experience and it seems like a stable career. However, it has an engineering stream and a physics stream and I have to choose one. Academically I'm interested in anything that I can apply maths to so I would find interest in either field. Therefore the choice boils down to quality of life, earnings, job opportunities and career progression. Which one would you recommend?
  11. Again we must emphasise what you are doing here. You are musing untestable speculations... it's a good as pub talk or religion.
  12. A theory offers testable predictions. This is the difference between science and religion. Your statement implies that you have either received a very poor education or you have not bothered paying attention in class. What you've expressed is a thought, not a theory.
  13. passed all exams, chosen to do physics and engineering in medicine msc at UCL. Considering my years of clinical experience and contacts I think it will be a more lucrative career.

    1. ajb

      ajb

      Good luck. I get the impression those who study medical physics are quite employable, especially if they have some experience with computer programming.

    2. physica

      physica

      Thanks, I sometimes daydream about being a theoretical physicist but I'm 26 and it's super competitive. I will continue to read as a hobby, maybe one day I will be able to contribute to the speculations page

    3. Sirona

      Sirona

      Congratulations!!

  14. You are the one advocating an unproven hypothesis..... It's general human decency not to be so rude/sure when you have no evidence on your side. If you are proved right it will not be hugely paradigm shifting for other members of this forum. Science is constantly changing. We learn more each year and professional scientists get together and revise their models. If one person is proved wrong it doesn't mean that they have to go back to school. Considering what you've said I'm guessing you're not very familiar with the learning process or the scientific method. Einstein was proved wrong about entanglement, his peers didn't tell him to go back to school.
  15. You've managed to complete misunderstand what I've written. I appreciate that you're using the probabilistic nature of quantum mechanics. However, there are statistical methods that will do this. The schrodinger equation makes predictions on energy, speed, mass and position. These do no influence human events like marriage. You may want to sound intellectual by using quantum mechanics but all you're saying is that you're terrible at using mathematics.
  16. I appreciate that Schrodinger's equation is based on probability and you're trying to use this as an analogy for other probabilities of life events unfolding. However, the Schrodinger equation mainly focuses on position, spin and speed with energy as a variable. There is this phase of applying quantum mechanics to unsuitable things with the illusion that it somehow makes the analysis deep. Instead your analysis tells me you don't really understand maths enough to formulate models. I'm not married yet but I'm guessing that emotional, political, cultural and economical factors influence marriage.... I don't know how you could break all those factors down into time, position and energy. Especially as we can't even quantify emotion. There are far better mathematical methods to describe life events but these fall under the umbrella of general statistics. Unfortunately you won't be able to peddle mystical rubbish with the quantum brand sticker if you use these.
  17. I'm new to computer programming but I thought I'd have a summer project now exams are finished. Which language is the best to develop a data input program for work. Which language would be the best to have a tick box for people people to click and submit once they've made an equipment check. The time gets logged on a database with time and date and there is an interface so other people at work can look and see what equipment has to be checked for that day. There is a computer system with multiple computers on the same account so it will have to support multiple users. I guess there should be a refresh button everytime someone wants to check. It also needs to have an input and delete function so users can delete and add checks that need to be checked. How hard is this? What programming language is the best?
  18. again please refine your main premise, it's really wooly.
  19. We also have to consider the quality of education. The study academically adrift showed that a little over a 3rd of graduates showed no improvement in verbal reasoning, working out the difference between fact and opinion, structuring an arguement and numerical reasoning after 4 years of university education. If employers wise up to this then you'll get a floating group of college grads not gaining skills whilst having to repay loans. Who would you pick for a mannual job? A high school grad whos been working for 4 years or a bad college grad who's shown no academic improvement and has been partying for 4 years.
  20. This is just waffle it doesn’t concrete any points. What’s the main point you’re trying to drive forward here? I’m guessing that you’re saying that good outcomes are rewarded chemically? If you are then this is over simplistic. Drugs thrive on exploiting chemical reward and obesity is a nasty side effect of your one-sided example. However, you did make the point about smoking in your first post so again you need to clarify your position. Right now all I’m getting is waffle and inconsistency. Therefore I’d be lying if I said I understand you. Judging by the lack of replies I think others are on the same page. This is completely irrelevant, makes no point and offers no support if you were making a point From here I'm guessing that you're saying that the chemical rewards were the result of our survival. What I'm saying is that chemical rewards also promote habbits that work against survival however, they are less likely to survive as a result. I get the impression I'm not disagreeing with you here. You're not being very clear on what your actualy point is.
  21. Your forgetting natural selection here. Those Who didn't have survival attributes didn't survive so they couldn't pass on their genes. yes it's called natural selection This is a terrible speculation. The species that didn't have survival attributes didn't pass on their genes because they didn't survive, they may have also enjoyed their activities. This is drastically over simplistic. Lets just look at one section, addiction, different groups have different tolerances, different habits and different choices of stimulant. As for getting the majority to agree on moral laws you're forgetting religion. Whilst people are being killed on a daily basis in the name of religion i doubt we'll manage to get them to agree on a set of moral laws. [to other readers tar has put me on silent so he won't be able to read this post, if you feel that any of my points are valid feel free to echo them so he can see them. Many thanks]
  22. Come on med student you've missed out time scale and pulse and temp , if it hurts on movement, first rule of diagnosis is to go for the most common cause. Most common cause for epigastric pain is acid reflux. This can be linked to trauma as some guys are born with a loose epigastric sphincter.
  23. sawnsont you deserve a medal. I can't believe how long it took for others to get a physics concept that is usually taught in high school.
  24. A lot more information is needed before we can speculate meaningfully. He's already been to a few doctors resulting in nothing so you have to go for the most common cause for such symptoms which is also the most undiagnosed. If this guy abuses alcohol regularly and has a poor diet the it will most probably cause Wernicke's encephalopathy which is due to vitamin B being used to break down the alcohol. Poor diet doesn't replenish it and as a result the patient develops lesions on the brain and has all the symptoms this patient is describing. The onset is so gradual the most diagnosis's happen in autopsy. It's so under-diagnosed that the ER where I work with give people who are drunk an IV dose of B vitamins no matter their demographics. Of course this is mere speculation. He hasn't told us if he is abusing alcohol. If he is he needs a blood test measuring B vitamin levels, needs an MRI head and needs to start taking vitamin B supplements and improve his diet.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.