Commit 9a35b5ab authored by Romain Creuzenet's avatar Romain Creuzenet

Photo rapport

parent c73d57a3
/__pycache__/*
/env_nf26/*
*/.*
*.~lock.*
/out
/out/*
......@@ -3,9 +3,9 @@
<component name="ChangeListManager">
<list default="true" id="dec891dc-2fad-4291-af33-64d4fd64029d" name="Default Changelist" comment="">
<change beforePath="$PROJECT_DIR$/.gitignore" beforeDir="false" afterPath="$PROJECT_DIR$/.gitignore" afterDir="false" />
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/.~lock.Rapport.odt#" beforeDir="false" afterPath="$PROJECT_DIR$/.~lock.Rapport.odt#" afterDir="false" />
<change beforePath="$PROJECT_DIR$/Rapport.odt" beforeDir="false" afterPath="$PROJECT_DIR$/Rapport.odt" afterDir="false" />
<change beforePath="$PROJECT_DIR$/main.py" beforeDir="false" afterPath="$PROJECT_DIR$/main.py" afterDir="false" />
<change beforePath="$PROJECT_DIR$/parameters.py" beforeDir="false" afterPath="$PROJECT_DIR$/parameters.py" afterDir="false" />
</list>
<option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
<option name="SHOW_DIALOG" value="false" />
......@@ -27,8 +27,8 @@
<file pinned="false" current-in-tab="true">
<entry file="file://$PROJECT_DIR$/main.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="589">
<caret line="205" column="36" selection-start-line="205" selection-start-column="36" selection-end-line="205" selection-end-column="36" />
<state relative-caret-position="361">
<caret line="136" column="18" lean-forward="true" selection-start-line="136" selection-start-column="18" selection-end-line="136" selection-end-column="18" />
<folding>
<element signature="e#45#75#0" expanded="true" />
</folding>
......@@ -235,8 +235,8 @@
</entry>
<entry file="file://$PROJECT_DIR$/main.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="589">
<caret line="205" column="36" selection-start-line="205" selection-start-column="36" selection-end-line="205" selection-end-column="36" />
<state relative-caret-position="361">
<caret line="136" column="18" lean-forward="true" selection-start-line="136" selection-start-column="18" selection-end-line="136" selection-end-column="18" />
<folding>
<element signature="e#45#75#0" expanded="true" />
</folding>
......
,romain,romain-GP73-Leopard-8RD,16.06.2019 02:48,file:///home/romain/.config/libreoffice/4;
\ No newline at end of file
No preview for this file type
......@@ -126,20 +126,20 @@ class Manager:
plt.plot(ts, label=attr)
plt.title("Donnees de {} pour la station : {}".format(attr, station))
plt.legend()
plt.show()
path = os.path.join(DIR_OUT, 'graph_{}_{}.png'.format(station, attr))
plt.savefig(path)
plt.show()
res = stm.tsa.seasonal_decompose(ts, freq=15, extrapolate_trend='freq')
res.plot()
plt.show()
path = os.path.join(DIR_OUT, 'decompose_{}_{}.png'.format(station, attr))
plt.savefig(path)
plt.show()
stm_graphs.tsaplots.plot_acf(ts, lags=30)
plt.show()
path = os.path.join(DIR_OUT, 'acf_{}_{}.png'.format(station, attr))
plt.savefig(path)
plt.show()
def map(self):
self.table = "TABLE_TIME"
......@@ -174,11 +174,11 @@ class Manager:
title = "Map {} du {}".format(attr, datetime(*list(date)).strftime('%Y-%m-%d %H:%M'))
plt.title(title)
plt.show()
for elt in ' :-':
title = title.replace(elt, '_')
path = os.path.join(DIR_OUT, title.lower() + '.png')
plt.savefig(path)
plt.show()
# If date is wrong, show some dates for this day
if not date_ok:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment