Commit 69a7bbb0 authored by Romain Creuzenet's avatar Romain Creuzenet

rapport part 3

parent e5246f65
......@@ -2,7 +2,7 @@
<project version="4">
<component name="ChangeListManager">
<list default="true" id="dec891dc-2fad-4291-af33-64d4fd64029d" name="Default Changelist" comment="">
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" 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" />
</list>
<option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
......@@ -25,8 +25,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="439">
<caret line="296" column="14" selection-start-line="296" selection-start-column="14" selection-end-line="296" selection-end-column="14" />
<state relative-caret-position="-3380">
<caret line="163" column="51" selection-start-line="163" selection-start-column="51" selection-end-line="163" selection-end-column="51" />
<folding>
<element signature="e#45#107#0" expanded="true" />
</folding>
......@@ -251,8 +251,8 @@
</entry>
<entry file="file://$PROJECT_DIR$/main.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="439">
<caret line="296" column="14" selection-start-line="296" selection-start-column="14" selection-end-line="296" selection-end-column="14" />
<state relative-caret-position="-3380">
<caret line="163" column="51" selection-start-line="163" selection-start-column="51" selection-end-line="163" selection-end-column="51" />
<folding>
<element signature="e#45#107#0" expanded="true" />
</folding>
......
No preview for this file type
......@@ -161,18 +161,18 @@ class Manager:
plt.plot(ts, label=attr)
plt.title("Donnees de {} pour la station : {}".format(attr, station))
plt.legend()
path = os.path.join(DIR_OUT, 'graph_{}_{}.png'.format(station, attr))
path = os.path.join(DIR_OUT, 'objectif_1', 'graph_{}_{}.png'.format(station, attr))
plt.savefig(path)
plt.show()
res = stm.tsa.seasonal_decompose(ts, freq=15, extrapolate_trend='freq')
res.plot()
path = os.path.join(DIR_OUT, 'decompose_{}_{}.png'.format(station, attr))
path = os.path.join(DIR_OUT, 'objectif_1', 'decompose_{}_{}.png'.format(station, attr))
plt.savefig(path)
plt.show()
stm_graphs.tsaplots.plot_acf(ts, lags=30)
path = os.path.join(DIR_OUT, 'acf_{}_{}.png'.format(station, attr))
path = os.path.join(DIR_OUT, 'objectif_1', 'acf_{}_{}.png'.format(station, attr))
plt.savefig(path)
plt.show()
......@@ -217,7 +217,7 @@ class Manager:
plt.title(title)
for elt in ' :-':
title = title.replace(elt, '_')
path = os.path.join(DIR_OUT, title.lower() + '.png')
path = os.path.join(DIR_OUT, 'objectif_2', title.lower() + '.png')
plt.savefig(path)
plt.show()
......@@ -369,7 +369,7 @@ class Manager:
plt.title(title)
for elt in ' :-':
title = title.replace(elt, '_')
path = os.path.join(DIR_OUT, title.lower() + '.png')
path = os.path.join(DIR_OUT, 'objectif_3', title.lower() + '.png')
plt.savefig(path)
plt.show()
......
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