Skip to content

Commit

Permalink
Taxonomy 09-20-19 Update
Browse files Browse the repository at this point in the history
  • Loading branch information
shelcrow committed Oct 31, 2019
1 parent 8d05a32 commit fab2f21
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 10 deletions.
Binary file modified dist-cli/Linux/ob
Binary file not shown.
Binary file removed dist-cli/Mac/ob
Binary file not shown.
Binary file removed dist-cli/Windows/ob.exe
Binary file not shown.
16 changes: 8 additions & 8 deletions oblib/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@

XML_NS = {"xbrldi:": "{http://xbrl.org/2006/xbrldi}",
"link:": "{http://www.xbrl.org/2003/linkbase}",
"solar:": "{http://xbrl.us/Solar/2019-07-31/solar}",
"solar:": "{http://xbrl.us/Solar/2019-09-20/solar}",
"dei:": "{http://xbrl.sec.gov/dei/2014-01-31}",
"us-gaap:": "{http://fasb.org/us-gaap/2017-01-31}"}

Expand All @@ -46,9 +46,9 @@

GAAP_NS = "{http://fasb.org/us-gaap/2017-01-31}"

SOLAR_NS = "{http://xbrl.us/Solar/2019-07-31/solar}"
SOLAR_NS = "{http://xbrl.us/Solar/2019-09-20/solar}"

TAXONOMY_ALL_FILENAME = "solar_all_2019-07-31_def.xml"
TAXONOMY_ALL_FILENAME = "solar_all_2019-09-20_def.xml"

ROLE_DOCUMENTATION = "http://www.xbrl.org/2003/role/documentation"

Expand All @@ -63,17 +63,17 @@
"xmlns:xsi": "http://www.w3.org/2001/XMRLSchema-instance",
"xmlns:units": "http://www.xbrl.org/2009/utr",
"xmlns:xbrldi": "http://xbrl.org/2006/xbrldi",
"xmlns:solar": "http://xbrl.us/Solar/2019-07-31/solar"
"xmlns:solar": "http://xbrl.us/Solar/2019-09-20/solar"
}

TAXONOMY_NAME = "https://raw.githubusercontent.com/SunSpecOrangeButton/solar-taxonomy/master/core/solar_all_2019-07-31.xsd"
TAXONOMY_NAME = "https://raw.githubusercontent.com/SunSpecOrangeButton/solar-taxonomy/master/core/solar_all_2019-09-20.xsd"

DEI_XSD = "dei-2018-01-31.xsd"

US_GAAP_XSD = "us-gaap-2017-01-31.xsd"

SOLAR_XSD = "solar_2019-07-31.xsd"
SOLAR_XSD = "solar_2019-09-20.xsd"

SOLAR_ALL_PRE_XML = "solar_all_2019-07-31_pre.xml"
SOLAR_ALL_PRE_XML = "solar_all_2019-09-20_pre.xml"

SOLAR_LAB_XML = "solar_2019-07-31_lab.xml"
SOLAR_LAB_XML = "solar_2019-09-20_lab.xml"
2 changes: 1 addition & 1 deletion oblib/tests/test_data_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -975,7 +975,7 @@ def test_all_entrypoint(self):
# Passing the string "All" to OBInstance should give me access to every concept
# instead of restricting it to an entrypoint.
doc = data_model.OBInstance("All", self.taxonomy)
self.assertEqual(4231, len(doc._all_my_concepts)) # Every concept!
self.assertEqual(4303, len(doc._all_my_concepts)) # Every concept!

# TODO lots more tests for using get(), especially with partial context arguments.

Expand Down
3 changes: 2 additions & 1 deletion scripts/setup-dev.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,11 @@

mkdir oblib/data
cd oblib/data
git clone --branch 2019-07-31 https://github.com/SunSpecOrangeButton/solar-taxonomy.git
git clone --branch 2019-09-20 https://github.com/SunSpecOrangeButton/solar-taxonomy.git
cd solar-taxonomy
rm SolarTaxonomyMaster.xlsx
mkdir external
curl http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd > external/us-gaap-2017-01-31.xsd
curl https://xbrl.sec.gov/dei/2018/dei-2018-01-31.xsd > external/dei-2018-01-31.xsd
curl https://www.xbrl.org/utr/utr.xml > external/utr.xml

0 comments on commit fab2f21

Please sign in to comment.