GithubHelp home page GithubHelp logo

pulp's People

Contributors

vkond avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Forkers

jjdmol

pulp's Issues

Incorrect file selection for tarball of PART1

The tarball containing the filterbank file for PART1 also includes partial filterbank files for PART10 to PART19. see the contents of this tarball.

[bassa@lexar004 /data/projects/TMSS-validation/L2002361/pulp/cs]$ tar -tvf L2002361_SAP000_B000_P001_bf.tar
-rw-rw-r-- lofarsys/lofarsys 983427 2022-04-28 10:41 rawvoltages/SAP0/BEAM0/L2002360_SAP000_B000_S3_P001_bf.h5
-rw-rw-r-- lofarsys/lofarsys 983427 2022-04-28 10:41 rawvoltages/SAP0/BEAM0/L2002360_SAP000_B000_S1_P001_bf.h5
-rw-rw-r-- lofarsys/lofarsys 983427 2022-04-28 10:41 rawvoltages/SAP0/BEAM0/L2002360_SAP000_B000_S2_P001_bf.h5
-rw-rw-r-- lofarsys/lofarsys 983427 2022-04-28 10:41 rawvoltages/SAP0/BEAM0/L2002360_SAP000_B000_S0_P001_bf.h5
-rw-rw---- lofarsys/lofarsys 184549793 2022-04-28 10:43 rawvoltages/SAP0/BEAM0/B9999+99_L2002360_SAP0_BEAM0_PART19.fil
-rw-rw---- lofarsys/lofarsys 209715553 2022-04-28 10:43 rawvoltages/SAP0/BEAM0/B9999+99_L2002360_SAP0_BEAM0_PART10.fil
-rw-rw---- lofarsys/lofarsys 276824673 2022-04-28 10:43 rawvoltages/SAP0/BEAM0/B9999+99_L2002360_SAP0_BEAM0_PART15.fil
-rw-rw---- lofarsys/lofarsys 201327073 2022-04-28 10:43 rawvoltages/SAP0/BEAM0/B9999+99_L2002360_SAP0_BEAM0_PART12.fil
-rw-rw---- lofarsys/lofarsys 201327073 2022-04-28 10:43 rawvoltages/SAP0/BEAM0/B9999+99_L2002360_SAP0_BEAM0_PART16.fil
-rw-rw---- lofarsys/lofarsys 292946273 2022-04-28 10:43 rawvoltages/SAP0/BEAM0/B9999+99_L2002360_SAP0_BEAM0_PART1.fil
-rw-rw---- lofarsys/lofarsys 192938593 2022-04-28 10:43 rawvoltages/SAP0/BEAM0/B9999+99_L2002360_SAP0_BEAM0_PART18.fil
-rw-rw---- lofarsys/lofarsys 159384033 2022-04-28 10:43 rawvoltages/SAP0/BEAM0/B9999+99_L2002360_SAP0_BEAM0_PART11.fil
-rw-rw---- lofarsys/lofarsys 285213153 2022-04-28 10:43 rawvoltages/SAP0/BEAM0/B9999+99_L2002360_SAP0_BEAM0_PART17.fil
-rw-rw---- lofarsys/lofarsys 159384033 2022-04-28 10:43 rawvoltages/SAP0/BEAM0/B9999+99_L2002360_SAP0_BEAM0_PART14.fil
-rw-rw---- lofarsys/lofarsys 184549793 2022-04-28 10:43 rawvoltages/SAP0/BEAM0/B9999+99_L2002360_SAP0_BEAM0_PART13.fil
-rw-rw-r-- lofarsys/lofarsys      1089 2022-04-28 10:42 9999+99.par

This behavior is caused by this if statement:

if "_PART%d" % (self.part) in tfbase: return True

as it will return True for both PART1 as well as PART10 etc.

A solution would be to use if "_PART%d.fil" % (self.part) in tfbase: return True instead, though this assumes this function only works for filterbank files. Another solution would be to enforce 2 or 3 digit parts with leading zeros, but this may break backwards compatibility.

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.