Giter Club home page Giter Club logo

Comments (6)

sr-murthy avatar sr-murthy commented on May 28, 2024

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.

sr-murthy avatar sr-murthy commented on May 28, 2024

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.

DanielFEvans avatar DanielFEvans commented on May 28, 2024

Please see the Country Currency Values table in the OED specification. These codes are included.

from oedtools.

sr-murthy avatar sr-murthy commented on May 28, 2024

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.

sr-murthy avatar sr-murthy commented on May 28, 2024

#15

from oedtools.

sr-murthy avatar sr-murthy commented on May 28, 2024

Version 0.4.2 has been published, which deals with the offshore country codes issue.

from oedtools.

Related Issues (13)

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.