Skip to content

Commit

Permalink
Merge pull request MultimodalUniverse#43 from AstroPile/EiffL-patch-2
Browse files Browse the repository at this point in the history
Update test.sh
  • Loading branch information
EiffL authored Apr 4, 2024
2 parents a2aace3 + 9c7ba66 commit 69faed9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/hsc/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ else
fi

# Try to load the dataset with hugging face dataset
if python -c "from datasets import load_dataset; dset = load_dataset('./hsc.py', 'pdr3_dud_22.5', trust_remote_code=True, split='train').with_format('numpy'); print(next(iter(dset)))"; then
if python -c "from datasets import load_dataset; dset = load_dataset('./hsc.py', 'pdr3_dud_22.5', trust_remote_code=True, split='train').with_format('numpy'); next(iter(dset));"; then
echo "Load dataset for deep field successful"
else
echo "Load dataset for deep field failed"
Expand All @@ -25,7 +25,7 @@ else
fi

# Try to load the dataset with hugging face dataset
if python -c "from datasets import load_dataset; dset = load_dataset('./hsc.py', 'pdr3_wide_22.5', trust_remote_code=True, split='train'); print(next(iter(dset)))"; then
if python -c "from datasets import load_dataset; dset = load_dataset('./hsc.py', 'pdr3_wide_22.5', trust_remote_code=True, split='train'); next(iter(dset));"; then
echo "Load dataset for wide field successful"
else
echo "Load dataset for wide field failed"
Expand Down

0 comments on commit 69faed9

Please sign in to comment.