ncar-xdev / ecgtools

ESM Catalog Generation tools
https://ecgtools.readthedocs.io
Apache License 2.0
9 stars 11 forks source link

We need to update our documentation for the path argument #143

Closed mgrover1 closed 1 year ago

mgrover1 commented 1 year ago

What happened?

As of the latest versions of ecgtools, the input for path is a list of strings. This is not clear in the docs.

What did you expect to happen?

We should have examples that line up with the validation.

Minimal Complete Verifiable Example

ecgtools.Builder(paths=['some_path'])

Relevant log output

No response

Anything else we need to know?

No response

Thomas-Moore-Creative commented 1 year ago

Aha! I'm following along here ( use a custom parser ) and was getting confused as heck by errors. So API changes haven't filtered through the docs yet? BTW - fully understand how hard it is to keep useful packages rolling so, no judgement. Thanks for ecgtools !

mgrover1 commented 1 year ago

Thanks for the reminder here - this has not been reflected in the docs. A PR is welcome :)

Thomas-Moore-Creative commented 1 year ago

@mgrover1 - does one really want a PR from someone who is just now trying to figure out how the basics of intake, intake-esm, & ecgtools works? =)

Also - thanks for being responsive!

mgrover1 commented 1 year ago

Absolutely! Happy to provide feedback - please let me know if you have any questions about the process.

I believe this notebook is the one that will need to be updated.

Thomas-Moore-Creative commented 1 year ago

NB: I'm working on Australian HPC so I'm not following the example exactly as I don't have GLADE access. But will give it a go, thanks @mgrover1

Thomas-Moore-Creative commented 1 year ago

@mgrover1 I made two very, very simple syntax changes that allowed me to run these lines in my workflow ( where before they failed )

b = Builder(['/glade/p/cesm/amwg/amwg_diagnostics/obs_data'])

b.build(parsing_func = parse_amwg_obs)

As noted I can't run the GLADE based code.

PR subbed.