Skip to content

pymagicc.run of MAGICC7 isn't generating dat_*.out #338

Description

@safiume

Describe the bug
Initial tests of magicc7 are failing. pymagicc.run running wine or wine64 crashes with a page fault on read access.
If I try to set out_concentrations, or out_temperature or out_forcing magicc crashes.

I can disable "out_concentrations" : 1, and parameters.out does successfully get written to disk, however, there are nonprintable characters also being written.

I'm creating a MAGICCData object of SSP245_EMMS.SCEN7 then having pymagicc.run run that verbosely and write out either temperature and parameters.out or just parameters.out.

Failing Test
pymagicc.run -> wine64, magicc.exe

Expected behavior

Valid Magiccdata/openscm of the calculated model output from SSP245, from SSP245_EMMS.SCEN7.

Screenshots

The full output of jupyter notebook cells is here
I've uploaded PARAMETERS.OUT for this failure.

System:
MacOS 10.13.6
python 3.7.4 (v3.7.4:e09359112e, Jul 8 2019, 14:54:52)
pymagicc 2.1.3

For debugging, I changed core.py to run wine64 binary when running version 7.

CalledProcessError: Command '['wine64', '/var/folders/w3/f4nkvkvd3b37ylsg3t44w6cw0000gn/T/pymagicc-4dfaf3l8/run/magicc.exe', '--verbose']' returned non-zero exit status 5.
Additional context
With pymagicc 2.1.3 I'm able to get valid magicc6 output.
image

I did notice the msdos \r\n weren't included in the main MAG*CFG files.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions