Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiple tricky quote errors on 'Building my comparison part 1: datasets_setup.py' wiki page #42

Open
jypeter opened this issue Feb 9, 2021 · 0 comments

Comments

@jypeter
Copy link

jypeter commented Feb 9, 2021

I copy/pasted several example lines from the Building my comparison part 1: datasets_setup.py and atlas subdirectories page and got several tricky errors due to the fact that the page has simple quote (') characters that look just like regular single quotes but must have a non-standard encoding.

Example :

customname=' <= The left quote is vertical and is a good one BUT the RIGHT slightly slanted quote is a BAD one => ’

Example from the wiki page: (try to) see the mixed quotes for the frequency and clim_period keywords below:

   dict(project = 'IGCM_OUT',
        root = '/path_to_thredds',
        login = 'p86caub',
        model = 'IPSLCM6',
        simulation = 'CM605-LR-pdCtrl01',
        frequency = ’monthly',
        clim_period = ‘last_20Y'
       )

I ended up with this kind or return error

Traceback (most recent call last):
  File "../../main_C-ESM-EP.py", line 114, in <module>
    execfile(datasets_setup)
  File "/home/jypmce/C-ESM-EP/PMIP4_0k_ref_21_02_04/datasets_setup.py", line 217
SyntaxError: Non-ASCII character '\xe2' in file /home/jypmce/C-ESM-EP/PMIP4_0k_ref_21_02_04/datasets_setup.py on line 217, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant