Uploaded image for project: 'Apache Open Climate Workbench (Retired)'
  1. Apache Open Climate Workbench (Retired)
  2. CLIMATE-964

tmp file location is broken on Windows for the simple_model_to_model_bias example

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 1.3.0
    • 1.4.0
    • examples
    • Windows

      Python 3.6.6

    Description

      The fix for CLIMATE 603 (https://github.com/markschn/climate/commit/75f8df695a17e0e13d40c1d1d8870ff6cf0a1ea2#diff-329d2a0265d3149483943c7713b5afe7) prepended /tmp to the file location for the temporary files being used in the example simple_model_to_model_bias.py.  This works in Linux but results in an error when running the sample in Windows.  This is unfortunate because it was the suggested example to try to get started with Open Climate Workbench.

      tempfile.gettempdir() can be used to get the optimal tmp directory regardless of operating system.

      Attachments

        Activity

          People

            lewismc Lewis John McGibbney
            markschnitzer Mark Schnitzer
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 24h
                24h
                Remaining:
                Remaining Estimate - 24h
                24h
                Logged:
                Time Spent - Not Specified
                Not Specified