Alise Hardie – Colorado School of Mines – Week 5

Posted in: Alise Hardie, Pinhead Intern Blogs, 2022 Interns
Tags:

Hi, I’m Alise Hardie, an intern working with Dr.Petruska, a mechanical engineering professor at Colorado School of Mines. Where Farrar and I work in his lab on different graduate students projects. I’ve been working with Austin for the past 4 weeks now at Mines.

We are creating command line arguments in our code to run the code more effectively and accurately to what results we want. What I mean by that is when running code we type the type of program and then the file we want to run; so something like ‘python “file name” ‘ then enter and the computer runs the program. Well adding command line arguments means that we don’t have to annually go into the file and change a certain variable but rather we can change a value outside of the code. Ex: x + 1 = “output “ we are trying to find output so when we run this line of code we would have to set a value for x. The manual way is in the file to say ‘ x =2 ‘ rather than that using a command line argument means we can do this;  ‘python “file name” x = 4’ so every time we run the file we give x a variable or its default is 2. We have been doing this for window duration which is the size of the audio file so if we want to take more one time we can as well as the overlap of these durations, and others.

All of this code is for limestone classification and for the past processors we have coded this addition to the code just allows us to access data we want easier.

This weekend I went for a hike and saw a deer. The hike was really nice as it was beautiful weather.

There are no comments published yet.

Leave a Comment

Change this in Theme Options
Change this in Theme Options
X