xarray-contrib / xarray-simlab

Xarray extension and framework for computer model simulations
http://xarray-simlab.readthedocs.io
BSD 3-Clause "New" or "Revised" License
73 stars 9 forks source link

Global variables (model-wise implicit linking) #160

Closed benbovy closed 4 years ago

benbovy commented 4 years ago
benbovy commented 4 years ago

I'm struggling to find a good name for global references, which is currently xs.global_ref(). I wish I could use xs.global(), but global is a reserved keyword. Other candidates, although none of them really convince me:

Any idea / opinion @eho-tacc?

ethho commented 4 years ago

Any idea / opinion @eho-tacc?

Ah, right. I suppose one could use an abbreviation like xs.glob, though this is still pretty elusive (and could be conflated with glob.glob). I'll keep thinking about this, but for now global_ref sounds best.

benbovy commented 4 years ago

I suppose one could use an abbreviation like xs.glob, though this is still pretty elusive (and could be conflated with glob.glob)

Yeah I'd like to avoid abuse of wildcard characters in global names 😃

Let's stick with global_ref for now.

ethho commented 3 years ago

Thanks, @benbovy! Pretty busy this week, but I'll get around to testing this in my app ASAP