We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
load_json()
The exercise "Add an additional datasource" is broken:
https://carpentries-incubator.github.io/python-intermediate-development/33-code-decoupling-abstractions/index.html#exercise-add-an-additional-datasource
It refers to a function load_json that is missing from the models.py. This is the function:
load_json
models.py
def load_json(filename): """Load a numpy array from a JSON document. Expected format: [ { observations: [0, 1] }, { observations: [0, 2] } ] :param filename: Filename of CSV to load """ with open(filename, 'r', encoding='utf-8') as file: data_as_json = json.load(file) return [np.array(entry['observations']) for entry in data_as_json]
The text was updated successfully, but these errors were encountered:
Fix carpentries-incubator#408: Exercise "Add an additional datasource…
7214c9b
…" refers to missing load_json() function
See suggested fix here: esciencecenter-digital-skills@7214c9b
Sorry, something went wrong.
Duplicate of #366 (but maybe we should keep this one, since it has a proposed solution)
No branches or pull requests
The exercise "Add an additional datasource" is broken:
https://carpentries-incubator.github.io/python-intermediate-development/33-code-decoupling-abstractions/index.html#exercise-add-an-additional-datasource
It refers to a function
load_json
that is missing from themodels.py
. This is the function:The text was updated successfully, but these errors were encountered: