question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Angle parsing: allow NESW

See original GitHub issue

To specify latitudes and longitudes, it would be really helpful if the angle parsing would accept specifying N/S, E/W directions. (e.g. as used by wikipedia)

At the moment, this raises an error:

In [1]: from astropy.coordinates import Angle                                             
In [2]: Angle('45°55′12″N')
    ValueError: Invalid character at col 9 in angle '45°55′12″N'                                                           

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:24 (20 by maintainers)

github_iconTop GitHub Comments

2reactions
maxnoecommented, Apr 10, 2019

I started looking into this

1reaction
maxnoecommented, Jan 13, 2020

@DShivansh Here is a brilliant talk by David Beazly you might find interesting: https://www.youtube.com/watch?v=zJ9z6Ge-vXs

Read more comments on GitHub >

github_iconTop Results From Across the Web

Understanding Success Criterion 4.1.1: Parsing
If the content cannot be parsed into a data structure, then different user agents may present it differently or be completely unable to...
Read more >
How to solve this "parse and balance angle brackets" problem ...
To simplify things, rather than using a stack array, consider using just a single number: the number of open < tags so far....
Read more >
Parser in konst::parsing - Rust - Docs.rs
parser_method : Parses any of the string literal patterns using a supported Parser method. Examples. Parsing a variable-length array. Parses a variable-length ...
Read more >
AngleFormat (Geotools modules 29-SNAPSHOT API)
Parses and formats angles according a specified pattern. ... Constructs a new AngleFormat using the specified pattern and decimal symbols.
Read more >
The syntactic choice of using square brackets instead of angle ...
User clarity is decreased to allow for code optimisation IMHO. ... Angle brackets require unbounded parser look-ahead or type information in certain ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found