Code Monkey home page Code Monkey logo

Comments (4)

tomkralidis avatar tomkralidis commented on July 28, 2024

@geofbaum thanks for the report. I am unable to reproduce. The following works for me:

import yaml

from pygeometa.core import render_template

with open('sample.yml') as fh:
    d = yaml.load(fh)

    print(d['identification']['title_en'])

    print(render_template(d, schema='iso19139'))

    d['identification']['title_en'] = 'another title'

    print(d['identification']['title_en'])

    print(render_template(d, schema='iso19139'))

from pygeometa.

geofbaum avatar geofbaum commented on July 28, 2024

@tomkralidis Thanks for your reply, when I copy and paste your code into the same JupyterLab it works even with me subbing out 'another title' for the extracted title that I was attempting to use before. So there's something going on I assume somewhere with my code. I'll start adding each section that I want to change to your example code line by line and see where the issue is coming from and report back.

Thanks again.

from pygeometa.

geofbaum avatar geofbaum commented on July 28, 2024

Well I found it, and it's my error and my fault for not triple checking my code. I was passing a url value in the distribution section directly to a url section like d['distribution']['url'] and not to a section like d['distribution']['wms']['url']. Sorry again @tomkralidis !

from pygeometa.

tomkralidis avatar tomkralidis commented on July 28, 2024

@geofbaum all good - thanks for following up and good luck!

from pygeometa.

Related Issues (20)

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.