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

Evaluate_power_vs_trip_start_end_analysed_master breaks #17

Open
singhish opened this issue Feb 18, 2021 · 1 comment
Open

Evaluate_power_vs_trip_start_end_analysed_master breaks #17

singhish opened this issue Feb 18, 2021 · 1 comment

Comments

@singhish
Copy link

The above notebook breaks at

importlib.reload(eapv)

with the error:

NameError                                 Traceback (most recent call last)
<ipython-input-15-4bb5e430e88d> in <module>
----> 1 importlib.reload(eapv)

NameError: name 'eapv' is not defined
@shankari
Copy link
Contributor

true dat.

Seeing where eapv is used

    "av_la = eapv.create_analysed_view(pv_la, \"http://localhost:8080\", \"analysis/recreated_location\", \"analysis/cleaned_trip\", \"analysis/cleaned_section\")\n",
    "av_sj = eapv.create_analysed_view(pv_sj, \"http://localhost:8080\", \"analysis/recreated_location\", \"analysis/cleaned_trip\", \"analysis/cleaned_section\")\n",
    "av_ucb = eapv.create_analysed_view(pv_ucb, \"http://localhost:8080\", \"analysis/recreated_location\", \"analysis/cleaned_trip\", \"analysis/cleaned_section\")\n",

and searching for it finds

$ grep -r create_analysed_view emeval/
emeval//analysed/phone_view.py:def create_analysed_view(input_view, analysis_datastore, location_key, trip_key, section_key):

So the fix is to import emeval.analysed.phone_view as eapv at the top.

Having said that, the notebook will not work unless you have run the analysis pipeline on the local e-mission-server, since it expects to load analysis results.

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

2 participants