Skip to content

Commit

Permalink
Merge pull request #44 from adybbroe/feature-add-instrument-to-plotfi…
Browse files Browse the repository at this point in the history
…lename

Make plot filename more complete, including the instrument name
  • Loading branch information
adybbroe committed Oct 17, 2019
2 parents e9a9442 + 978955b commit d3c13a1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions trollsched/drawing.py
@@ -1,11 +1,11 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-

# Copyright (c) 2018, 2019 Adam.Dybbroe
# Copyright (c) 2018 - 2019 Pytroll Community

# Author(s):

# Adam.Dybbroe <a000680@c20671.ad.smhi.se>
# Adam.Dybbroe <adam.dybbroe@smhi.se>

# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
Expand Down Expand Up @@ -165,8 +165,8 @@ def save_fig(pass_obj,
os.makedirs(directory)
filename = os.path.join(
directory,
(rise + pass_obj.satellite.name.replace(" ", "_") + "_" +
pass_obj.instrument.replace('/', '-') + "_" + fall + extension))
(rise + '_' + pass_obj.satellite.name.replace(" ", "_") + '_' + pass_obj.instrument.replace("/", "-") + '_' + fall + extension))


pass_obj.fig = filename
if not overwrite and os.path.exists(filename):
Expand Down

0 comments on commit d3c13a1

Please sign in to comment.