Skip to content

No alkalinity results in output file #45

@bjkramerumnedu

Description

@bjkramerumnedu

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions