Comments (2)
I have seen stuff like this before. It might be that some test function meddles with conf.fieldnames
in some obscure place - like it does in this exact test function itself. Re-running the test will then make the test fail. Can you replace test_alternative_name_uniqueness
with this code and then retry?
from ..core import conf
print(len(sum(conf.fieldnames, [])))
print(len(set(sum(conf.fieldnames, []))))
assert (len(sum(conf.fieldnames, [])) ==
len(set(sum(conf.fieldnames, []))))
storage = (deepcopy(conf.fieldnames), deepcopy(conf.fieldname_idx))
with pytest.raises(AssertionError):
# repeat existing fieldname should raise Error
conf.fieldnames.append(['i'])
assert (len(sum(conf.fieldnames, [])) ==
len(set(sum(conf.fieldnames, []))))
# revert changes to conf.fieldnames
conf.fieldnames = storage[0]
conf.fieldname_idx = storage[1]
from sbpy.
That worked. 🥇 for @mommermi
from sbpy.
Related Issues (20)
- Fill Obs with reduced mangitude
- Manually add orbits to Orbit() HOT 2
- Phys from_sbpy fails for comets HOT 3
- Write observations to file in MPC and/or DES format HOT 3
- Allow measurement errors in `photometry.DiskIntegratedPhaseFunc.from_obs` method
- Resolve remote testing on PRs HOT 2
- Add `in` Operator for `DataClass`
- Observations not found for numerous objects which are in the MPC database HOT 2
- `sbpy.data.DataClass._translate_columns` bug? HOT 5
- `DataClass.__setitem__` doesn't check column names HOT 3
- HG12 fitting in photometry module can produce non-physical non-monotonic phase function fits HOT 15
- Sbpy in conda environment causes pytest collection to fail in Python<3.11 HOT 11
- Hook into ASSIST?
- Notice: You might be using enable_deprecations_as_exceptions that is removed in astropy v6
- Website linked to 'latest' documentation HOT 5
- Conda installability for M1 mac HOT 6
- Use pip installable pyoorb for testing?
- Improve HG, HG12, etc. documentation HOT 4
- Adding functionality to unpack MPC's new LSST-era extended packed designation format HOT 1
- SpectralGradient.from_color is inverted for linear inputs
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sbpy.