Coder Social home page Coder Social logo

data-catalog's People

Contributors

matt-long avatar

Watchers

 avatar  avatar  avatar

data-catalog's Issues

append method

There should be an append method that enables extending a catalog without having to wholly recreate it. Once files are in the Dataframe, it would be easy to eliminate duplicates.

@andersy005: have you considered this?

yaml error after switching to conda environment analysis from NCAR-pangeo-tutorial

I've switched to using the conda environment analysis from NCAR-pangeo-tutorial and am now getting the following error when I try to use build_catalog:

Traceback (most recent call last):
  File "./build_catalog.py", line 5, in <module>
    data_catalog.build_catalog('expr_metadata.yaml', clobber=True)
  File "/gpfs/fs1/work/klindsay/analysis/CESM2_coup_carb_cycle_JAMES/data_catalog.py", line 87, in build_catalog
    catalog_definition = yaml.safe_load(f)
  File "/glade/work/klindsay/miniconda3/envs/analysis/lib/python3.7/site-packages/yaml/__init__.py", line 162, in safe_load
    return load(stream, SafeLoader)
  File "/glade/work/klindsay/miniconda3/envs/analysis/lib/python3.7/site-packages/yaml/__init__.py", line 114, in load
    return loader.get_single_data()
  File "/glade/work/klindsay/miniconda3/envs/analysis/lib/python3.7/site-packages/yaml/constructor.py", line 43, in get_single_data
    return self.construct_document(node)
  File "/glade/work/klindsay/miniconda3/envs/analysis/lib/python3.7/site-packages/yaml/constructor.py", line 52, in construct_document
    for dummy in generator:
  File "/glade/work/klindsay/miniconda3/envs/analysis/lib/python3.7/site-packages/yaml/constructor.py", line 399, in construct_yaml_seq
    data.extend(self.construct_sequence(node))
  File "/glade/work/klindsay/miniconda3/envs/analysis/lib/python3.7/site-packages/yaml/constructor.py", line 122, in construct_sequence
    for child in node.value]
  File "/glade/work/klindsay/miniconda3/envs/analysis/lib/python3.7/site-packages/yaml/constructor.py", line 122, in <listcomp>
    for child in node.value]
  File "/glade/work/klindsay/miniconda3/envs/analysis/lib/python3.7/site-packages/yaml/constructor.py", line 92, in construct_object
    data = constructor(self, node)
  File "/glade/work/klindsay/miniconda3/envs/analysis/lib/python3.7/site-packages/yaml/constructor.py", line 420, in construct_undefined
    node.start_mark)
yaml.constructor.ConstructorError: could not determine a constructor for the tag 'tag:yaml.org,2002:python/tuple'
  in "./lib_data_catalog/cesm_definitions.yml", line 22, column 7

The full path of ./lib_data_catalog/cesm_definitions.yml is /glade/work/klindsay/analysis/CESM2_coup_carb_cycle_JAMES/lib_data_catalog/cesm_definitions.yml. The offending lines appear to be

replacements:
  freq:
    - !!python/tuple [monthly, month_1]
    - !!python/tuple [daily, day_1]
    - !!python/tuple [yearly, year_1]

The version of yaml in the conda environment is 0.1.7.

Any suggestions on how to work around this error?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.