Skip to content

Instantly share code, notes, and snippets.

This file has been truncated, but you can view the full file.
{
"info": {
"parameters": {
"0": {
"label": "Proof of Stake Initialization Date",
"parameter": "date_pos",
"points": [
"2021-12-1",
"2022-3-1",
"2022-6-1",
anyio==2.0.2
apparmor==3.0.1
appdirs==1.4.4
argon2-cffi==20.1.0
asn1crypto==1.4.0
async-generator==1.10
attrs==20.3.0
Babel==2.9.0
backcall==0.2.0
bleach==3.2.3
@rogervs
rogervs / drop_substes.py
Created November 28, 2020 14:29
Relates to cadCAD tutorial, lecture 7.3, 21:00 minutes in.
# Get system events and attribute index
df = (pd.DataFrame(system_events)
.assign(years=lambda df: df.timestep)
.assign(temperature_celsius=lambda df: df.temperature - 273)
.query('timestep > 0')
)
# Clean substeps
first_ind = (df.substep == 0) & (df.timestep == 0)