-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #21 from TheCyberHead/heat
Fix Heatmap
- Loading branch information
Showing
14 changed files
with
264 additions
and
115 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import numpy as np | ||
import seaborn as sns | ||
import uuid | ||
|
||
def generate_heatmap(arr: list): | ||
unique_id = uuid.uuid1() | ||
ax = sns.heatmap(arr, cmap='YlGnBu') | ||
ax.figure.savefig('testingsea.png') |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,24 @@ | ||
import API_BASE from './URL' | ||
import React from 'react'; | ||
|
||
async function getStrategies(strategy){ | ||
let response = await fetch(`${API_BASE}/get_strategies`) | ||
let data = await response.json() | ||
return data | ||
} | ||
|
||
async function getStrategy(strategy){ | ||
let response = await fetch(`${API_BASE}/get_strategy/${strategy}`) | ||
let data = await response.json() | ||
return data | ||
} | ||
class Strategies extends React.Component { | ||
constructor(props){ | ||
super(props); | ||
this.state = { | ||
load: true | ||
} | ||
} | ||
|
||
async function getStrategyEdit(name){ | ||
let response = await fetch(`${API_BASE}/get_strategy_edit/${name}`) | ||
let data = await response.json() | ||
return data | ||
} | ||
componentDidMount(){ | ||
this.props.updateKey('2') | ||
} | ||
|
||
async function loadStrategiesEditor(){ | ||
let response = await fetch(`${API_BASE}/get_strategies_edit`) | ||
let data = await response.json() | ||
return data | ||
render(){ | ||
return( | ||
<React.Fragment> | ||
<h1>Strategies</h1> | ||
</React.Fragment> | ||
) | ||
} | ||
} | ||
|
||
export { | ||
getStrategies, | ||
getStrategy, | ||
getStrategyEdit, | ||
loadStrategiesEditor | ||
}; | ||
export default Strategies; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,45 @@ | ||
amqp==2.5.2 | ||
Backtesting==0.1.7 | ||
billiard==3.6.3.0 | ||
bokeh==2.0.2 | ||
celery==4.4.2 | ||
certifi==2019.11.28 | ||
cffi==1.14.0 | ||
chardet==3.0.4 | ||
click==7.1.2 | ||
cryptography==2.9.2 | ||
Flask==1.1.2 | ||
Flask-Cors==3.0.8 | ||
idna==2.8 | ||
importlib-metadata==1.6.0 | ||
itsdangerous==1.1.0 | ||
Jinja2==2.11.2 | ||
kombu==4.6.8 | ||
lxml==4.5.0 | ||
MarkupSafe==1.1.1 | ||
multitasking==0.0.9 | ||
numpy==1.18.1 | ||
setuptools | ||
peewee | ||
packaging==20.3 | ||
pandas==1.0.3 | ||
pandas-datareader==0.8.1 | ||
peewee==3.13.3 | ||
Pillow==7.1.2 | ||
pycparser==2.20 | ||
pydantic==1.4 | ||
PyMySQL==0.9.3 | ||
pyOpenSSL==19.1.0 | ||
pyparsing==2.4.7 | ||
python-dateutil==2.8.1 | ||
pytz==2020.1 | ||
PyYAML==5.3.1 | ||
requests==2.22.0 | ||
six==1.14.0 | ||
SQLAlchemy==1.3.17 | ||
starlette==0.12.9 | ||
tornado==6.0.4 | ||
typing-extensions==3.7.4.2 | ||
urllib3==1.25.8 | ||
flask | ||
flask_cors | ||
pyopenssl | ||
sqlalchemy | ||
pymysql | ||
vine==1.3.0 | ||
Werkzeug==1.0.1 | ||
yfinance==0.1.54 | ||
zipp==3.1.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import API_BASE from './URL' | ||
|
||
async function getHeatMapData(id){ | ||
let response = await fetch(`${API_BASE}/heatmap/${id}`) | ||
let data = await response.json() | ||
return data | ||
} | ||
|
||
|
||
export default getHeatMapData; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import API_BASE from './URL' | ||
|
||
async function getHeatMaps(){ | ||
let response = await fetch(`${API_BASE}/heatmap`) | ||
let data = await response.json() | ||
return data | ||
} | ||
|
||
|
||
export default getHeatMaps; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,5 +12,4 @@ async function submitHeatmap(heatmap){ | |
return data | ||
} | ||
|
||
|
||
export default submitHeatmap; |
Oops, something went wrong.