Skip to content

Instantly share code, notes, and snippets.

@Bjwebb
Bjwebb / gist:1ca1eb0ab50bd6578487
Created April 14, 2015 09:59
Output of salt-call -l debug --local state.sls gitbug (when run first time) https://github.com/saltstack/salt/issues/22514
[DEBUG ] Reading configuration from /etc/salt/minion
[DEBUG ] Using cached minion ID from /etc/salt/minion_id: winslow
[DEBUG ] Configuration file path: /etc/salt/minion
[DEBUG ] Reading configuration from /etc/salt/minion
[DEBUG ] The `dmidecode` binary is not available on the system. GPU grains will not be available.
[DEBUG ] LazyLoaded jinja.render
[DEBUG ] LazyLoaded yaml.render
[DEBUG ] LazyLoaded jinja.render
[DEBUG ] LazyLoaded yaml.render
[DEBUG ] LazyLoaded state.sls
@Bjwebb
Bjwebb / gist:c9676fa89a2e2e668fe4
Created April 14, 2015 09:56
Output of salt-call -l debug --local state.sls gitbug https://github.com/saltstack/salt/issues/22514
[DEBUG ] Reading configuration from /etc/salt/minion
[DEBUG ] Using cached minion ID from /etc/salt/minion_id: winslow
[DEBUG ] Configuration file path: /etc/salt/minion
[DEBUG ] Reading configuration from /etc/salt/minion
[DEBUG ] The `dmidecode` binary is not available on the system. GPU grains will not be available.
[DEBUG ] LazyLoaded jinja.render
[DEBUG ] LazyLoaded yaml.render
[DEBUG ] LazyLoaded jinja.render
[DEBUG ] LazyLoaded yaml.render
[DEBUG ] LazyLoaded state.sls

Keybase proof

I hereby claim:

  • I am Bjwebb on github.
  • I am bjwebb (https://keybase.io/bjwebb) on keybase.
  • I have a public key whose fingerprint is 155B 439A E5B0 5DE9 7ACC EC59 4318 C415 770F 4EB1

To claim this, I am signing this object:

~/code/opencontracting/flattening-ocds(master)» ./flatten-ocds unflatten in/errors.xlsx -f xlsx -m Sheet1 -o out/error.json
/home/bjwebb/code/opencontracting/flattening-ocds/flattening_ocds/input.py:199: UserWarning: Non-integer value "notanint" found in integer column, returning as string instead.
warn('Non-integer value "{}" found in integer column, returning as string instead.'.format(value))
/home/bjwebb/code/opencontracting/flattening-ocds/flattening_ocds/input.py:193: UserWarning: Non-numeric value "notanumber" found in number column, returning as string instead.
warn('Non-numeric value "{}" found in number column, returning as string instead.'.format(value))

Location: Summary of changes in IATI Standard version 1.04

See also: Overview

Overview

In order to improve the quality and effectiveness of geolocation data a

from lxml import etree
root = etree.parse('csvconv.xml')
for activity in root.findall('iati-activity'):
for transaction in activity.findall('transaction'):
if transaction.find('value').text is None:
activity.remove(transaction)
root.write('transactions_removed.xml')
aai-998:Content-Encoding: gzip
aai-af:Content-Encoding: gzip
aai-bd:Content-Encoding: gzip
aai-in:Content-Encoding: gzip
aai-mm:Content-Encoding: gzip
aai-mw:Content-Encoding: gzip
aai-ng:Content-Encoding: gzip
aai-np:Content-Encoding: gzip
aai-tz:Content-Encoding: gzip
aai-ug:Content-Encoding: gzip
.. list-table::
:header-rows: 1
* - Context
- Element/Attribute
- Requirement
- Tested if
.. list-table::
:header-rows: 1
* - Context
- Element/Attribute
- Requirement
- Tested if
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" version="1.03">
<xsd:annotation>
<xsd:documentation xml:lang="en">
International Aid Transparency Initiative: Activity-Information Schema
Release 1.03, 2012-09-06
NOTE: the xml.xsd and iati-common.xsd schemas must be in the
same directory as this one.