Skip to content

Feature updates and new README#3

Open
Bob620 wants to merge 1 commit into
all-umass:masterfrom
Bob620:feature
Open

Feature updates and new README#3
Bob620 wants to merge 1 commit into
all-umass:masterfrom
Bob620:feature

Conversation

@Bob620

@Bob620 Bob620 commented Sep 19, 2019

Copy link
Copy Markdown

feat(restart_server.sh) Defaults to python3 rather than python
feat(README.md) Updated readme due to workflow update
feat(backend/dataset_loaders.py) Operates with a blank dataset file if no pre-defined datasets exist

feat(readme) updated readme to current workflow
feat(restart_server.sh) changed to use python3 by default
Comment thread README.md

mkdir superman
cd superman
git clone https://github.com/all-umass/superman-web

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it may be easier to keep the two repositories separate:

pip3 install git+https://github.com/all-umass/superman.git
git clone https://github.com/all-umass/superman-web
cd superman-web
pip3 install matplotlib tornado==4.4.2 pyyaml h5py pandas pywt sklearn

Comment thread README.md
### 1: Install Dependencies

pip install --only-binary :all: superman matplotlib tornado pyyaml h5py pandas
While 2.7 and 3.4+ are supported, I've only tested with 3.4+

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Our primary deployment is still using 2.7, so both are tested.

Comment thread README.md
Several Python packages are needed, available from PyPI via `pip`:

For running tests, you'll want:
pip3 install matplotlib tornado==4.4.2 pyyaml h5py pandas pywt sklearn

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ideally we should put these in a requirements.txt file, but that can come later.

for k, cls, mname in info.get('metadata', [])]
if info.get('vector', False):
loader_fn = _generic_vector_loader(meta_mapping)
if entries:

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To avoid indenting everything here, you can do:

if not entries:
  continue

Comment thread restart_server.sh
geoiplookup $1 | sed 1d | cut -d: -f2 | cut -d' ' -f3- | cut -d, -f2,3 | xargs
geoiplookup $1 | sed 1d | cut -d: -f2 | \
cut -d' ' -f3- | cut -d, -f2,3 | \
tr "'" '^' | xargs

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What's the replacement of ' with ^ for?

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

Successfully merging this pull request may close these issues.

2 participants