Comments (6)
The (new) Israeli Shekel currency code is ILS not NIS.
https://github.com/sr-murthy/oedtools/blob/master/oedtools/schema/values.csv#L457
https://www.xe.com/currency/ils-israeli-shekel
These currency codes are ISO 4217 currency codes. The same codes are contained in the currency codes sheet in the OED schema spreadsheet
https://github.com/Simplitium/OED/blob/master/Open%20Exposure%20Data%20Spec.xlsx
I'm not sure about offshore codes, but all valid ISO 3166 country codes will be accepted. My guess is these offshore codes are not ISO 3166 country codes.
from oedtools.
I've just done a file validation test on a PiWind test loc. file (OasisPiWind/tests/data/SourceLocOEDPiWind10.csv
) with LocCurrency
set to ILS
(Israel shekel), and no errors are reported, which is what is expected.
As for country codes, setting CountryCode
to A1
however does produce the expected error
../OasisPiWind/tests/data/SourceLocOEDPiWind10.csv:4:158: Invalid value "A1" in "CountryCode" - check the column or data type range: OED error: E371 Out of range data found in column
The package uses ISO 3166 country codes, and A1
is not a valid ISO 3166 country code.
So I don't think there is any problem here, and I will be closing this later today, unless you have something else to report on this.
from oedtools.
Please see the Country Currency Values table in the OED specification. These codes are included.
from oedtools.
Yes, it does look as if there are a number of these non-ISO 3166 offshore country codes in the OED spec. I had assumed ISO 3166 country codes would be used. So the values CSV will have to be updated and then the profile re-generated, and a new package version published.
from oedtools.
from oedtools.
Version 0.4.2 has been published, which deals with the offshore country codes issue.
from oedtools.
Related Issues (13)
- Extend CLI to support querying of values profile
- Use built-in `numbers` module to check for numeric type testing in `utils` module HOT 1
- Update required for OED version 1.0.4
- Update required for OED version 1.0.4 HOT 2
- Conditionally required fields/columns HOT 1
- Type hints
- Add test coverage for CLI and report modules HOT 1
- Update required for OED version 1.1.0
- Validation of files with no errors should be non-verbose HOT 1
- Simplify validate CLI subcommand
- Replace/rename "values profile" with "data model"
- Add docs
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from oedtools.