monroews / CEE4530

MIT License
4 stars 11 forks source link

ANC_open function not working #90

Open aks224 opened 5 years ago

aks224 commented 5 years ago

For question 2 on the Prelab for this week, we are trying to use the ANC_open() function defined in the EPA package. We can not get it to work even though we are successfully using other functions from that package.
Code: print('The pH of Wolf Pond in equilibrium with the atmosphere is',pH_open(.00007*u.eq/u.L)) ANC_open(3.2) We get a name error saying the function is not defined. However, the pH_open function works.

monroews commented 5 years ago

It looks like you forgot to include the directions for where python could find the ANC_open function.

You need this line of code as an import statement import aguaclara.research.environmental_processes_analysis as epa

Then when you use those functions you need to include epa. in front of the function name.

You can see my example code

The pH_open function works because that is defined locally in your code (rather than in the epa functions).

By the way, this was a well posted issue!. You showed the code that didn't work.