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
lpToken,crv_rewards_token,address,balance | |
0x50cf90b954958480b8df7958a9e965752f627124,0x9542ecd46f3e661e4a53ee63c0ab764196df1f8a,0x5dcc7ddd14112d79ee047f7c37cc581291b2c0c1,10.003975267861415 | |
0x50cf90b954958480b8df7958a9e965752f627124,0x9542ecd46f3e661e4a53ee63c0ab764196df1f8a,0xf59b324cb65258dc52b5db8ac4f991286603b7e1,5 | |
0x133d241f225750d2c92948e464a5a80111920331,0xfdbd847b7593ef0034c58258ad5a18b34ba6cb29,0xab4ae477899fd61b27744b4debe8990c66c81c22,850970.0118608696 |
We can make this file beautiful and searchable if this error is corrected: It looks like row 8 should actually have 4 columns, instead of 3. in line 7.
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
lpToken,crv_rewards_token,address,balance | |
0xa718042e5622099e5f0ace4e7122058ab39e1bbe,0x2cfa7bbc6311a3fc6adcee5ad9ac19b84187a2e0,0xe495d8c21bb0c4ab9a627627a4016df40c6daa74,497800.8147143413 | |
0xa718042e5622099e5f0ace4e7122058ab39e1bbe,0x2cfa7bbc6311a3fc6adcee5ad9ac19b84187a2e0,0xf6c75d85ef66d57339f859247c38f8f47133bd39,405744.292112094 | |
0x4fd4687ec38220f805b6363c3c1e52d0df3b5023,0x348bd45777d45af1935c761a778efa2f81abced7,0xeceda45ad3c57681c7e49b47072a014df54ee659,5693.5384034033 | |
0x4fd4687ec38220f805b6363c3c1e52d0df3b5023,0x348bd45777d45af1935c761a778efa2f81abced7,0xd83b065e0528922257c5c3b18d08d0f81e42bbcf,5033.1864767179 | |
0x4fd4687ec38220f805b6363c3c1e52d0df3b5023,0x348bd45777d45af1935c761a778efa2f81abced7,0xea13f4d577daa2a6025fa92773d1c9d85cacf423,4031.922336991521 | |
0x4fd4687ec38220f805b6363c3c1e52d0df3b5023,0x348bd45777d45af1935c761a778efa2f81abced7,0x1ced4e3900c73a54ed775ef2740a4e38ac5b54e2,1306.7502463097894 | |
0x4fd4687ec38220f805b6363c3c1e52d0df3b5023,0x348bd45777d45af1935c761a778efa2f81abced7,0x1229a70535ab7cf4 |
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
# The definitive guide to setup my Python workspace | |
# Author: Henrique Bastos <henrique@bastos.net> | |
PY3=3.8.5 | |
# PY2=2.7.16 | |
# PY3TOOLS="youtube-dl s3cmd fabric pytest" | |
# PY2TOOLS="rename mercurial" | |
VENVS=~/.ve | |
PROJS=~/workspace |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
partial_state_update_blocks = [ | |
{ | |
'policies': { | |
'policy1': policy_function_1, | |
'policy2': policy_function_2, | |
... | |
}, | |
'variables': { | |
'variable1': state_update_function_1, | |
'variable2': state_update_function_2, |
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
def function(params, step, sL, s, _input): | |
... | |
y = ... | |
x = ... | |
return (y, x) |
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
initial_conditions = { | |
'box_A': 11, | |
'box_B': 0 | |
} | |
config = Configuration(initial_state=initial_conditions, #dict containing variable names and initial values | |
partial_state_update_blocks=partial_state_update_blocks, #dict containing state update functions | |
sim_config=simulation_parameters #dict containing simulation parameters | |
) | |
executor = Executor(exec_context, [config]) | |
raw_result, tensor = executor.main() |
NewerOlder