Skip to content

Commit

Permalink
Removed numpy from dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
ulises-jeremias committed Oct 9, 2023
1 parent d658535 commit e756a72
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions plot/scripts/create-venv.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,5 @@ fi

"${python_bin}" -m venv "${VENV}"
source "${VENV}/bin/activate"
"${python_bin}" -m pip install cython
"${python_bin}" -m pip install plotly numpy
"${python_bin}" -m pip install cython plotly
deactivate
3 changes: 1 addition & 2 deletions plot/scripts/plotter.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
import os
import json
import plotly.graph_objects as go
import numpy as np


def remove_key(d, key, empty_subkey=None):
Expand Down Expand Up @@ -113,7 +112,7 @@ def process_trace(trace):

# Flatten 'z' when dealing with 3D scatters.
if trace_type == 'scatter3d':
trace["z"] = np.array(trace["z"]).flatten()
trace["z"] = [item for sublist in trace["z"] for item in sublist]

return map_trace_type_to_plotly_object(trace_type)(trace)

Expand Down

0 comments on commit e756a72

Please sign in to comment.