You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@climate.apache.org by "Lewis John McGibbney (JIRA)" <ji...@apache.org> on 2019/02/01 18:51:00 UTC

[jira] [Comment Edited] (CLIMATE-964) tmp file location is broken on Windows for the simple_model_to_model_bias example

    [ https://issues.apache.org/jira/browse/CLIMATE-964?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16758088#comment-16758088 ] 

Lewis John McGibbney edited comment on CLIMATE-964 at 2/1/19 6:50 PM:
----------------------------------------------------------------------

I am getting consistent 404 issues with multiple samples in the examples and in the browser.  Are the sample files still here:

FILE_LEADER = "http://zipper.jpl.nasa.gov/dist/"

These are from [multi_model_evaluation.py|https://github.com/apache/climate/blob/master/examples/multi_model_evaluation.py]:

FILE_1 = "AFRICA_KNMI-RACMO2.2b_CTL_ERAINT_MM_50km_1989-2008_pr.nc"
FILE_2 = "AFRICA_UCT-PRECIS_CTL_ERAINT_MM_50km_1989-2008_pr.nc"

Thanks.

Mark




was (Author: markschnitzer):
I am getting consistent 404 issues with multiple samples in the examples and in the browser.  Are the sample files still here:

FILE_LEADER = "http://zipper.jpl.nasa.gov/dist/"

These are from multi_model_evaluation.py:

FILE_1 = "AFRICA_KNMI-RACMO2.2b_CTL_ERAINT_MM_50km_1989-2008_pr.nc"
FILE_2 = "AFRICA_UCT-PRECIS_CTL_ERAINT_MM_50km_1989-2008_pr.nc"

Thanks.

Mark



> tmp file location is broken on Windows for the simple_model_to_model_bias example
> ---------------------------------------------------------------------------------
>
>                 Key: CLIMATE-964
>                 URL: https://issues.apache.org/jira/browse/CLIMATE-964
>             Project: Apache Open Climate Workbench
>          Issue Type: Bug
>          Components: examples
>    Affects Versions: 1.3.0
>         Environment: Windows
> Python 3.6.6
>            Reporter: Mark Schnitzer
>            Assignee: Lewis John McGibbney
>            Priority: Minor
>              Labels: windows
>             Fix For: 1.4.0
>
>   Original Estimate: 24h
>  Remaining Estimate: 24h
>
> 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.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)