Skip to content

Commit

Permalink
fixing old journal
Browse files Browse the repository at this point in the history
trying to fix and update with new functions, needs more work
  • Loading branch information
heathermirletz committed Apr 10, 2024
1 parent 4a3d283 commit f7d1621
Show file tree
Hide file tree
Showing 6 changed files with 6,550 additions and 3,187 deletions.
34 changes: 17 additions & 17 deletions docs/publications/(dev)10c-EnergyAnalysis_Silver_Demand.html

Large diffs are not rendered by default.

34 changes: 17 additions & 17 deletions docs/publications/(dev)10c-EnergyAnalysis_Silver_Demand.ipynb

Large diffs are not rendered by default.

22 changes: 11 additions & 11 deletions docs/publications/(dev)10c-EnergyAnalysis_Silver_Demand.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,13 @@
os.makedirs(testfolder)


# In[3]:
# In[2]:


print(cwd)


# In[2]:
# In[3]:


#print("Working on a ", platform.system(), platform.release())
Expand All @@ -44,14 +44,14 @@
#
# We pull in the output dataframes from journal 10a and do graphing here.

# In[7]:
# In[4]:


cc_13scen_yearly_dataOut = pd.read_csv(os.path.join(inputfolder, 'EnergyAnalysis','Deploy_MirletzLinear','cc_13scen_yearly.csv'),
index_col = 0)


# In[19]:
# In[5]:


silver_annual_demand = cc_13scen_yearly_dataOut.filter(like='VirginStock_silver') #tonnes
Expand All @@ -61,7 +61,7 @@
silver_annual_demand_shj = silver_annual_demand.filter(like='r_SHJ')


# In[36]:
# In[6]:


plt.plot(silver_annual_demand_pvice, color='black', label='Baseline')
Expand All @@ -74,15 +74,15 @@
plt.legend()


# In[40]:
# In[8]:


plt.bar(silver_annual_demand_shj.index, silver_annual_demand_shj.iloc[:,0], color='tab:red', label='SHJ')
plt.bar(silver_annual_demand_topcon.index, silver_annual_demand_topcon.iloc[:,0], color='tab:orange', label='TOPCon')
plt.bar(silver_annual_demand_pvice.index, silver_annual_demand_pvice.iloc[:,0], color='black', label='Baseline')
plt.bar(silver_annual_demand_perc.index, silver_annual_demand_perc.iloc[:,0], color='tab:blue', label='PERC')
plt.bar(silver_annual_demand_shj.index, silver_annual_demand_shj.iloc[:2051,0], color='tab:red', label='SHJ')
plt.bar(silver_annual_demand_topcon.index, silver_annual_demand_topcon.iloc[:2051,0], color='tab:orange', label='TOPCon')
plt.bar(silver_annual_demand_pvice.index, silver_annual_demand_pvice.iloc[:2051,0], color='black', label='Baseline')
plt.bar(silver_annual_demand_perc.index, silver_annual_demand_perc.iloc[:2051,0], color='tab:blue', label='PERC')
plt.ylim(0,)
plt.xlim(2000,2100)
plt.xlim(2000,2050)
plt.ylabel('Virgin Material Demand for Silver\n[Metric Tonnes]')
plt.legend()

Expand Down
Loading

0 comments on commit f7d1621

Please sign in to comment.