astrolabsoftware / fink-science-portal

Fink Science Portal
https://fink-portal.org
Apache License 2.0
7 stars 4 forks source link

Accessing ssoft #610

Closed jrob93 closed 6 months ago

jrob93 commented 6 months ago

Hi all,

I was just trying to access the ssoft table following the instructions at https://fink-portal.org/api. Specifically I was trying to get the whole table using

import io
import requests
import pandas as pd

r = requests.post(
  'https://fink-portal.org/api/v1/ssoft',
  json={
    'output-format': 'parquet'
  }
)

# Format output in a DataFrame
pdf = pd.read_parquet(io.BytesIO(r.content))

However I was getting a load of messages like Corrupted thrift data at 129 : 14 0 which ended with an error: TypeError: 'NoneType' object is not iterable

jrob93 commented 6 months ago

I was able to get it working eventually by adding 'version': '2023.07' to requests.post.

JulienPeloton commented 6 months ago

Hi @jrob93 -- thanks for reporting! Indeed, I confirm there was a problem in computing the version 2024.04. I'm on it, and in the meantime, you should be able to access the previous version from last month (version: 2024.03).

jrob93 commented 6 months ago

Cool, no problem and thank you!

JulienPeloton commented 6 months ago

Data has been uploaded correctly -- and you should be able to access the latest version 2024.04. Let me know if the problem persists.

jrob93 commented 6 months ago

I can confirm that it's working now, cheers!