Skip to content

Bug in profile_CTD.ipynb #74

Description

@guillotp

I tested the profile_CTD notebook.

There are few minor bugs while using the bokeh module.
For instance:
p1 = figure(plot_width=420, plot_height=600)
should be now
p1 = figure(width=420, height=600)

But the main bug is for the instructions:
cfg = {
"TEMP": {
"global_range": {"minval": -2, "maxval": 40},
"gradient": {"threshold": 10.0},
"spike": {"threshold": 2.0},
"tukey53H": {"threshold": 1.5},
},
"PSAL": {
"global_range": {"minval": 0, "maxval": 41},
"gradient": {"threshold": 5.0},
"spike": {"threshold": 0.3},
"tukey53H": {"threshold": 1.0},
}
}
pqc = cotede.ProfileQC(data, cfg=cfg)

I have the error:
{
"name": "AssertionError",
"message": "",
"stack": "---------------------------------------------------------------------------
AssertionError Traceback (most recent call last)
Cell In[6], line 1
----> 1 pqc = cotede.ProfileQC(data, cfg=cfg)
2 # pqc = cotede.ProfileQC(data)

File ~/miniconda3/envs/ctds/lib/python3.10/site-packages/cotede/qc.py:68, in ProfileQC.init(self, input, cfg, saveauxiliary, verbose, attributes)
65 self.verbose = verbose
67 if attributes is None:
---> 68 assert (hasattr(input, 'attributes'))
69 assert (hasattr(input, 'keys')) and (len(input.keys()) > 0)
71 self.cfg = load_cfg(cfg)

AssertionError: "
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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