Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No alkalinity results in output file #45

Open
bjkramerumnedu opened this issue Dec 19, 2023 · 0 comments
Open

No alkalinity results in output file #45

bjkramerumnedu opened this issue Dec 19, 2023 · 0 comments

Comments

@bjkramerumnedu
Copy link

I'm having trouble figuring out how to export the results of calkulate. I tried using the following commands:

result = data.solve()
result.to_csv("result.csv")

And got the following results (see "results.csv"). It didn't actually calculate alkalinity for some reason.

I tried modifying my code to generate the data in an output file (see code below):

**#!/usr/bin/env python

import numpy as np
import os
import pandas as pd
import calkulate as calk

data = calk.read_csv("/home/sheikc/bjkramer/AlkalinityFiles/2022Metadata+Standards.csv").calkulate()
data.alkalinity # <== here are your alkalinity results
data.alkalinity.to_csv("/home/sheikc/bjkramer/AlkalinityFiles/GreatLakes2022Alkalinity_Calkulate.csv", index=False)**

And I just got an empty dataframe aside from the header name ("GreatLakes2022Alkalinity_Calkulate.csv").

I also keep getting the error that calkulate cannot find the standard files. I tried moving them to another directory separate from the titration files (see filepath in "2022Metadata+Standards.csv") thinking this would fix the issue and it didn't.

Could this be why I'm not getting results?

Whatever the issue is, I get the feeling it's a quick fix, but I'm not sure.

2022Metadata+Standards.csv
GreatLakes2022Alkalinity_Calkulate.csv
result.csv

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant